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