TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle
TM_GPS_Float_t Struct Reference

GPS float structure. More...

#include <tm_stm32_gps.h>

Data Fields

int32_t Integer
uint32_t Decimal

Detailed Description

GPS float structure.

GPS has longitude, latitude, altitude, etc.. in float format.
    But, if you want to make a tracker and save data to SD card, there is a problem, because FATFS library breaks %f with sprintf() function.

    For that purpose I made a new function TM_GPS_ConvertFloat() which converts float number to an integer and decimal part.

Field Documentation

uint32_t Decimal

Decimal part of float number, in integer format.

int32_t Integer

Integer part of float number.