def motor_callback(channel, msg): input_data = DriveMotors.decode(msg) # This function is for testing the joystick-motor algorithm print("Left: {} Right: {}\n".format(input_data.left, input_data.right))
def drive_motor_callback(channel, msg): m = DriveMotors.decode(msg) exec_later(rover.percent_vbus_drive(Talons.left_front.value, m.left)) exec_later(rover.percent_vbus_drive(Talons.right_front.value, m.right))