Hepta9axisSensor Library
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more
Fork of Hepta9axis by
Hepta9axis.h
- Committer:
- HEPTA
- Date:
- 2017-09-04
- Revision:
- 4:01941772f493
- Parent:
- 3:d5eed0bb962e
- Child:
- 5:098423fb0371
File content as of revision 4:01941772f493:
#ifndef MBED_HEPTA9AXIS_H #define MBED_HEPTA9AXIS_H #include "mbed.h" class Hepta9axis { public: I2C n_axis; int addr_accel_gyro; int addr_compus; Hepta9axis( PinName sda, PinName scl, int aaddr, int agaddr ); void setup(); void sen_acc(float *ax,float *ay,float *az); void sen_gyro(float *gx,float *gy,float *gz); void sen_mag(float *mx,float *my,float *mz); void sen_gyro_u16(char* gx_u16,char* gy_u16,char* gz_u16, int *dsize); void sen_acc_u16(char* ax_u16,char* ay_u16,char* az_u16, int *dsize); void sen_mag_u16(char* mx_u16,char* my_u16,char* mz_u16, int *dsize); private: char cmd[2]; char g1[8],g2[8]; char a1[8],a2[8]; char m1[8],m2[8]; short int st2; short int xl,xh,yl,yh,zl,zh; short int gxl,gxh,gyl,gyh,gzl,gzh; short int mxl,mxh,myl,myh,mzl,mzh; }; #endif