#include <Gps.h>
Public Member Functions | |
| MyDegrees () | |
| MyDegrees (const MyDegrees &myDegrees) | |
| void | clear () |
| double | value () |
| bool | set (const String &data) |
Data Fields | |
| uint16_t | predecimal |
| Value on the left side of the separator. | |
| uint32_t | billionths |
| Value of the right side after the separator. | |
| bool | negative |
| Is the value negative? | |
| MyDegrees::MyDegrees | ( | ) |
| MyDegrees::MyDegrees | ( | const MyDegrees & | myDegrees | ) |
| void MyDegrees::clear | ( | ) |
Reset the values.
Definition at line 201 of file Gps.h.
References billionths, negative, and predecimal.
Referenced by MyLocation::clear().
| bool MyDegrees::set | ( | const String & | data | ) |
Sets the internal format from the nmea format.
Definition at line 217 of file Gps.h.
References billionths, negative, and predecimal.
Referenced by MyGps::setLatitude(), and MyGps::setLongitude().
| double MyDegrees::value | ( | ) |
Recalculate the value from the pre and post decimal to double.
Definition at line 209 of file Gps.h.
References billionths, negative, and predecimal.
Referenced by MyLocation::latitude(), and MyLocation::longitude().
1.8.6