David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
Diff: turn_sensor.h
- Revision:
- 52:05a8e919ddb0
- Parent:
- 50:517c0f0e621f
--- a/turn_sensor.h Wed Apr 15 23:01:39 2015 +0000 +++ b/turn_sensor.h Wed Apr 15 23:56:52 2015 +0000 @@ -17,6 +17,11 @@ return (int32_t)angleUnsigned; } + uint32_t getAngleUnsigned() + { + return angleUnsigned; + } + int16_t getAngleDegrees() { return (((int32_t)angleUnsigned >> 16) * 360) >> 16;