dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
VehicleTrim Class Reference

The VehicleTrim class is a UI free algorithm that can be connected to any interfaces. As such it only communicates with the UI via signals and slots, but has no direct handles to any particular controls or widgets. More...

#include <vehicletrim.h>

Inheritance diagram for VehicleTrim:

Public Types

enum  actuatorTrimMessages { ACTUATOR_TRIM_SUCCESS, ACTUATOR_TRIM_FAILED_DUE_TO_MISSING_RECEIVER, ACTUATOR_TRIM_FAILED_DUE_TO_FLIGHTMODE }
 
enum  autopilotLevelBiasMessages {
  AUTOPILOT_LEVEL_SUCCESS, AUTOPILOT_LEVEL_FAILED_DUE_TO_MISSING_RECEIVER, AUTOPILOT_LEVEL_FAILED_DUE_TO_ARMED_STATE, AUTOPILOT_LEVEL_FAILED_DUE_TO_FLIGHTMODE,
  AUTOPILOT_LEVEL_FAILED_DUE_TO_STABILIZATIONMODE
}
 

Signals

void trimCompleted ()
 Indicate that a trim process has successfully completed and the results saved to UAVO. More...
 

Public Member Functions

 VehicleTrim ()
 
 ~VehicleTrim ()
 
autopilotLevelBiasMessages setAutopilotBias ()
 VehicleTrim::setFixedWingTrimAutopilotBias Takes the desired roll and pitch, and sets that as the autopilot level bias. More...
 
actuatorTrimMessages setTrimActuators ()
 VehicleTrim::setFixedWingTrimActuators Reads the servo inputs from the transmitter, and sets these values as the neutral points. More...
 

Protected Member Functions

UAVObjectManagergetObjectManager ()
 Get the object manager. More...
 

Detailed Description

The VehicleTrim class is a UI free algorithm that can be connected to any interfaces. As such it only communicates with the UI via signals and slots, but has no direct handles to any particular controls or widgets.

Definition at line 39 of file vehicletrim.h.

Member Enumeration Documentation

Enumerator
ACTUATOR_TRIM_SUCCESS 
ACTUATOR_TRIM_FAILED_DUE_TO_MISSING_RECEIVER 
ACTUATOR_TRIM_FAILED_DUE_TO_FLIGHTMODE 

Definition at line 47 of file vehicletrim.h.

Enumerator
AUTOPILOT_LEVEL_SUCCESS 
AUTOPILOT_LEVEL_FAILED_DUE_TO_MISSING_RECEIVER 
AUTOPILOT_LEVEL_FAILED_DUE_TO_ARMED_STATE 
AUTOPILOT_LEVEL_FAILED_DUE_TO_FLIGHTMODE 
AUTOPILOT_LEVEL_FAILED_DUE_TO_STABILIZATIONMODE 

Definition at line 53 of file vehicletrim.h.

Constructor & Destructor Documentation

VehicleTrim::VehicleTrim ( )
explicit

Definition at line 41 of file vehicletrim.cpp.

VehicleTrim::~VehicleTrim ( )

Definition at line 45 of file vehicletrim.cpp.

Member Function Documentation

UAVObjectManager * VehicleTrim::getObjectManager ( )
protected

Get the object manager.

Util function to get a pointer to the object manager

Returns
pointer to the UAVObjectManager

Definition at line 173 of file vehicletrim.cpp.

VehicleTrim::autopilotLevelBiasMessages VehicleTrim::setAutopilotBias ( )

VehicleTrim::setFixedWingTrimAutopilotBias Takes the desired roll and pitch, and sets that as the autopilot level bias.

Returns
success state

Definition at line 54 of file vehicletrim.cpp.

VehicleTrim::actuatorTrimMessages VehicleTrim::setTrimActuators ( )

VehicleTrim::setFixedWingTrimActuators Reads the servo inputs from the transmitter, and sets these values as the neutral points.

Returns
success state

Definition at line 110 of file vehicletrim.cpp.

void VehicleTrim::trimCompleted ( )
signal

Indicate that a trim process has successfully completed and the results saved to UAVO.


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