dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
vehicleconfigurationsource.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef VEHICLECONFIGURATIONSOURCE_H
30 #define VEHICLECONFIGURATIONSOURCE_H
31 
32 #include <QString>
33 #include <coreplugin/iboardtype.h>
34 #include "actuatorsettings.h"
35 
37 {
41 
42  float m_gyroXBias;
43  float m_gyroYBias;
44  float m_gyroZBias;
45 };
46 
48 {
49  quint16 channelMin;
50  quint16 channelNeutral;
51  quint16 channelMax;
52 
53  // Default values
55  : channelMin(1000)
56  , channelNeutral(1000)
57  , channelMax(1900)
58  {
59  }
60 };
61 
63 {
64 public:
66 
67  enum VEHICLE_TYPE {
73  };
89  };
90  enum ESC_TYPE {
99  };
100 
103 
104  virtual Core::IBoardType *getControllerType() const = 0;
107  virtual Core::IBoardType::InputType getInputType() const = 0;
109 
112 
113  virtual bool isCalibrationPerformed() const = 0;
114  virtual accelGyroBias getCalibrationBias() const = 0;
115 
116  virtual bool isMotorCalibrationPerformed() const = 0;
118 
119  virtual bool isRestartNeeded() const = 0;
120 
121  virtual QString getSummaryText() = 0;
122 };
123 
124 #endif // VEHICLECONFIGURATIONSOURCE_H
virtual Core::IBoardType::InputType getInputType() const =0
virtual VehicleConfigurationSource::GPS_SETTING getGPSSetting() const =0
virtual bool isCalibrationPerformed() const =0
virtual QList< actuatorChannelSettings > getActuatorSettings() const =0
virtual bool isMotorCalibrationPerformed() const =0
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual VehicleConfigurationSource::RADIO_SETTING getRadioSetting() const =0
virtual VehicleConfigurationSource::VEHICLE_TYPE getVehicleType() const =0
virtual accelGyroBias getCalibrationBias() const =0
virtual VehicleConfigurationSource::VEHICLE_SUB_TYPE getVehicleSubType() const =0
virtual bool isRestartNeeded() const =0
virtual VehicleConfigurationSource::ESC_TYPE getESCType() const =0
virtual QString getSummaryText()=0
virtual Core::IBoardType * getControllerType() const =0