Panusorn Chinsakuljaroen
/
BTL432kc
imu for l432kc
Revision 4:7b04752df27f, committed 2018-12-08
- Comitter:
- sunninety1
- Date:
- Sat Dec 08 05:48:54 2018 +0000
- Parent:
- 3:4a1bc31c360f
- Commit message:
- for l432kc;
Changed in this revision
BTL432KC.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4a1bc31c360f -r 7b04752df27f BTL432KC.cpp --- a/BTL432KC.cpp Wed Dec 05 14:08:21 2018 +0000 +++ b/BTL432KC.cpp Sat Dec 08 05:48:54 2018 +0000 @@ -226,13 +226,13 @@ delt_t = t.read_ms() - count; if (delt_t > 100) { // update LCD once per half-second independent of read rate - pc.printf("ax = %f", 1000*ax); + /*pc.printf("ax = %f", 1000*ax); pc.printf(" ay = %f", 1000*ay); pc.printf(" az = %f mg\n\r", 1000*az); - - // pc.printf("gx = %f", gx); - // pc.printf(" gy = %f", gy); - // pc.printf(" gz = %f deg/s\n\r", gz); +*/ + pc.printf("gx = %f", gx); + pc.printf(" gy = %f", gy); + pc.printf(" gz = %f deg/s\n\r", gz); // pc.printf("gx = %f", mx); // pc.printf(" gy = %f", my); @@ -312,8 +312,11 @@ //----------------------------------------------------------------------------------------- if(serial.writeable()) { - serial.printf("%f_%f_%f \n",ax,ay,az); - pc.printf("%f_%f_%f_g%f_g%f_g%f_ \n",ax,ay,az,gx,gy,gz); + serial.printf("%f %f %f %f %f %f %f %f %f \n",ax,ay,az,gx,gy,gz,roll,pitch,yaw); + //pc.printf("%f_%f_%f_g%f_g%f_g%f_ \n",ax,ay,az,gx,gy,gz); + + pc.printf("%f_%f_%f \n",roll,pitch,yaw); + } }