ロケットロガーのセンサ関連を管理するプログラム

Dependencies:   BMP280 BMX055 ublox_UBX

Fork of SensorManager by yuki kimura

Committer:
kim1212
Date:
Tue Feb 13 05:44:41 2018 +0000
Revision:
1:b34aebca7e55
Parent:
0:b6301e4d05a5
?????????????

Who changed what in which revision?

UserRevisionLine numberNew 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