22 #if defined(CONF_DMOTOR) 137 #warning Enable CONF_DMOTOR to use Motor.H 138 #endif // CONF_DMOTOR const void forward(const unsigned char s) const
set motor direction to forward at speed {s}
const void direction(const MotorDirection dir) const
set the motor direction
const void brake(int duration) const
set the motor to brake and delay return
const void forward() const
set motor direction to forward
void motor_a_speed(unsigned char speed)
set motor A speed
void motor_b_dir(MotorDirection dir)
set motor B direction to dir
Interface: console input / output.
Motor(const Port port)
construct a motor connected to {port}
void(* ms)(unsigned char speed)
current velocity setting for this motor instance
~Motor()
destroy our motor instance
kernel configuration file
const void speed(const unsigned char speed) const
set the motor speed
const void reverse(const unsigned char s) const
set the motor direction to reverse at speed {s}
void motor_c_dir(MotorDirection dir)
set motor C direction to dir
void(* md)(const MotorDirection dir)
current direction setting for this motor instance
const void off() const
turn the motor off this disables power and the motor coasts to a stop
void delay(unsigned ms)
uncalibrated delay loop
void motor_a_dir(MotorDirection dir)
set motor A direction to dir
const void brake() const
set the motor to brake
const void reverse() const
set the motor direction to reverse
Port
valid port designators
MotorDirection
the motor directions
void motor_b_speed(unsigned char speed)
set motor B speed
void motor_c_speed(unsigned char speed)
set motor C speed