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 ()
 
QmlObjectListModel *actuators READ actuators NOTIFY actuatorsChanged (Actuator *allMotorsActuator READ allMotorsActuator NOTIFY actuatorsChanged) 1(bool hadFailure READ hadFailure NOTIFY hadFailureChanged) QmlObjectListModel *actuators()
 
ActuatorallMotorsActuator ()
 
void updateFunctions (const QList< Actuator * > &actuators)
 
void setActive (bool active)
 
void setChannelTo (int index, float value)
 
void stopControl (int index)
 
bool hadFailure () const
 

Detailed Description

Definition at line 44 of file ActuatorTesting.h.

Constructor & Destructor Documentation

◆ ActuatorTest()

ActuatorTest::ActuatorTest ( Vehicle vehicle)

Definition at line 7 of file ActuatorTesting.cc.

◆ ~ActuatorTest()

ActuatorTest::~ActuatorTest ( )

Definition at line 16 of file ActuatorTesting.cc.

References QmlObjectListModel::clearAndDeleteContents().

Member Function Documentation

◆ actuatorsChanged [1/2]

void ActuatorTesting::ActuatorTest::actuatorsChanged ( )
signal

Referenced by updateFunctions().

◆ actuatorsChanged() [2/2]

QmlObjectListModel *actuators READ actuators NOTIFY ActuatorTesting::ActuatorTest::actuatorsChanged ( Actuator *allMotorsActuator READ allMotorsActuator NOTIFY  actuatorsChanged)
inline

Definition at line 52 of file ActuatorTesting.h.

◆ allMotorsActuator()

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

Definition at line 57 of file ActuatorTesting.h.

◆ hadFailure()

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

Definition at line 81 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 104 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 70 of file ActuatorTesting.cc.

◆ stopControl()

void ActuatorTest::stopControl ( int  index)

Stop controlling an actuator

Parameters
indexactuator index (-1 for all)

Definition at line 83 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: