![](/media/cache/profiles/01e5405ccd7d3efa1fd033aa7b7489e9.jpg.50x50_q85.jpg)
Balancing Bot using MAX32630FTHR
Dependencies: BMI160 max32630fthr mbed SDFileSystem
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;