dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
lux.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 #ifndef LUX_H
29 #define LUX_H
30 
31 #include <coreplugin/iboardtype.h>
32 
33 class Lux : public Core::IBoardType
34 {
35 public:
36  Lux();
37  virtual ~Lux();
38 
39  virtual QString shortName();
40  virtual QString boardDescription();
41  virtual bool queryCapabilities(BoardCapabilities capability);
42  virtual QPixmap getBoardPicture();
43  virtual QString getHwUAVO();
44  virtual int queryMaxGyroRate();
45 
48 
53  virtual bool setInputType(Core::IBoardType::InputType type);
54 
60 
65  virtual QString getConnectionDiagram()
66  {
67  return ":/brotronics/images/lux-connection-diagram.svg";
68  }
69 
70  virtual QStringList getAdcNames();
71 
78  virtual QWidget *getBoardConfiguration(QWidget *parent, bool connected);
79 
80  virtual bool hasAnnunciator(AnnunciatorType annunc);
81 };
82 
83 #endif // LUX_H
virtual QString getHwUAVO()
Definition: lux.cpp:97
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
getBoardConfiguration
Definition: lux.cpp:285
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: lux.cpp:251
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: lux.cpp:121
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: lux.cpp:78
Definition: lux.h:33
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
Definition: lux.h:65
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: lux.cpp:291
Lux()
Lux:Lux This is the Lux board definition.
Definition: lux.cpp:43
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: lux.cpp:92
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
Definition: lux.cpp:174
virtual QString shortName()
Definition: lux.cpp:67
virtual QString boardDescription()
Definition: lux.cpp:72
virtual ~Lux()
Definition: lux.cpp:63
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: lux.cpp:103
virtual QStringList getAdcNames()
Definition: lux.cpp:278