|
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 READ actuators NOTIFY | actuatorsChanged (Actuator *allMotorsActuator READ allMotorsActuator NOTIFY actuatorsChanged) 1(bool hadFailure READ hadFailure NOTIFY hadFailureChanged) QmlObjectListModel *actuators() |
| Actuator * | allMotorsActuator () |
| void | updateFunctions (const QList< Actuator * > &actuators) |
| void | setActive (bool active) |
| void | setChannelTo (int index, float value) |
| void | stopControl (int index) |
| bool | hadFailure () const |
Definition at line 44 of file ActuatorTesting.h.
| ActuatorTest::ActuatorTest | ( | Vehicle * | vehicle | ) |
Definition at line 7 of file ActuatorTesting.cc.
| ActuatorTest::~ActuatorTest | ( | ) |
Definition at line 16 of file ActuatorTesting.cc.
References QmlObjectListModel::clearAndDeleteContents().
|
signal |
Referenced by updateFunctions().
|
inline |
Definition at line 52 of file ActuatorTesting.h.
|
inline |
Definition at line 57 of file ActuatorTesting.h.
|
inline |
Definition at line 81 of file ActuatorTesting.h.
|
signal |
| void ActuatorTest::setActive | ( | bool | active | ) |
(de-)activate actuator testing. No channels can be changed while deactivated
Definition at line 104 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 70 of file ActuatorTesting.cc.
| void ActuatorTest::stopControl | ( | int | index | ) |
Stop controlling an actuator
| index | actuator index (-1 for all) |
Definition at line 83 of file ActuatorTesting.cc.
Referenced by setActive().
| void ActuatorTest::updateFunctions | ( | const QList< Actuator * > & | actuators | ) |
Definition at line 22 of file ActuatorTesting.cc.
References actuatorsChanged(), QmlObjectListModel::append(), and QmlObjectListModel::clearAndDeleteContents().
Referenced by Actuators::parametersChanged().