Janus Bo Andersen / Mbed 2 deprecated T2PRO1_master

Dependencies:   mbed m3pi

Files at this revision

API Documentation at this revision

Comitter:
janusboandersen
Date:
Wed Dec 05 19:01:53 2018 +0000
Parent:
29:7475bcdce4e6
Commit message:
Initial commit as master (mainline) branch.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
               
           }