dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
seppuku.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  *
25  * Additional note on redistribution: The copyright and license notices above
26  * must be maintained in each individual source file that is a derivative work
27  * of this source file; otherwise redistribution is prohibited.
28  */
29 
30 #ifndef SEPPUKU_H_
31 #define SEPPUKU_H_
32 
34 #include <coreplugin/iboardtype.h>
35 
36 class Seppuku : public Core::IBoardType
37 {
38 public:
39  Seppuku();
40  virtual ~Seppuku();
41 
42  virtual QString shortName() override;
43  virtual QString boardDescription() override;
44  virtual bool queryCapabilities(BoardCapabilities capability) override;
45  virtual QPixmap getBoardPicture() override;
46  virtual QString getHwUAVO() override;
48  virtual bool setInputType(Core::IBoardType::InputType type) override;
49  virtual Core::IBoardType::InputType getInputType() override;
50  virtual int queryMaxGyroRate() override;
51  virtual QStringList getAdcNames() override;
52  virtual QString getConnectionDiagram() override;
53  virtual QWidget *getBoardConfiguration(QWidget *parent, bool connected) override;
54  virtual bool hasAnnunciator(AnnunciatorType annunc) override;
55  virtual int onBoardRgbLeds() const override { return 1; }
56 
57 private:
58  UAVObjectManager *uavoManager;
59 };
60 
61 #endif // SEPPUKU_H_
62 
Seppuku()
Seppuku:Seppuku This is the Seppuku board definition.
Definition: seppuku.cpp:41
InputType
Types of input to configure for the default port.
Definition: iboardtype.h:158
virtual bool hasAnnunciator(AnnunciatorType annunc) override
Check if the board has the given type of annunciator.
Definition: seppuku.cpp:217
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
virtual bool setInputType(Core::IBoardType::InputType type) override
Configure the board to use an receiver input type on a port number.
Definition: seppuku.cpp:104
virtual QString getConnectionDiagram() override
getConnectionDiagram get the connection diagram for this board
Definition: seppuku.cpp:205
virtual QPixmap getBoardPicture() override
getBoardPicture
Definition: seppuku.cpp:195
virtual bool queryCapabilities(BoardCapabilities capability) override
Query capabilities of the board.
Definition: seppuku.cpp:76
virtual QString boardDescription() override
Definition: seppuku.cpp:71
virtual QStringList getAdcNames() override
Definition: seppuku.cpp:187
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type) override
Determine if this board supports configuring the receiver.
Definition: seppuku.cpp:92
virtual int queryMaxGyroRate() override
Query the board for the currently set max rate of the gyro.
Definition: seppuku.cpp:182
virtual QString shortName() override
Definition: seppuku.cpp:66
virtual int onBoardRgbLeds() const override
Number of RGB LEDs located on the board The first n LEDs in the chain will apply to on-board LEDs rat...
Definition: seppuku.h:55
virtual Core::IBoardType::InputType getInputType() override
getInputType get the current input type
Definition: seppuku.cpp:148
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected) override
Return a custom configuration widget, if one is provided.
Definition: seppuku.cpp:210
virtual ~Seppuku()
Definition: seppuku.cpp:62
virtual QString getHwUAVO() override
Definition: seppuku.cpp:200