QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ActuatorTesting::ActuatorTest Class Reference

#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 ()
 
QmlObjectListModelactuators ()
 
ActuatorallMotorsActuator ()
 
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
 

Detailed Description

Definition at line 49 of file ActuatorTesting.h.

Constructor & Destructor Documentation

◆ ActuatorTest()

ActuatorTest::ActuatorTest ( Vehicle vehicle)

Definition at line 12 of file ActuatorTesting.cc.

◆ ~ActuatorTest()

ActuatorTest::~ActuatorTest ( )

Definition at line 21 of file ActuatorTesting.cc.

References QmlObjectListModel::clearAndDeleteContents().

Member Function Documentation

◆ actuators()

QmlObjectListModel * ActuatorTesting::ActuatorTest::actuators ( )
inline

Definition at line 61 of file ActuatorTesting.h.

Referenced by updateFunctions().

◆ actuatorsChanged

void ActuatorTesting::ActuatorTest::actuatorsChanged ( )
signal

Referenced by updateFunctions().

◆ allMotorsActuator()

Actuator * ActuatorTesting::ActuatorTest::allMotorsActuator ( )
inline

Definition at line 62 of file ActuatorTesting.h.

◆ hadFailure()

bool ActuatorTesting::ActuatorTest::hadFailure ( ) const
inline

Definition at line 86 of file ActuatorTesting.h.

◆ hadFailureChanged

void ActuatorTesting::ActuatorTest::hadFailureChanged ( )
signal

◆ setActive()

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().

◆ setChannelTo()

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.

Parameters
indexactuator index
valuecontrol value in range defined by the actuator

Definition at line 75 of file ActuatorTesting.cc.

◆ stopControl()

void ActuatorTest::stopControl ( int  index)

Stop controlling an actuator

Parameters
indexactuator index (-1 for all)

Definition at line 88 of file ActuatorTesting.cc.

Referenced by setActive().

◆ updateFunctions()

void ActuatorTest::updateFunctions ( const QList< Actuator * > &  actuators)

The documentation for this class was generated from the following files: