2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Diff: SystemState.h
- Revision:
- 30:ed791f1f7f7d
- Parent:
- 29:cb2f55fbfe9c
- Child:
- 32:eb673f6f5734
--- a/SystemState.h Sat Dec 22 20:28:52 2018 +0000 +++ b/SystemState.h Wed Dec 26 19:34:17 2018 +0000 @@ -53,7 +53,7 @@ */ typedef struct { - float dt; + uint64_t timestamp; double latitude; double longitude; float course; @@ -62,17 +62,11 @@ int svcount; } GpsData; -#if 0 == 1 -void state_clear( SystemState *s ); -bool fifo_init(void); -void fifo_reset(void); -bool fifo_available(void); -bool fifo_push(SystemState *s); -SystemState *fifo_first(void); -SystemState *fifo_last(void); -SystemState *fifo_pull(void); -int fifo_getInState(void); -int fifo_getOutState(void); -#endif + +typedef struct { + uint64_t timestamp; + int encoder; + int gyro[3]; +} SensorData; #endif