ロケットロガーのセンサ関連を管理するプログラム
Dependencies: BMP280 BMX055 ublox_UBX
Fork of SensorManager by
SensorManager.h@0:b6301e4d05a5, 2018-02-13 (annotated)
- Committer:
- kim1212
- Date:
- Tue Feb 13 05:22:55 2018 +0000
- Revision:
- 0:b6301e4d05a5
???
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kim1212 | 0:b6301e4d05a5 | 1 | #ifndef SENSORMGR_H |
kim1212 | 0:b6301e4d05a5 | 2 | #define SENSORMGR_H |
kim1212 | 0:b6301e4d05a5 | 3 | |
kim1212 | 0:b6301e4d05a5 | 4 | #include "mbed.h" |
kim1212 | 0:b6301e4d05a5 | 5 | #include "obsvdStruct.h" |
kim1212 | 0:b6301e4d05a5 | 6 | #include "BMP280.h" |
kim1212 | 0:b6301e4d05a5 | 7 | #include "BMX055.h" |
kim1212 | 0:b6301e4d05a5 | 8 | #include "ubloxUBX.h" |
kim1212 | 0:b6301e4d05a5 | 9 | |
kim1212 | 0:b6301e4d05a5 | 10 | class SensorMgr{ |
kim1212 | 0:b6301e4d05a5 | 11 | public: |
kim1212 | 0:b6301e4d05a5 | 12 | |
kim1212 | 0:b6301e4d05a5 | 13 | SensorMgr(PinName mosi,PinName miso,PinName sck,PinName acc_cs,PinName gyr_cs,PinName mag_cs,PinName bmp_cs,PinName gmosi,PinName gmiso,PinName gsck,PinName gcs); |
kim1212 | 0:b6301e4d05a5 | 14 | void UpdateObsvd(obsvdData* obs); |
kim1212 | 0:b6301e4d05a5 | 15 | void UpdateTim(tim* t); |
kim1212 | 0:b6301e4d05a5 | 16 | |
kim1212 | 0:b6301e4d05a5 | 17 | |
kim1212 | 0:b6301e4d05a5 | 18 | private: |
kim1212 | 0:b6301e4d05a5 | 19 | BMX055 bmx; |
kim1212 | 0:b6301e4d05a5 | 20 | BMP280 bmp; |
kim1212 | 0:b6301e4d05a5 | 21 | GPS gps; |
kim1212 | 0:b6301e4d05a5 | 22 | |
kim1212 | 0:b6301e4d05a5 | 23 | short mag[4]; |
kim1212 | 0:b6301e4d05a5 | 24 | short gyr[3]; |
kim1212 | 0:b6301e4d05a5 | 25 | short acc[3]; |
kim1212 | 0:b6301e4d05a5 | 26 | |
kim1212 | 0:b6301e4d05a5 | 27 | }; |
kim1212 | 0:b6301e4d05a5 | 28 | |
kim1212 | 0:b6301e4d05a5 | 29 | |
kim1212 | 0:b6301e4d05a5 | 30 | #endif |