dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
brainre1.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 #ifndef BRAINRE1_H
27 #define BRAINRE1_H
28 
29 #include <coreplugin/iboardtype.h>
30 
31 class BrainRE1 : public Core::IBoardType
32 {
33 public:
34  BrainRE1();
35  virtual ~BrainRE1();
36 
37  virtual QString shortName();
38  virtual QString boardDescription();
39  virtual bool queryCapabilities(BoardCapabilities capability);
40  virtual QPixmap getBoardPicture();
41  virtual QString getHwUAVO();
42 
45 
51  virtual bool setInputType(Core::IBoardType::InputType type);
52 
59 
64  virtual QString getConnectionDiagram()
65  {
66  return ":/brainfpv/images/brainre1-connection-diagram.svg";
67  }
68 
69  virtual int queryMaxGyroRate();
70  virtual QWidget *getBoardConfiguration(QWidget *parent, bool connected);
71  virtual QStringList getAdcNames();
72 
78  virtual QVector<QVector<int>> getChannelBanks();
79 
80  virtual bool hasAnnunciator(AnnunciatorType annunc);
81 };
82 
83 #endif // BRAINRE1_H
virtual QString getHwUAVO()
Definition: brainre1.cpp:104
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
Definition: brainre1.cpp:169
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
Return a custom configuration widget, if one is provided.
Definition: brainre1.cpp:242
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: brainre1.cpp:85
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: brainre1.cpp:230
virtual QVector< QVector< int > > getChannelBanks()
Get banks of output PWM channels banks on the board.
Definition: brainre1.cpp:248
virtual QStringList getAdcNames()
Definition: brainre1.cpp:235
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: brainre1.cpp:271
virtual ~BrainRE1()
Definition: brainre1.cpp:57
virtual QString boardDescription()
Definition: brainre1.cpp:66
virtual QString shortName()
Definition: brainre1.cpp:61
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: brainre1.cpp:115
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: brainre1.cpp:91
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
Definition: brainre1.h:64
BrainRE1()
Brain::Brain This is the Brain board definition.
Definition: brainre1.cpp:41
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: brainre1.cpp:72