/* volts addl_drive_time throw_time throw_dist line_dist 6.38 0 9 20 works like butta 6.37 0 9 20 great 6.21 0 9 20 starting to decline */ #define addl_drive_time .15 #define throw_dist 20 #define throw_time .9 #define throw_timeout 2. #define startlight_port 16 #define dist_port 5 #define dist_low_thresh 10 #define dist_high_thresh 60 #define IR_port_1 9 #define IR_port_2 10 #define IR_port_3 11 #define IR_port_4 12 int lighthandler_pid,fucked_pid,middle_detect_pid,go_pid; void main() { while(!start_button()) { printf("\n %d %d %d %d %d %d",analog(dist_port),digital(9),digital(10),digital(11),digital(12),(digital(IR_port_1)*(analog(dist_port)>dist_low_thresh)*(analog(dist_port)