dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
sparky2.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 SPARKY2_H
27 #define SPARKY2_H
28 
29 #include "hwsparky2.h"
30 #include <coreplugin/iboardtype.h>
32 
33 class Sparky2 : public Core::IBoardType
34 {
35 public:
36  Sparky2();
37  virtual ~Sparky2();
38 
39  virtual QString shortName();
40  virtual QString boardDescription();
41  virtual bool queryCapabilities(BoardCapabilities capability);
42  virtual QPixmap getBoardPicture();
43  virtual QString getHwUAVO();
44  HwSparky2 *getSettings();
45 
48 
53  virtual bool setInputType(Core::IBoardType::InputType type);
54 
60 
65  virtual QString getConnectionDiagram()
66  {
67  return ":/taulabs/images/sparky-connection-diagram.svg";
68  }
69 
70  virtual int queryMaxGyroRate();
71 
72  virtual QStringList getAdcNames();
73  virtual bool hasAnnunciator(AnnunciatorType annunc);
74 
75 private:
76  UAVObjectUtilManager *uavoUtilManager;
77 };
78 
79 #endif // SPARKY2_H
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: sparky2.cpp:91
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual QString getHwUAVO()
Definition: sparky2.cpp:113
Sparky2()
Sparky2::Sparky2 This is the Sparky board definition.
Definition: sparky2.cpp:38
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: sparky2.cpp:131
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: sparky2.cpp:108
virtual bool hasAnnunciator(AnnunciatorType annunc)
Definition: sparky2.cpp:311
HwSparky2 * getSettings()
Get the settings object.
Definition: sparky2.cpp:119
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: sparky2.cpp:277
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: sparky2.cpp:149
virtual QString shortName()
Definition: sparky2.cpp:80
virtual QString boardDescription()
Definition: sparky2.cpp:85
virtual ~Sparky2()
Definition: sparky2.cpp:76
virtual QStringList getAdcNames()
Definition: sparky2.cpp:304
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
Definition: sparky2.cpp:202
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
Definition: sparky2.h:65