dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
vehicletrim.h
Go to the documentation of this file.
1
7
/*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16
* for more details.
17
*
18
* You should have received a copy of the GNU General Public License along
19
* with this program; if not, see <http://www.gnu.org/licenses/>
20
*/
21
#ifndef VEHICLETRIM_H
22
#define VEHICLETRIM_H
23
24
#include <
uavobjects/uavobjectmanager.h
>
25
#include <
extensionsystem/pluginmanager.h
>
26
#include <
uavobjects/uavobject.h
>
27
#include <
tempcompcurve.h
>
28
29
#include <QObject>
30
#include <QTimer>
31
#include <QString>
32
39
class
VehicleTrim
:
public
QObject
40
{
41
Q_OBJECT
42
43
public
:
44
explicit
VehicleTrim
();
45
~VehicleTrim
();
46
47
enum
actuatorTrimMessages
{
48
ACTUATOR_TRIM_SUCCESS
,
49
ACTUATOR_TRIM_FAILED_DUE_TO_MISSING_RECEIVER
,
50
ACTUATOR_TRIM_FAILED_DUE_TO_FLIGHTMODE
51
};
52
53
enum
autopilotLevelBiasMessages
{
54
AUTOPILOT_LEVEL_SUCCESS
,
55
AUTOPILOT_LEVEL_FAILED_DUE_TO_MISSING_RECEIVER
,
56
AUTOPILOT_LEVEL_FAILED_DUE_TO_ARMED_STATE
,
57
AUTOPILOT_LEVEL_FAILED_DUE_TO_FLIGHTMODE
,
58
AUTOPILOT_LEVEL_FAILED_DUE_TO_STABILIZATIONMODE
59
};
60
61
autopilotLevelBiasMessages
setAutopilotBias
();
62
actuatorTrimMessages
setTrimActuators
();
63
64
private
:
65
signals:
66
68
void
trimCompleted
();
69
70
private
:
71
protected
:
73
UAVObjectManager
*
getObjectManager
();
74
};
75
76
#endif // VEHICLETRIM_H
VehicleTrim::ACTUATOR_TRIM_FAILED_DUE_TO_MISSING_RECEIVER
Definition:
vehicletrim.h:49
pluginmanager.h
VehicleTrim::autopilotLevelBiasMessages
autopilotLevelBiasMessages
Definition:
vehicletrim.h:53
VehicleTrim::ACTUATOR_TRIM_FAILED_DUE_TO_FLIGHTMODE
Definition:
vehicletrim.h:50
VehicleTrim::VehicleTrim
VehicleTrim()
Definition:
vehicletrim.cpp:41
VehicleTrim::setAutopilotBias
autopilotLevelBiasMessages setAutopilotBias()
VehicleTrim::setFixedWingTrimAutopilotBias Takes the desired roll and pitch, and sets that as the aut...
Definition:
vehicletrim.cpp:54
VehicleTrim::trimCompleted
void trimCompleted()
Indicate that a trim process has successfully completed and the results saved to UAVO.
VehicleTrim::actuatorTrimMessages
actuatorTrimMessages
Definition:
vehicletrim.h:47
VehicleTrim::getObjectManager
UAVObjectManager * getObjectManager()
Get the object manager.
Definition:
vehicletrim.cpp:173
VehicleTrim::AUTOPILOT_LEVEL_FAILED_DUE_TO_STABILIZATIONMODE
Definition:
vehicletrim.h:58
VehicleTrim::AUTOPILOT_LEVEL_SUCCESS
Definition:
vehicletrim.h:54
VehicleTrim
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:
vehicletrim.h:39
VehicleTrim::AUTOPILOT_LEVEL_FAILED_DUE_TO_ARMED_STATE
Definition:
vehicletrim.h:56
VehicleTrim::AUTOPILOT_LEVEL_FAILED_DUE_TO_MISSING_RECEIVER
Definition:
vehicletrim.h:55
VehicleTrim::setTrimActuators
actuatorTrimMessages setTrimActuators()
VehicleTrim::setFixedWingTrimActuators Reads the servo inputs from the transmitter, and sets these values as the neutral points.
Definition:
vehicletrim.cpp:110
VehicleTrim::AUTOPILOT_LEVEL_FAILED_DUE_TO_FLIGHTMODE
Definition:
vehicletrim.h:57
UAVObjectManager
Definition:
uavobjectmanager.h:46
VehicleTrim::ACTUATOR_TRIM_SUCCESS
Definition:
vehicletrim.h:48
VehicleTrim::~VehicleTrim
~VehicleTrim()
Definition:
vehicletrim.cpp:45
uavobject.h
tempcompcurve.h
uavobjectmanager.h
ground
gcs
src
plugins
config
vehicletrim.h
Generated by
1.8.6