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