]> git.gag.com Git - fw/altos/commit
altoslib: Check for negative tick wrap when importing flight records
authorKeith Packard <keithp@keithp.com>
Thu, 20 Jun 2024 22:35:38 +0000 (15:35 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 20 Jun 2024 22:35:38 +0000 (15:35 -0700)
commit3bc1ab0046c4dbebbde8557d3a1f45707aaefa42
tree969d6cd31473f80ff43263ae5fb65b95165ee3f4
parent3e2cadd282479e21ce74f80e4fe844f65db16bab
altoslib: Check for negative tick wrap when importing flight records

If the tick count wraps just as boost is detected, there may be some
data records on the device with large tick values which are recorded
after the AO_FLIGHT record. Check for these in two places which manage
16-bit tick values by wrapping tick values to negative numbers in
those cases.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosCalData.java
altoslib/AltosEepromRecordSet.java