mag cal improvements (#13487)
commitac846f7537f98e5815cccb61887fe842cea08f74
authorctzsnooze <chris.thompson@sydney.edu.au>
Wed, 3 Apr 2024 13:19:33 +0000 (4 00:19 +1100)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 13:19:33 +0000 (3 15:19 +0200)
treef183350e2c4db608b507d7b3bd9270e6cbdc6ea4
parentcd8b6aa5210bcb2907b8c09ca5580ce471b309e1
mag cal improvements (#13487)

* mag cal improvements

reduced threshold to start updating the previous cal
LED0 goes 'solid' only when the calibration start threshold is met
Don't zero previous Cal values until the update threshold is met
Mag_calib debug shows cal values at zero unltil they start being updated.

* beep ready, acc_calibration, and gyro_calibrated, for audio feedback

s

* improvements, thanks to feedback from PL

* change magCalEndTimeUs to magCalProcessEndTimeUs

* make process names more obvious

* use static boolean for initation and termination

* magCalProcessEndTimeUs to magCalEndTime

* LED ON, not toggle
src/main/sensors/compass.c