David's dead reckoning code for the LVBots competition on March 6th. Uses the mbed LPC1768, DRV8835, QTR-3RC, and two DC motors with encoders.
Dependencies: PololuEncoder Pacer mbed GeneralDebouncer
test.h@42:96671b71aac5, 2019-07-27 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Sat Jul 27 20:58:46 2019 +0000
- Revision:
- 42:96671b71aac5
- Parent:
- 41:3ead1dd2cc3a
- Child:
- 43:0e985a58f174
Calibrate L3G using a buffer of 1000 zero-rate readings. Measured a drift of -1.850 degrees over 3 minutes (-0.01 degree per second).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidEGrayson | 9:9734347b5756 | 1 | #pragma once |
DavidEGrayson | 9:9734347b5756 | 2 | |
DavidEGrayson | 10:e4dd36148539 | 3 | void __attribute__((noreturn)) testEncoders(); |
DavidEGrayson | 10:e4dd36148539 | 4 | void __attribute__((noreturn)) testMotors(); |
DavidEGrayson | 39:b19dfc5d4d4b | 5 | void __attribute__((noreturn)) testMotorSpeed(); |
DavidEGrayson | 12:835a4d24ae3b | 6 | void __attribute__((noreturn)) testLineSensors(); |
DavidEGrayson | 40:6fa672be85ec | 7 | void __attribute__((noreturn)) testL3g(); |
DavidEGrayson | 42:96671b71aac5 | 8 | void __attribute__((noreturn)) testL3gAndShowAverage(); |
DavidEGrayson | 40:6fa672be85ec | 9 | void __attribute__((noreturn)) testTurnSensor(); |
DavidEGrayson | 12:835a4d24ae3b | 10 | void __attribute__((noreturn)) testReckoner(); |
DavidEGrayson | 16:8eaa5bc2bdb1 | 11 | void __attribute__((noreturn)) testButtons(); |
DavidEGrayson | 16:8eaa5bc2bdb1 | 12 | void __attribute__((noreturn)) testDriveHome(); |
DavidEGrayson | 20:dbec34f0e76b | 13 | void __attribute__((noreturn)) testFinalSettleIn(); |
DavidEGrayson | 28:4374035df5e0 | 14 | void __attribute__((noreturn)) testCalibrate(); |
DavidEGrayson | 28:4374035df5e0 | 15 | void __attribute__((noreturn)) testLineFollowing(); |
DavidEGrayson | 29:cfcf08d8ac79 | 16 | void __attribute__((noreturn)) testAnalog(); |
DavidEGrayson | 30:84be2d602dc0 | 17 | void __attribute__((noreturn)) testSensorGlitches(); |
DavidEGrayson | 33:58a0ab6e9ad2 | 18 | void __attribute__((noreturn)) testTurnInPlace(); |
DavidEGrayson | 37:23000a47ed2b | 19 | void __attribute__((noreturn)) testCloseness(); |
DavidEGrayson | 37:23000a47ed2b | 20 | void __attribute__((noreturn)) testLogger(); |