#pragma once typedef enum { LEFT = 0, RIGHT = 1 } motor_side; #define M 2 #define L_MOTOR_PORT OUTPUT_B #define L_MOTOR_EXT_PORT EXT_PORT__NONE_ #define R_MOTOR_PORT OUTPUT_C #define R_MOTOR_EXT_PORT EXT_PORT__NONE_ void set_left_speed (int speed); void set_right_speed(int speed); static void tacho_set_speed_perc(motor_side m, int perc); void run_forward_forever(int speed); void run_forever(int left_speed, int right_speed); void run_timed(int left_speed, int right_speed, int ms); int init_motor(); char* find_motor(); void tacho_set_max_speed(); void tacho_stop_both(); static void tacho_stop(motor_side m); static void tacho_run_timed(motor_side m); static void tacho_set_time_with_ramp(motor_side m, int secs); void test_left_motor(); void test_right_motor(); static void test_motor_l(motor_side m); void test_motor_m();