36 #include "board_usb_ids.h"
38 #include "hwpikoblx.h"
58 channelBanks[2] = QVector<int>() << 7;
59 channelBanks[3] = QVector<int>() << 8;
68 return QString(
"pikoblx");
73 return QString(
"pikoblx flight controller");
95 return QIcon(
":/dronin/images/pikoblx.svg").pixmap(QSize(735, 718));
126 HwPikoBLX *HwPikoBLX = HwPikoBLX::GetInstance(uavoManager);
131 HwPikoBLX::DataFields settings = HwPikoBLX->getData();
135 settings.RxPort = HwPikoBLX::RXPORT_PPM;
138 settings.RxPort = HwPikoBLX::RXPORT_HOTTSUMD;
141 settings.RxPort = HwPikoBLX::RXPORT_HOTTSUMD;
144 settings.RxPort = HwPikoBLX::RXPORT_SBUS;
147 settings.RxPort = HwPikoBLX::RXPORT_SBUSNONINVERTED;
150 settings.RxPort = HwPikoBLX::RXPORT_IBUS;
153 settings.RxPort = HwPikoBLX::RXPORT_SRXL;
156 settings.RxPort = HwPikoBLX::RXPORT_DSM;
159 settings.RxPort = HwPikoBLX::RXPORT_TBSCROSSFIRE;
166 HwPikoBLX->setData(settings);
179 HwPikoBLX *HwPikoBLX = HwPikoBLX::GetInstance(uavoManager);
184 HwPikoBLX::DataFields settings = HwPikoBLX->getData();
186 switch (settings.RxPort) {
187 case HwPikoBLX::RXPORT_PPM:
189 case HwPikoBLX::RXPORT_DSM:
191 case HwPikoBLX::RXPORT_HOTTSUMD:
193 case HwPikoBLX::RXPORT_HOTTSUMH:
195 case HwPikoBLX::RXPORT_SBUS:
197 case HwPikoBLX::RXPORT_SBUSNONINVERTED:
199 case HwPikoBLX::RXPORT_IBUS:
201 case HwPikoBLX::RXPORT_SRXL:
203 case HwPikoBLX::RXPORT_TBSCROSSFIRE:
209 switch (settings.Uart1) {
210 case HwPikoBLX::UART1_DSM:
212 case HwPikoBLX::UART1_SBUS:
214 case HwPikoBLX::UART1_SBUSNONINVERTED:
216 case HwPikoBLX::UART1_IBUS:
218 case HwPikoBLX::UART1_SRXL:
220 case HwPikoBLX::UART1_HOTTSUMD:
222 case HwPikoBLX::UART1_HOTTSUMH:
224 case HwPikoBLX::UART1_TBSCROSSFIRE:
230 switch (settings.Uart2) {
231 case HwPikoBLX::UART2_DSM:
233 case HwPikoBLX::UART2_SBUS:
235 case HwPikoBLX::UART2_SBUSNONINVERTED:
237 case HwPikoBLX::UART2_IBUS:
239 case HwPikoBLX::UART2_SRXL:
241 case HwPikoBLX::UART2_HOTTSUMD:
243 case HwPikoBLX::UART2_HOTTSUMH:
245 case HwPikoBLX::UART2_TBSCROSSFIRE:
258 HwPikoBLX *hwPikoBLX = HwPikoBLX::GetInstance(uavoManager);
263 HwPikoBLX::DataFields settings = hwPikoBLX->getData();
265 switch (settings.GyroRange) {
266 case HwPikoBLX::GYRORANGE_250:
268 case HwPikoBLX::GYRORANGE_500:
270 case HwPikoBLX::GYRORANGE_1000:
272 case HwPikoBLX::GYRORANGE_2000:
283 return QStringList() <<
"I"
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
virtual QStringList getAdcNames()
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 boardDescription()
virtual bool setInputType(Core::IBoardType::InputType type)
void addFirmwareUSBInfo(USBInfo info)
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
void addBootloaderUSBInfo(USBInfo info)
virtual Core::IBoardType::InputType getInputType()
PikoBLX::getInputType fetch the currently selected input type.
virtual QString getHwUAVO()
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QString shortName()
PikoBLX()
PikoBLX::PikoBLX This is the PikoBLX board definition.
virtual QPixmap getBoardPicture()
getBoardPicture