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:ad77e3ee288b
- Parent:
- 29:7475bcdce4e6
--- a/main.cpp Wed Dec 05 14:29:51 2018 +0000 +++ b/main.cpp Wed Dec 05 19:01:53 2018 +0000 @@ -216,6 +216,18 @@ //Leave the pit pit_navigate(LEAVE_PIT); + + //reset PID variables + proportional = 0; + derivative = 0; + integral = 0; + previous_pos_of_line = 0; //denne skal også nulstilles + +// m3pi.forward(0.1); +// wait(0.3); +// m3pi.stop(); +// m3pi.sensor_auto_calibrate(); + pit_light = 0; }