![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
New Self Balancing Code
Dependencies: mbed BMI160 max32630fthr_pitch USBDevice Math
Diff: main.cpp
- Revision:
- 2:ba0a55e05168
- Parent:
- 0:4b4fbf5daa1c
- Child:
- 4:fc8ef84a7dbc
diff -r 792bddf7108e -r ba0a55e05168 main.cpp --- a/main.cpp Wed Apr 25 14:17:42 2018 +0300 +++ b/main.cpp Fri May 04 13:41:28 2018 +0300 @@ -196,7 +196,7 @@ void printBlock(BMI160 &imu, BMI160::Registers startReg, BMI160::Registers stopReg) { uint8_t numBytes = ((stopReg - startReg) + 1); - uint8_t buff[numBytes]; + uint8_t buff[32]; uint8_t offset = static_cast<uint8_t>(startReg); if(imu.readBlock(startReg, stopReg, buff) == BMI160::RTN_NO_ERROR)