APM:Libraries
Functions | Variables
ftoa_engine.cpp File Reference
#include "ftoa_engine.h"
#include <stdint.h>
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
Include dependency graph for ftoa_engine.cpp:

Go to the source code of this file.

Functions

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

Variables

static const int8_t exponentTable [32]
 
static const uint32_t factorTable [32]
 

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:

Variable Documentation

◆ exponentTable

const int8_t exponentTable[32]
static
Initial value:
= {
-36, -33, -31, -29, -26, -24, -21, -19,
-17, -14, -12, -9, -7, -4, -2, 0,
3, 5, 8, 10, 12, 15, 17, 20,
22, 24, 27, 29, 32, 34, 36, 39
}

Definition at line 46 of file ftoa_engine.cpp.

Referenced by ftoa_engine().

◆ factorTable

const uint32_t factorTable[32]
static

Definition at line 53 of file ftoa_engine.cpp.

Referenced by ftoa_engine().