Skip to content

Best way to create f64 from raw GPS data #2

@vtomanov

Description

@vtomanov

Hi,

The raw GPS data is in the following format :

int16_t deg; // the integer part of the number
uint32_t minSec; // exact 9 digits after the decimal point - e.g. 3.123456789, 4.123000000

Do you have any suggestion for the best way to create f64 type from this structure ? atoi seems slow to me ? Also vise-verse from f64 extract the data in the original structure ?

FYI: I'm planing to use your library for some GPS calculations and currently experimenting with it....

Kind Regards
Vasko Tomanov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions