dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
taulink.cpp
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  */
27 
28 #include "taulink.h"
29 
32 #include "board_usb_ids.h"
33 
39 {
40  // Common USB IDs
42  USBInfo(DRONIN_VID_DRONIN_BOOTLOADER, DRONIN_PID_DRONIN_BOOTLOADER, BCD_DEVICE_BOOTLOADER));
44  USBInfo(DRONIN_VID_DRONIN_FIRMWARE, DRONIN_PID_DRONIN_FIRMWARE, BCD_DEVICE_FIRMWARE));
45  // Legacy USB IDs
47  USBInfo(DRONIN_VID_OPENPILOT_PIPX, DRONIN_PID_OPENPILOT_PIPX, BCD_DEVICE_BOOTLOADER));
49  USBInfo(DRONIN_VID_OPENPILOT_PIPX, DRONIN_PID_OPENPILOT_PIPX, BCD_DEVICE_FIRMWARE));
50 
51  boardType = 0x03;
52 
53  ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
54  uavoUtilManager = pm->getObject<UAVObjectUtilManager>();
55 }
56 
58 {
59 }
60 
62 {
63  return QString("PipXtreme");
64 }
65 
67 {
68  return QString("The OpLink/TauLink radio modem");
69 }
70 
73 {
74  switch (capability) {
76  return true;
77  default:
78  return false;
79  }
80  return false;
81 }
82 
84 {
85  return QPixmap(":/taulabs/images/taulink.png");
86 }
87 
89 {
90  return "HwTauLink";
91 }
92 
95 {
96  ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
97  UAVObjectManager *uavoManager = pm->getObject<UAVObjectManager>();
98 
99  HwTauLink *wwTauLink = HwTauLink::GetInstance(uavoManager);
100  Q_ASSERT(wwTauLink);
101 
102  return wwTauLink;
103 }
qint32 boardType
The numerical board type ID.
Definition: iboardtype.h:284
Core plugin system that manages the plugins, their life cycle and their registered objects...
Definition: pluginmanager.h:53
BoardCapabilities
Types of capabilities boards can support.
Definition: iboardtype.h:92
HwTauLink * getSettings()
Get the settings object.
Definition: taulink.cpp:94
virtual ~TauLink()
Definition: taulink.cpp:57
The USBInfo struct.
Definition: iboardtype.h:62
void addFirmwareUSBInfo(USBInfo info)
Definition: iboardtype.h:277
virtual QString boardDescription()
Definition: taulink.cpp:66
void addBootloaderUSBInfo(USBInfo info)
Definition: iboardtype.h:278
TauLink()
TauLink::TauLink This is the PipXtreme radio modem definition.
Definition: taulink.cpp:38
virtual QString getHwUAVO()
Definition: taulink.cpp:88
virtual QPixmap getBoardPicture()
getBoardPicture
Definition: taulink.cpp:83
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Definition: taulink.cpp:72
virtual QString shortName()
Definition: taulink.cpp:61