9axis-sensor library
Diff: Hepta9axis.h
- Revision:
- 10:2b227e8928ae
- Parent:
- 5:098423fb0371
- Child:
- 12:f52c96610b21
--- a/Hepta9axis.h Mon Nov 04 16:01:31 2019 +0000 +++ b/Hepta9axis.h Wed Aug 17 07:04:20 2022 +0000 @@ -18,12 +18,8 @@ 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); - void sen_acc_u16(char* ax_u16,char* ay_u16,char* az_u16); - void sen_mag_u16(char* mx_u16,char* my_u16,char* mz_u16); private: - char cmd[2]; char g1[8],g2[8]; char a1[8],a2[8]; char m1[8],m2[8]; @@ -31,6 +27,14 @@ short int xl,xh,yl,yh,zl,zh; short int gxl,gxh,gyl,gyh,gzl,gzh; short int mxl,mxh,myl,myh,mzl,mzh; + + float accel[3]; + float magnet[3]; + float gyroscope[3]; + char cmd[2]; + uint8_t data[8]; + char send[1], get[1]; + char temp; };