Adafruit GPS Library
|
#include <NMEA_data.h>
Public Attributes | |
int16_t * | data = NULL |
array of ints, oldest first | |
unsigned | n = 0 |
number of history array elements | |
uint32_t | lastHistory = 0 |
millis() when history was last updated | |
uint16_t | historyInterval = 20 |
seconds between history updates | |
nmea_float_t | scale = 1.0 |
history = (smoothed - offset) * scale | |
nmea_float_t | offset = 0.0 |
value = (float) history / scale + offset | |
Struct to contain all the details associated with the history of an NMEA data value as an optional extension to the data value struct. The history is stored as scaled integers to save space while caputuring a reasonable level of resolution. The integer is set equal to scale * (X - offset) and can be converted back to an approximate float value with X = I / scale + offset
Only some tags have history in order to save memory. Most of the memory cost is directly in the array.
192 history values taken every 20 seconds covers just over an hour.