17 #include <QtCore/QObject> 37 virtual int minControl()
const = 0;
40 virtual int maxControl()
const = 0;
47 virtual void setPower(
int power,
bool constrain =
true) = 0;
50 virtual int power()
const = 0;
54 virtual void powerOff() = 0;
57 virtual void brake(
int durationMs = 500) = 0;
61 virtual void setPeriod(
int uSec = 20000) = 0;
T constrain(T value, T max, T min)
Definition: gyroscopeIndicator.cpp:72
Abstract motor. It is differently implemented by different motor types (like servo and power motors)...
Definition: motorInterface.h:26
#define TRIKCONTROL_EXPORT
Definition: declSpec.h:23
Definition: trikCommunicator.h:27
TRIK device interface, base interface for everything that can be plugged to a brick or already on boa...
Definition: deviceInterface.h:23
Type
Definition: motorInterface.h:31