dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
revolution.h
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  */
27 #ifndef REVOLUTION_H
28 #define REVOLUTION_H
29 
30 #include "hwrevolution.h"
31 #include <coreplugin/iboardtype.h>
33 
35 {
36 public:
37  Revolution();
38  virtual ~Revolution();
39 
40  virtual QString shortName();
41  virtual QString boardDescription();
42  virtual int minBootLoaderVersion();
43  virtual bool queryCapabilities(BoardCapabilities capability);
44  virtual QPixmap getBoardPicture();
45  virtual QString getHwUAVO();
46  HwRevolution *getSettings();
47 
50 
55  virtual bool setInputType(Core::IBoardType::InputType type);
56 
62 
67  virtual QString getConnectionDiagram()
68  {
69  return ":/openpilot/images/revo-connection-diagram.svg";
70  }
71 
72  virtual int queryMaxGyroRate();
73 
74  virtual QStringList getAdcNames();
75  virtual bool hasAnnunciator(AnnunciatorType annunc);
76 
77 private:
78  UAVObjectUtilManager *uavoUtilManager;
79 };
80 
81 #endif // REVOLUTION_H
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
Definition: revolution.h:67
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: revolution.cpp:94
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: revolution.cpp:325
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: revolution.cpp:133
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual QString getHwUAVO()
Definition: revolution.cpp:116
virtual int minBootLoaderVersion()
Returns the minimum bootloader version required.
Definition: revolution.cpp:78
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
Definition: revolution.cpp:206
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: revolution.cpp:292
virtual QStringList getAdcNames()
Definition: revolution.cpp:319
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: revolution.cpp:111
HwRevolution * getSettings()
Get the settings object.
Definition: revolution.cpp:122
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: revolution.cpp:150
Revolution()
Revolution::Revolution This is the Revolution board definition.
Definition: revolution.cpp:46
virtual QString boardDescription()
Definition: revolution.cpp:88
virtual ~Revolution()
Definition: revolution.cpp:74
virtual QString shortName()
Definition: revolution.cpp:83