X-Git-Url: http://challenge-bot.com/repos/?p=challenge-bot;a=blobdiff_plain;f=build-stages%2Fh_stay_on_table%2Fh_stay_on_table.ino;h=26ecf2c40a6f072dd6a459cad7a92626890105ed;hp=48d0802d8c92643054b13e0977916078487ca58c;hb=b3ab14a78f73759705c9b7db3300b94b4b206ce6;hpb=d77c514c0f5c727a0ba0942fedc313c0daaf77f2 diff --git a/build-stages/h_stay_on_table/h_stay_on_table.ino b/build-stages/h_stay_on_table/h_stay_on_table.ino index 48d0802..26ecf2c 100644 --- a/build-stages/h_stay_on_table/h_stay_on_table.ino +++ b/build-stages/h_stay_on_table/h_stay_on_table.ino @@ -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. - // 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 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);