a
Diff: main.cpp
- Revision:
- 16:caf587f09e34
- Parent:
- 15:b7cac36c4cce
--- a/main.cpp Fri Jul 05 16:44:37 2019 +0000 +++ b/main.cpp Tue Jul 09 23:33:28 2019 +0000 @@ -1,7 +1,7 @@ #include <MPU6050.h> #include "IMUWheelchair.h" //MPU6050 IMU(D14, D15); -Serial pc(USBTX, USBRX, 57600); //Serial Monitor +Serial pc(USBTX, USBRX, 57600); //Serial Monitor float dataGyro[3]; float *dataG = dataGyro; Timer t; @@ -23,7 +23,7 @@ // printf("%f, %f, %f\n", IMU.gyro_x(), IMU.gyro_y(), IMU.gyro_z()); // printf("%f\r\n ", IMU.accel_x()); - pc.printf("%f\r\n", IMU.yaw()); + pc.printf("%f\r\n", IMU.gyro_x()); // printf("%f\r\n ", IMU.yaw()); } }