enum MotorIndex { MOTOR_LEFT = 0, MOTOR_RIGHT = 1 }; void motor_init(); void motor_set_pwm(int idx, float duty); // duty: -100 ~ +100 void motor_stop_all(); void motor_enable(bool on);