>> #makes sure launch motor is in the right place launch_motor.run_to_position(45, direction='shortest path', speed=75) #go_to_pos(new_pos) flywheel_motor.start_at_power(-1 * power) go_to_ang(new_ang) wait_for_seconds(3) for i in range(1): launch() #makes sure launch motor is in the right place again launch_motor.run_to_position(45, direction='shortest path', speed=75) wait_for_seconds(1) flywheel_motor.stop() go_to_ang(0)
>> #gets everything back to center pos_motor.run_to_degrees_counted(0, pos_speed) ang_motor.run_to_degrees_counted(0, ang_speed)
>> #Code that tells the robot that it's in the middle and not angled. Resets its origin point. pos_motor.set_degrees_counted(0) ang_motor.set_degrees_counted(0)
Return back to the main homepage.