dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
brain.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 BRAIN_H
28 #define BRAIN_H
29 
30 #include <coreplugin/iboardtype.h>
31 
32 class Brain : public Core::IBoardType
33 {
34 public:
35  Brain();
36  virtual ~Brain();
37 
38  virtual QString shortName();
39  virtual QString boardDescription();
40  virtual int minBootLoaderVersion();
41  virtual bool queryCapabilities(BoardCapabilities capability);
42  virtual QPixmap getBoardPicture();
43  virtual QString getHwUAVO();
44 
47 
52  virtual bool setInputType(Core::IBoardType::InputType type);
53 
59 
60  virtual int queryMaxGyroRate();
61  virtual QWidget *getBoardConfiguration(QWidget *parent, bool connected);
62  virtual QStringList getAdcNames();
63  virtual bool hasAnnunciator(AnnunciatorType annunc);
64 };
65 
66 #endif // BRAIN_H
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: brain.cpp:101
virtual QString shortName()
Definition: brain.cpp:73
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
Definition: brain.h:32
virtual QString boardDescription()
Definition: brain.cpp:78
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: brain.cpp:112
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: brain.cpp:129
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: brain.cpp:271
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: brain.cpp:84
Brain()
Brain::Brain This is the Brain board definition.
Definition: brain.cpp:42
virtual ~Brain()
Definition: brain.cpp:64
virtual QStringList getAdcNames()
Definition: brain.cpp:304
virtual QString getHwUAVO()
Definition: brain.cpp:106
virtual int minBootLoaderVersion()
Returns the minimum bootloader version required.
Definition: brain.cpp:68
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
Definition: brain.cpp:185
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
Return a custom configuration widget, if one is provided.
Definition: brain.cpp:298
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: brain.cpp:311