Gabe Venberg
4e4b314ccd
hooked up the line drawing algorithm to the compass.
...
This entailed fixing a few bugs in it as well.
2023-10-29 20:27:26 -05:00
Gabe Venberg
3e29d8bc6a
Added unit tests!!
2023-10-28 23:02:22 -05:00
Gabe Venberg
501230e121
made heading_to_sector.
2023-10-28 16:43:50 -05:00
Gabe Venberg
1afb386f04
refactored line drawing, broke out code.
...
broke the line drawing driver into seperate module.
2023-10-27 13:52:43 -05:00
Gabe Venberg
0b363ed8e7
code cleanup.
2023-10-27 11:46:03 -05:00
Gabe Venberg
3963c0fc90
made line_drawing generic over array sizes. Added some helper methods.
2023-10-24 12:14:56 -05:00
Gabe Venberg
e9770286ec
added a line drawing algorithm
...
will be needed to make it a bit more accurate than just 8 directions.
2023-10-22 16:48:11 -05:00
Gabe Venberg
bd29cd97c3
added interaction with buttons
...
pressing a toggles the tilt compensation algorithm, to show the
difference before and after
pressing b starts calibration again, so that calibration can be done
even when feature flag to perform calibration on startup is disabled.
2023-10-22 15:47:40 -05:00
Gabe Venberg
7fe49fd9bf
made compass project from rust-discovery into a tilt compensated compass.
2023-10-22 13:53:00 -05:00