APM:Libraries
Macros | Functions
ftoa_engine.h File Reference
#include <AP_HAL/AP_HAL.h>
#include <stdint.h>
Include dependency graph for ftoa_engine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FTOA_MINUS   1
 
#define FTOA_ZERO   2
 
#define FTOA_INF   4
 
#define FTOA_NAN   8
 
#define FTOA_CARRY   16 /* Carry was to master position. */
 

Functions

int16_t ftoa_engine (float val, char *buf, uint8_t precision, uint8_t maxDecimals)
 

Macro Definition Documentation

◆ FTOA_CARRY

#define FTOA_CARRY   16 /* Carry was to master position. */

Definition at line 43 of file ftoa_engine.h.

Referenced by ftoa_engine(), and print_vprintf().

◆ FTOA_INF

#define FTOA_INF   4

Definition at line 41 of file ftoa_engine.h.

Referenced by ftoa_engine(), and print_vprintf().

◆ FTOA_MINUS

#define FTOA_MINUS   1

Definition at line 39 of file ftoa_engine.h.

Referenced by ftoa_engine(), and print_vprintf().

◆ FTOA_NAN

#define FTOA_NAN   8

Definition at line 42 of file ftoa_engine.h.

Referenced by ftoa_engine(), and print_vprintf().

◆ FTOA_ZERO

#define FTOA_ZERO   2

Definition at line 40 of file ftoa_engine.h.

Referenced by ftoa_engine().

Function Documentation

◆ ftoa_engine()

int16_t ftoa_engine ( float  val,
char *  buf,
uint8_t  precision,
uint8_t  maxDecimals 
)

Definition at line 88 of file ftoa_engine.cpp.

Referenced by print_vprintf().

Here is the caller graph for this function: