dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
dtfc.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  * Additional note on redistribution: The copyright and license notices above
29  * must be maintained in each individual source file that is a derivative work
30  * of this source file; otherwise redistribution is prohibited.
31  */
32 
33 #ifndef DTFC_H
34 #define DTFC_H
35 
36 #include <coreplugin/iboardtype.h>
37 
38 class Dtfc : public Core::IBoardType
39 {
40 public:
41  Dtfc();
42  virtual ~Dtfc();
43 
44  virtual QString shortName();
45  virtual QString boardDescription();
46  virtual bool queryCapabilities(BoardCapabilities capability);
47  virtual QPixmap getBoardPicture();
48  virtual QString getHwUAVO();
49  virtual int queryMaxGyroRate();
50 
53 
58  virtual bool setInputType(Core::IBoardType::InputType type);
59 
65 
66  virtual QStringList getAdcNames();
67 
74  virtual QWidget *getBoardConfiguration(QWidget *parent, bool connected);
75 
80  virtual QString getConnectionDiagram() { return ":/dtf/images/dtfc-connection.svg"; }
81 
82  virtual bool hasAnnunciator(AnnunciatorType annunc);
83 };
84 
85 #endif // DTFC_H
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: dtfc.cpp:109
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: dtfc.cpp:98
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
Definition: dtfc.cpp:179
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual QStringList getAdcNames()
Definition: dtfc.cpp:285
Dtfc()
Dtfc:Dtfc This is the DTFc board definition.
Definition: dtfc.cpp:47
virtual QString getHwUAVO()
Definition: dtfc.cpp:103
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: dtfc.cpp:83
Definition: dtfc.h:38
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: dtfc.cpp:258
virtual QString shortName()
Definition: dtfc.cpp:72
virtual QString boardDescription()
Definition: dtfc.cpp:77
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: dtfc.cpp:127
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
getBoardConfiguration
Definition: dtfc.cpp:291
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
Definition: dtfc.h:80
virtual ~Dtfc()
Definition: dtfc.cpp:68
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: dtfc.cpp:297