dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
sparky.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 SPARKY_H
27 #define SPARKY_H
28 
29 #include <coreplugin/iboardtype.h>
30 
31 class Sparky : public Core::IBoardType
32 {
33 public:
34  Sparky();
35  virtual ~Sparky();
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 
50  virtual bool setInputType(Core::IBoardType::InputType type);
51 
57 
62  virtual QString getConnectionDiagram()
63  {
64  return ":/taulabs/images/sparky-connection-diagram.svg";
65  }
66 
67  virtual int queryMaxGyroRate();
68  virtual QStringList getAdcNames();
69  virtual bool hasAnnunciator(AnnunciatorType annunc);
70 };
71 
72 #endif // SPARKY_H
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
Definition: sparky.h:62
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: sparky.cpp:97
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: sparky.cpp:286
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
Definition: sparky.cpp:170
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
Definition: sparky.h:31
virtual QString boardDescription()
Definition: sparky.cpp:75
Sparky()
Sparky::Sparky This is the Sparky board definition.
Definition: sparky.cpp:41
virtual bool setInputType(Core::IBoardType::InputType type)
Definition: sparky.cpp:126
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: sparky.cpp:81
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
Definition: sparky.cpp:231
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
Definition: sparky.cpp:108
virtual QString shortName()
Definition: sparky.cpp:70
virtual QString getHwUAVO()
Definition: sparky.cpp:102
virtual ~Sparky()
Definition: sparky.cpp:66
virtual QStringList getAdcNames()
Definition: sparky.cpp:258