Hepta UplinkData Q
Dependencies: mbed PowerControl SDFileSystem
Fork of Hepta_UplinkData_Q by
hepta_sat/HeptaGyro.h@4:2a2a17a603cc, 2016-12-23 (annotated)
- Committer:
- MEXT1
- Date:
- Fri Dec 23 04:50:09 2016 +0000
- Revision:
- 4:2a2a17a603cc
- Parent:
- 0:edad9f0f386a
UplinkData Q
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomoya123 | 0:edad9f0f386a | 1 | #ifndef MBED_HEPTAGYRO_H |
tomoya123 | 0:edad9f0f386a | 2 | #define MBED_HEPTAGYRO_H |
tomoya123 | 0:edad9f0f386a | 3 | #include "mbed.h" |
tomoya123 | 0:edad9f0f386a | 4 | |
tomoya123 | 0:edad9f0f386a | 5 | //3axis Gyro Sensor ML3GD20 |
tomoya123 | 0:edad9f0f386a | 6 | |
tomoya123 | 0:edad9f0f386a | 7 | class HeptaGyro{ |
tomoya123 | 0:edad9f0f386a | 8 | public: |
tomoya123 | 0:edad9f0f386a | 9 | I2C gyro; |
tomoya123 | 0:edad9f0f386a | 10 | int addr; |
tomoya123 | 0:edad9f0f386a | 11 | HeptaGyro( |
tomoya123 | 0:edad9f0f386a | 12 | PinName sda,// Gyro I2C port |
tomoya123 | 0:edad9f0f386a | 13 | PinName scl,// Gyro I2C port |
tomoya123 | 0:edad9f0f386a | 14 | int aaddr |
tomoya123 | 0:edad9f0f386a | 15 | ); |
tomoya123 | 0:edad9f0f386a | 16 | void setup(); |
tomoya123 | 0:edad9f0f386a | 17 | void sensing(float *gx,float *gy,float *gz); |
tomoya123 | 0:edad9f0f386a | 18 | void sensing_u16(char* gx_u16,char* gy_u16,char* gz_u16, int *dsize); |
tomoya123 | 0:edad9f0f386a | 19 | float x(); |
tomoya123 | 0:edad9f0f386a | 20 | float y(); |
tomoya123 | 0:edad9f0f386a | 21 | float z(); |
tomoya123 | 0:edad9f0f386a | 22 | void x_u16(char* g_u16, int *dsize); |
tomoya123 | 0:edad9f0f386a | 23 | void y_u16(char* g_u16, int *dsize); |
tomoya123 | 0:edad9f0f386a | 24 | void z_u16(char* g_u16, int *dsize); |
tomoya123 | 0:edad9f0f386a | 25 | private: |
tomoya123 | 0:edad9f0f386a | 26 | char _cmd[2]; |
tomoya123 | 0:edad9f0f386a | 27 | short int _xl,_xh,_yl,_yh,_zl,_zh; |
tomoya123 | 0:edad9f0f386a | 28 | }; |
tomoya123 | 0:edad9f0f386a | 29 | #endif |