|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <ActuatorTesting.h>
Inheritance diagram for ActuatorTesting::ActuatorTest:
Collaboration diagram for ActuatorTesting::ActuatorTest:Signals | |
| void | actuatorsChanged () |
| void | hadFailureChanged () |
Public Member Functions | |
| ActuatorTest (Vehicle *vehicle) | |
| ~ActuatorTest () | |
| QmlObjectListModel * | actuators () |
| Actuator * | allMotorsActuator () |
| void | updateFunctions (const QList< Actuator * > &actuators) |
| Q_INVOKABLE void | setActive (bool active) |
| Q_INVOKABLE void | setChannelTo (int index, float value) |
| Q_INVOKABLE void | stopControl (int index) |
| bool | hadFailure () const |
Definition at line 49 of file ActuatorTesting.h.
| ActuatorTest::ActuatorTest | ( | Vehicle * | vehicle | ) |
Definition at line 12 of file ActuatorTesting.cc.
| ActuatorTest::~ActuatorTest | ( | ) |
Definition at line 21 of file ActuatorTesting.cc.
References QmlObjectListModel::clearAndDeleteContents().
|
inline |
Definition at line 61 of file ActuatorTesting.h.
Referenced by updateFunctions().
|
signal |
Referenced by updateFunctions().
|
inline |
Definition at line 62 of file ActuatorTesting.h.
|
inline |
Definition at line 86 of file ActuatorTesting.h.
|
signal |
| void ActuatorTest::setActive | ( | bool | active | ) |
(de-)activate actuator testing. No channels can be changed while deactivated
Definition at line 109 of file ActuatorTesting.cc.
References stopControl().
| void ActuatorTest::setChannelTo | ( | int | index, |
| float | value | ||
| ) |
Control an actuator. This needs to be called at least every 100ms for each controlled channel, to refresh that channel, otherwise it will be stopped.
| index | actuator index |
| value | control value in range defined by the actuator |
Definition at line 75 of file ActuatorTesting.cc.
| void ActuatorTest::stopControl | ( | int | index | ) |
Stop controlling an actuator
| index | actuator index (-1 for all) |
Definition at line 88 of file ActuatorTesting.cc.
Referenced by setActive().
| void ActuatorTest::updateFunctions | ( | const QList< Actuator * > & | actuators | ) |
Definition at line 27 of file ActuatorTesting.cc.
References actuators(), actuatorsChanged(), QmlObjectListModel::append(), and QmlObjectListModel::clearAndDeleteContents().
Referenced by Actuators::parametersChanged().