2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Updater.h
- Committer:
- shimniok
- Date:
- 2018-12-12
- Revision:
- 11:8ec858b7c6d1
- Child:
- 12:3cd91e150d9c
File content as of revision 11:8ec858b7c6d1:
#ifndef __UPDATER_H #define __UPDATER_H #include "mbed.h" #include "L3G4200D.h" class Updater { public: void start(int interval_ms); static Updater *instance(); int get_gyro() { return g; } private: typedef struct { int g[3]; // gyro float dt; // delta time } sensor_data_t; Updater() {} // parameterize Timer *t; void update(); int g; int thisTime; int lastTime; }; #endif