Balancing Bot using MAX32630FTHR
Dependencies: mbed BMI160 SDFileSystem max32630fthr
Diff: main.cpp
- Revision:
- 10:71c31197d55a
- Parent:
- 9:59add4a4372c
- Child:
- 11:371026db1dcd
diff -r 59add4a4372c -r 71c31197d55a main.cpp --- a/main.cpp Wed Jan 25 19:43:27 2017 +0000 +++ b/main.cpp Wed Jan 25 19:44:43 2017 +0000 @@ -367,7 +367,7 @@ } //Average measurements - setPoint = setPoint/1600.0F; + setPoint = setPoint/offsetCount; printf("setPoint = %5.2f\n\n", setPoint); //Clear count for next time offsetCount = 0;