make comments match code for stay on table
authordaniel watson <ozzloy@gmail.com>
Fri, 4 Dec 2015 23:40:12 +0000 (15:40 -0800)
committerdaniel watson <ozzloy@gmail.com>
Fri, 4 Dec 2015 23:40:12 +0000 (15:40 -0800)
build-stages/h_stay_on_table/h_stay_on_table.ino

index 48d0802d8c92643054b13e0977916078487ca58c..26ecf2c40a6f072dd6a459cad7a92626890105ed 100644 (file)
@@ -125,13 +125,13 @@ void loop(){
 
   // adjust this number as necessary for your robot.
   // it represents how far the table is from your sonar sensor.
 
   // adjust this number as necessary for your robot.
   // it represents how far the table is from your sonar sensor.
-  // larger values mean larger distance.  default is 400
-  int right_max_ping_time_over_table = 500;
-  int left_max_ping_time_over_table = 500;
+  // larger values mean larger distance.  default is 800
+  int right_max_ping_time_over_table = 800;
+  int left_max_ping_time_over_table = 800;
   int backup_time = 2000;
   // the exact amount of time for turning around might need
   // twerking for your robot.  the default value is 3200
   int backup_time = 2000;
   // the exact amount of time for turning around might need
   // twerking for your robot.  the default value is 3200
-  int turn_around_time = 2133;
+  int turn_around_time = 3200;
 
   int actual_left_ping_time = ping(left_trigger_pin, left_echo_pin);
   int actual_right_ping_time = ping(right_trigger_pin, right_echo_pin);
 
   int actual_left_ping_time = ping(left_trigger_pin, left_echo_pin);
   int actual_right_ping_time = ping(right_trigger_pin, right_echo_pin);