2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Diff: Updater.h
- Revision:
- 13:5566df1250f1
- Parent:
- 12:3cd91e150d9c
- Child:
- 14:1dd83e626153
--- a/Updater.h Wed Dec 12 17:32:24 2018 +0000 +++ b/Updater.h Wed Dec 12 17:38:02 2018 +0000 @@ -8,13 +8,14 @@ public: void start(int interval_ms); static Updater *instance(); - void gyro(int g[3]); + void gyro(int g[3], float& dt); private: Updater() {} // parameterize Timer *t; void update(); int _gyro[3]; + float _dt; int thisTime; int lastTime; };