33 #include "board_usb_ids.h"
60 channelBanks[2] = QVector<int>() << 4 << 7 << 9;
61 channelBanks[3] = QVector<int>() << 5;
62 channelBanks[4] = QVector<int>() << 6 << 10;
63 channelBanks[5] = QVector<int>() << 8;
72 return QString(
"Sparky");
77 return QString(
"The Tau Labs project Sparky boards");
99 return QPixmap(
":/taulabs/images/sparky.png");
130 HwSparky *hwSparky = HwSparky::GetInstance(uavoManager);
135 HwSparky::DataFields settings = hwSparky->getData();
139 settings.RcvrPort = HwSparky::RCVRPORT_PPM;
142 settings.RcvrPort = HwSparky::RCVRPORT_SBUS;
145 settings.RcvrPort = HwSparky::RCVRPORT_SBUSNONINVERTED;
148 settings.RcvrPort = HwSparky::RCVRPORT_DSM;
151 settings.RcvrPort = HwSparky::RCVRPORT_IBUS;
154 settings.RcvrPort = HwSparky::RCVRPORT_SRXL;
161 hwSparky->setData(settings);
174 HwSparky *hwSparky = HwSparky::GetInstance(uavoManager);
179 HwSparky::DataFields settings = hwSparky->getData();
181 switch (settings.RcvrPort) {
182 case HwSparky::RCVRPORT_PPM:
184 case HwSparky::RCVRPORT_SBUS:
186 case HwSparky::RCVRPORT_SBUSNONINVERTED:
188 case HwSparky::RCVRPORT_DSM:
190 case HwSparky::RCVRPORT_IBUS:
192 case HwSparky::RCVRPORT_SRXL:
198 switch (settings.FlexiPort) {
199 case HwSparky::FLEXIPORT_DSM:
201 case HwSparky::FLEXIPORT_SBUS:
203 case HwSparky::FLEXIPORT_SBUSNONINVERTED:
205 case HwSparky::FLEXIPORT_IBUS:
207 case HwSparky::FLEXIPORT_SRXL:
213 switch (settings.MainPort) {
214 case HwSparky::MAINPORT_DSM:
216 case HwSparky::MAINPORT_SBUS:
218 case HwSparky::MAINPORT_SBUSNONINVERTED:
220 case HwSparky::MAINPORT_IBUS:
222 case HwSparky::MAINPORT_SRXL:
235 HwSparky *hwSparky = HwSparky::GetInstance(uavoManager);
240 HwSparky::DataFields settings = hwSparky->getData();
242 switch (settings.GyroRange) {
243 case HwSparky::GYRORANGE_250:
245 case HwSparky::GYRORANGE_500:
247 case HwSparky::GYRORANGE_1000:
249 case HwSparky::GYRORANGE_2000:
262 HwSparky *hwSparky = HwSparky::GetInstance(uavoManager);
265 return QStringList();
268 HwSparky::DataFields settings = hwSparky->getData();
269 if (settings.OutPort == HwSparky::OUTPORT_PWM82ADC
270 || settings.OutPort == HwSparky::OUTPORT_PWM72ADCPWM_IN)
274 else if (settings.OutPort == HwSparky::OUTPORT_PWM73ADC)
virtual QPixmap getBoardPicture()
getBoardPicture
qint32 boardType
The numerical board type ID.
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
InputType
Types of input to configure for the default port.
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
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...
virtual QString boardDescription()
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
Sparky()
Sparky::Sparky This is the Sparky board definition.
virtual bool setInputType(Core::IBoardType::InputType type)
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QString shortName()
virtual QString getHwUAVO()
virtual QStringList getAdcNames()