Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 30:ccf5fa970bd2
- Parent:
- 29:b1a18d0493c9
- Child:
- 31:434a78739a59
--- a/main.cpp Tue Oct 11 12:27:22 2022 +0000 +++ b/main.cpp Tue Oct 11 12:38:39 2022 +0000 @@ -8,7 +8,7 @@ DigitalOut led4(LED4); // Minimum and maximum motor speeds -#define MAX 1.0 +#define MAX 0.80 #define MIN 0 // PID terms @@ -164,7 +164,7 @@ int PitTest(void){ /* Test the batteri voltage if the robot is not headed for pit */ - const float BATVOLTTRESHOLD = 4.50; // Treshold i volt + const float BATVOLTTRESHOLD = 0.05; // Treshold i volt int result = 0; /*Test if the voltage is below the threshold if so turn on go to pit mode*/