Zachary Sunberg / Mbed 2 deprecated SAILORSbot_student

Dependencies:   mbed

Fork of SAILORSbot by Zachary Sunberg

Files at this revision

API Documentation at this revision

Comitter:
zsunberg
Date:
Fri Jun 30 02:34:37 2017 +0000
Parent:
38:09a854bc9290
Commit message:
made default speeds negative

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jun 29 18:13:50 2017 +0000
+++ b/main.cpp	Fri Jun 30 02:34:37 2017 +0000
@@ -11,8 +11,8 @@
     
     static double previous_position = 0.0;
     static double integral = 0.0; 
-    leftspeed = speed;
-    rightspeed = speed; 
+    leftspeed = -0.1;
+    rightspeed = -0.1; 
    
     // Do your control calculations here
     ////////////////////////////////////