Hepta9axisSensor Library
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber 3daf572bcae1 Team ... more
Fork of Hepta9axis by
Revision 5:098423fb0371, committed 2017-09-05
- Comitter:
- HEPTA
- Date:
- Tue Sep 05 12:46:12 2017 +0000
- Parent:
- 4:01941772f493
- Commit message:
- Hepta 9axis Sensor;
Changed in this revision
Hepta9axis.cpp | Show annotated file Show diff for this revision Revisions of this file |
Hepta9axis.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Hepta9axis.cpp Mon Sep 04 16:27:17 2017 +0000 +++ b/Hepta9axis.cpp Tue Sep 05 12:46:12 2017 +0000 @@ -231,7 +231,7 @@ } //////////////16進数表記///////////////////////////////////////// -void Hepta9axis::sen_gyro_u16(char* gx_u16,char* gy_u16,char* gz_u16, int *dsize) +void Hepta9axis::sen_gyro_u16(char* gx_u16,char* gy_u16,char* gz_u16) { //x軸GYRO n_axis.start(); @@ -303,10 +303,10 @@ gz_u16[1]=g1[1]; gz_u16[2]=g2[0]; gz_u16[3]=g2[1]; - *dsize = 4; + //*dsize = 4; } -void Hepta9axis::sen_acc_u16(char* ax_u16,char* ay_u16,char* az_u16, int *dsize) +void Hepta9axis::sen_acc_u16(char* ax_u16,char* ay_u16,char* az_u16) { //x軸加速度 n_axis.start(); @@ -378,10 +378,10 @@ az_u16[1]=a1[1]; az_u16[2]=a2[0]; az_u16[3]=a2[1]; - *dsize = 4; + //*dsize = 4; } -void Hepta9axis::sen_mag_u16(char* mx_u16,char* my_u16,char* mz_u16, int *dsize) +void Hepta9axis::sen_mag_u16(char* mx_u16,char* my_u16,char* mz_u16) { n_axis.start(); n_axis.write(addr_compus); @@ -464,5 +464,5 @@ mz_u16[1]=m1[1]; mz_u16[2]=m2[0]; mz_u16[3]=m2[1]; - *dsize = 4; + //*dsize = 4; } \ No newline at end of file
--- a/Hepta9axis.h Mon Sep 04 16:27:17 2017 +0000 +++ b/Hepta9axis.h Tue Sep 05 12:46:12 2017 +0000 @@ -18,9 +18,9 @@ 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); + 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];