Self-Balancing bot for MAX32630 and two wheel car.
Dependencies: mbed BMI160 SDFileSystem max32630fthr
Diff: main.cpp
- Revision:
- 10:71c31197d55a
- Parent:
- 9:59add4a4372c
- Child:
- 11:371026db1dcd
--- 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;