17 #include <QtCore/QObject> 18 #include <QtCore/QString> 19 #include <QtCore/QVector> 30 class MspCommunicatorInterface;
46 Status status()
const override;
48 int minControl()
const override;
50 int maxControl()
const override;
53 void setPower(
int power,
bool constrain =
true)
override;
55 int power()
const override;
57 void powerOff()
override;
64 void setPeriod(
int period)
override;
67 void brake(
int durationMs = 500)
override;
73 int mMspCommandNumber;
78 QVector<int> mPowerMap;
Definition: analogSensor.h:23
static const int port
Definition: trikCommunicatorTest.cpp:24
T constrain(T value, T max, T min)
Definition: gyroscopeIndicator.cpp:72
Helper class to track device state (off, starting, ready, stopping, fail).
Definition: deviceState.h:26
Abstract motor. It is differently implemented by different motor types (like servo and power motors)...
Definition: motorInterface.h:26
Status
Device status.
Definition: deviceInterface.h:33
Abstract interface for communication with MSP, may be implemented by I2C or USB buses, depending on current MSP configuration.
Definition: mspCommunicatorInterface.h:26
Definition: trikCommunicator.h:27
TRIK power motor.
Definition: powerMotor.h:33