51 void clearPositionCounter();
53 void moveAtVelocity(
const short& velocity);
54 void moveToPosition(
const short& speed,
const int& goalPos);
55 void moveRelativePosition(
const short& speed,
const int& deltaPos);
57 void setPidGains(
const short& p,
const short& i,
const short& d,
const short& pd,
const short&
id,
const short& dd);
58 void pidGains(
short& p,
short& i,
short& d,
short& pd,
short&
id,
short& dd);
66 bool isMotorDone()
const;
73 void blockMotorDone()
const;
93 void motor(
int percent);
104 const port_t& port()
const;
118 BackEMF(
const unsigned char& port);
119 virtual int value()
const;
120 unsigned char port()
const;
123 unsigned char m_port;
The base class for all sensors of any type.
Definition: sensor.hpp:42
EXPORT_SYM void off(int motor)
A motor object that is associated with a physical motor port.
Definition: motors.hpp:42
virtual T value() const =0
int port_t
Definition: port.hpp:14
Allows the reading of the back emf values for each motor.
Definition: motors.hpp:115
#define EXPORT_SYM
Definition: export.h:7
EXPORT_SYM void motor(int motor, int percent)
EXPORT_SYM int freeze(int motor)