32 #include "board_usb_ids.h"
67 channelBanks[2] = QVector<int>() << 5 << 6;
68 channelBanks[3] = QVector<int>() << 7 << 8;
69 channelBanks[4] = QVector<int>() << 9 << 10;
70 channelBanks[5] = QVector<int>();
82 return QString(
"Sparky2");
87 return QString(
"The Tau Labs project Sparky2 boards");
110 return QPixmap(
":/taulabs/images/sparky2.png");
124 HwSparky2 *hwSparky2 = HwSparky2::GetInstance(uavoManager);
153 HwSparky2 *hwSparky2 = HwSparky2::GetInstance(uavoManager);
158 HwSparky2::DataFields settings = hwSparky2->getData();
162 settings.RcvrPort = HwSparky2::RCVRPORT_PPM;
165 settings.RcvrPort = HwSparky2::RCVRPORT_SBUS;
168 settings.RcvrPort = HwSparky2::RCVRPORT_SBUSNONINVERTED;
171 settings.RcvrPort = HwSparky2::RCVRPORT_DSM;
174 settings.RcvrPort = HwSparky2::RCVRPORT_HOTTSUMD;
177 settings.RcvrPort = HwSparky2::RCVRPORT_HOTTSUMH;
180 settings.RcvrPort = HwSparky2::RCVRPORT_IBUS;
183 settings.RcvrPort = HwSparky2::RCVRPORT_SRXL;
186 settings.RcvrPort = HwSparky2::RCVRPORT_TBSCROSSFIRE;
193 hwSparky2->setData(settings);
206 HwSparky2 *hwSparky2 = HwSparky2::GetInstance(uavoManager);
211 HwSparky2::DataFields settings = hwSparky2->getData();
213 switch (settings.RcvrPort) {
214 case HwSparky2::RCVRPORT_PPM:
216 case HwSparky2::RCVRPORT_SBUS:
218 case HwSparky2::RCVRPORT_SBUSNONINVERTED:
220 case HwSparky2::RCVRPORT_DSM:
222 case HwSparky2::RCVRPORT_HOTTSUMD:
224 case HwSparky2::RCVRPORT_HOTTSUMH:
226 case HwSparky2::RCVRPORT_IBUS:
228 case HwSparky2::RCVRPORT_SRXL:
230 case HwSparky2::RCVRPORT_TBSCROSSFIRE:
236 switch (settings.MainPort) {
237 case HwSparky2::MAINPORT_DSM:
239 case HwSparky2::MAINPORT_HOTTSUMD:
241 case HwSparky2::MAINPORT_HOTTSUMH:
243 case HwSparky2::MAINPORT_SBUSNONINVERTED:
245 case HwSparky2::MAINPORT_IBUS:
247 case HwSparky2::MAINPORT_SRXL:
249 case HwSparky2::MAINPORT_TBSCROSSFIRE:
255 switch (settings.FlexiPort) {
256 case HwSparky2::FLEXIPORT_DSM:
258 case HwSparky2::FLEXIPORT_HOTTSUMD:
260 case HwSparky2::FLEXIPORT_HOTTSUMH:
262 case HwSparky2::FLEXIPORT_SBUSNONINVERTED:
264 case HwSparky2::FLEXIPORT_IBUS:
266 case HwSparky2::FLEXIPORT_SRXL:
268 case HwSparky2::FLEXIPORT_TBSCROSSFIRE:
281 HwSparky2 *hwSparky2 = HwSparky2::GetInstance(uavoManager);
286 HwSparky2::DataFields settings = hwSparky2->getData();
288 switch (settings.GyroRange) {
289 case HwSparky2::GYRORANGE_250:
291 case HwSparky2::GYRORANGE_500:
293 case HwSparky2::GYRORANGE_1000:
295 case HwSparky2::GYRORANGE_2000:
306 return QStringList() <<
"Analog CUR"
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
qint32 boardType
The numerical board type ID.
InputType
Types of input to configure for the default port.
QVector< QVector< qint32 > > channelBanks
The channel groups that are driven by timers.
Core plugin system that manages the plugins, their life cycle and their registered objects...
BoardCapabilities
Types of capabilities boards can support.
virtual QString getHwUAVO()
Sparky2()
Sparky2::Sparky2 This is the Sparky board definition.
void addFirmwareUSBInfo(USBInfo info)
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QPixmap getBoardPicture()
getBoardPicture
virtual bool hasAnnunciator(AnnunciatorType annunc)
void addBootloaderUSBInfo(USBInfo info)
HwSparky2 * getSettings()
Get the settings object.
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual bool setInputType(Core::IBoardType::InputType type)
virtual QString shortName()
virtual QString boardDescription()
virtual QStringList getAdcNames()
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type