dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
playuavosd.cpp
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 #include "playuavosd.h"
31 #include "board_usb_ids.h"
32 
33 #include "hwsimulation.h"
35 
41 {
42  boardType = 0xCB;
43 
44  // Common USB IDs
46  USBInfo(DRONIN_VID_DRONIN_BOOTLOADER, DRONIN_PID_DRONIN_BOOTLOADER, BCD_DEVICE_BOOTLOADER));
48  USBInfo(DRONIN_VID_DRONIN_FIRMWARE, DRONIN_PID_DRONIN_FIRMWARE, BCD_DEVICE_FIRMWARE));
49 }
50 
52 {
53 }
54 
56 {
57  return QString("PlayUAVOSD");
58 }
59 
61 {
62  return QString("PlayUAVOSD running dRonin firmware");
63 }
64 
66 {
67  switch (capability) {
70  return true;
71  default:
72  break;
73  }
74  return false;
75 }
76 
78 {
79  return QPixmap(":/images/gcs_logo_256.png");
80 }
81 
83 {
84  return "HwPlayUavOsd";
85 }
86 
88 {
89  switch (annunc) {
91  case ANNUNCIATOR_ALARM:
92  return true;
93  case ANNUNCIATOR_BUZZER:
94  case ANNUNCIATOR_RGB:
95  case ANNUNCIATOR_DAC:
96  break;
97  }
98  return false;
99 }
100 
qint32 boardType
The numerical board type ID.
Definition: iboardtype.h:284
virtual ~PlayUavOsd()
Definition: playuavosd.cpp:51
virtual QString getHwUAVO()
Definition: playuavosd.cpp:82
virtual QString shortName()
Definition: playuavosd.cpp:55
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
The USBInfo struct.
Definition: iboardtype.h:62
void addFirmwareUSBInfo(USBInfo info)
Definition: iboardtype.h:277
void addBootloaderUSBInfo(USBInfo info)
Definition: iboardtype.h:278
virtual bool queryCapabilities(BoardCapabilities capability)
Query capabilities of the board.
Definition: playuavosd.cpp:65
PlayUavOsd()
PlayUavOsd:PlayUavOsd This is the PlayUavOsd board definition.
Definition: playuavosd.cpp:40
virtual QString boardDescription()
Definition: playuavosd.cpp:60
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Definition: playuavosd.cpp:87
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: playuavosd.cpp:77