36 #include "board_usb_ids.h"
38 #include "hwomnibusf3.h"
58 channelBanks[2] = QVector<int>() << 4;
68 return QString(
"OmnibusF3");
73 return QString(
"OmnibusF3 flight controller");
95 return QPixmap(
":/dronin/images/omnibusf3nano.png");
114 return "HwOmnibusF3";
126 HwOmnibusF3 *HwOmnibusF3 = HwOmnibusF3::GetInstance(uavoManager);
127 Q_ASSERT(HwOmnibusF3);
131 HwOmnibusF3::DataFields settings = HwOmnibusF3->getData();
135 settings.Uart3 = HwOmnibusF3::UART3_PPM;
138 settings.Uart3 = HwOmnibusF3::UART3_HOTTSUMD;
141 settings.Uart3 = HwOmnibusF3::UART3_HOTTSUMD;
144 settings.Uart3 = HwOmnibusF3::UART3_SBUS;
147 settings.Uart3 = HwOmnibusF3::UART3_SBUSNONINVERTED;
150 settings.Uart3 = HwOmnibusF3::UART3_IBUS;
153 settings.Uart3 = HwOmnibusF3::UART3_SRXL;
156 settings.Uart3 = HwOmnibusF3::UART3_DSM;
159 settings.Uart3 = HwOmnibusF3::UART3_TBSCROSSFIRE;
166 HwOmnibusF3->setData(settings);
179 HwOmnibusF3 *HwOmnibusF3 = HwOmnibusF3::GetInstance(uavoManager);
180 Q_ASSERT(HwOmnibusF3);
184 HwOmnibusF3::DataFields settings = HwOmnibusF3->getData();
186 switch (settings.Uart3) {
187 case HwOmnibusF3::UART3_PPM:
189 case HwOmnibusF3::UART3_DSM:
191 case HwOmnibusF3::UART3_HOTTSUMD:
193 case HwOmnibusF3::UART3_HOTTSUMH:
195 case HwOmnibusF3::UART3_SBUS:
197 case HwOmnibusF3::UART3_SBUSNONINVERTED:
199 case HwOmnibusF3::UART3_IBUS:
201 case HwOmnibusF3::UART3_SRXL:
203 case HwOmnibusF3::UART3_TBSCROSSFIRE:
209 switch (settings.Uart1) {
210 case HwOmnibusF3::UART1_DSM:
212 case HwOmnibusF3::UART1_SBUS:
214 case HwOmnibusF3::UART1_SBUSNONINVERTED:
216 case HwOmnibusF3::UART1_IBUS:
218 case HwOmnibusF3::UART1_SRXL:
220 case HwOmnibusF3::UART1_HOTTSUMD:
222 case HwOmnibusF3::UART1_HOTTSUMH:
224 case HwOmnibusF3::UART1_TBSCROSSFIRE:
230 switch (settings.Uart2) {
231 case HwOmnibusF3::UART2_DSM:
233 case HwOmnibusF3::UART2_SBUS:
235 case HwOmnibusF3::UART2_SBUSNONINVERTED:
237 case HwOmnibusF3::UART2_IBUS:
239 case HwOmnibusF3::UART2_SRXL:
241 case HwOmnibusF3::UART2_HOTTSUMD:
243 case HwOmnibusF3::UART2_HOTTSUMH:
245 case HwOmnibusF3::UART2_TBSCROSSFIRE:
258 HwOmnibusF3 *hwOmnibusF3 = HwOmnibusF3::GetInstance(uavoManager);
259 Q_ASSERT(hwOmnibusF3);
263 HwOmnibusF3::DataFields settings = hwOmnibusF3->getData();
265 switch (settings.GyroRange) {
266 case HwOmnibusF3::GYRORANGE_250:
268 case HwOmnibusF3::GYRORANGE_500:
270 case HwOmnibusF3::GYRORANGE_1000:
272 case HwOmnibusF3::GYRORANGE_2000:
283 return QStringList() <<
"V"
OmnibusF3()
OmnibusF3::OmnibusF3 This is the OmnibusF3 board definition.
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.
virtual bool setInputType(Core::IBoardType::InputType type)
virtual QPixmap getBoardPicture()
getBoardPicture
Core plugin system that manages the plugins, their life cycle and their registered objects...
BoardCapabilities
Types of capabilities boards can support.
virtual QString boardDescription()
void addFirmwareUSBInfo(USBInfo info)
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
void addBootloaderUSBInfo(USBInfo info)
virtual QStringList getAdcNames()
virtual Core::IBoardType::InputType getInputType()
OmnibusF3::getInputType fetch the currently selected input type.
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual QString getHwUAVO()
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QString shortName()