33 #include "board_usb_ids.h"
60 channelBanks[2] = QVector<int>() << 5 << 6;
61 channelBanks[3] = QVector<int>() << 7 << 8 << 9 << 10;
70 return QString(
"AQ32");
75 return QString(
"The AQ32 board");
97 return QPixmap(
":/aq32/images/aq32.png");
128 HwAQ32 *hwAQ32 = HwAQ32::GetInstance(uavoManager);
133 HwAQ32::DataFields settings = hwAQ32->getData();
137 settings.RcvrPort = HwAQ32::RCVRPORT_PPM;
140 settings.Uart3 = HwAQ32::UART3_HOTTSUMD;
143 settings.Uart3 = HwAQ32::UART3_HOTTSUMH;
146 settings.Uart3 = HwAQ32::UART3_SBUS;
149 settings.Uart3 = HwAQ32::UART3_SBUSNONINVERTED;
152 settings.Uart3 = HwAQ32::UART3_IBUS;
155 settings.Uart4 = HwAQ32::UART4_DSM;
158 settings.Uart3 = HwAQ32::UART3_SRXL;
161 settings.Uart3 = HwAQ32::UART3_TBSCROSSFIRE;
168 hwAQ32->setData(settings);
181 HwAQ32 *hwAQ32 = HwAQ32::GetInstance(uavoManager);
186 HwAQ32::DataFields settings = hwAQ32->getData();
188 switch (settings.RcvrPort) {
189 case HwAQ32::RCVRPORT_PPM:
195 switch (settings.Uart3) {
196 case HwAQ32::UART3_HOTTSUMD:
198 case HwAQ32::UART3_HOTTSUMH:
200 case HwAQ32::UART3_SBUS:
202 case HwAQ32::UART3_SBUSNONINVERTED:
204 case HwAQ32::UART3_IBUS:
206 case HwAQ32::UART3_SRXL:
208 case HwAQ32::UART3_TBSCROSSFIRE:
214 switch (settings.Uart4) {
215 case HwAQ32::UART4_DSM:
217 case HwAQ32::UART4_HOTTSUMD:
219 case HwAQ32::UART4_HOTTSUMH:
221 case HwAQ32::UART4_SBUSNONINVERTED:
223 case HwAQ32::UART4_IBUS:
225 case HwAQ32::UART4_SRXL:
227 case HwAQ32::UART4_TBSCROSSFIRE:
233 switch (settings.Uart6) {
234 case HwAQ32::UART6_DSM:
236 case HwAQ32::UART6_HOTTSUMD:
238 case HwAQ32::UART6_HOTTSUMH:
240 case HwAQ32::UART6_SBUSNONINVERTED:
242 case HwAQ32::UART6_IBUS:
244 case HwAQ32::UART6_SRXL:
246 case HwAQ32::UART6_TBSCROSSFIRE:
259 HwAQ32 *hwAQ32 = HwAQ32::GetInstance(uavoManager);
264 HwAQ32::DataFields settings = hwAQ32->getData();
266 switch (settings.GyroRange) {
267 case HwAQ32::GYRORANGE_250:
269 case HwAQ32::GYRORANGE_500:
271 case HwAQ32::GYRORANGE_1000:
273 case HwAQ32::GYRORANGE_2000:
286 HwAQ32 *hwAQ32 = HwAQ32::GetInstance(uavoManager);
289 return QStringList();
291 HwAQ32::DataFields settings = hwAQ32->getData();
292 if (settings.ADCInputs == HwAQ32::ADCINPUTS_ENABLED) {
293 return QStringList() <<
"AI2"
300 return QStringList() <<
"Disabled"
virtual QString shortName()
virtual bool setInputType(Core::IBoardType::InputType type)
qint32 boardType
The numerical board type ID.
InputType
Types of input to configure for the default port.
virtual QPixmap getBoardPicture()
getBoardPicture
QVector< QVector< qint32 > > channelBanks
The channel groups that are driven by timers.
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
Core plugin system that manages the plugins, their life cycle and their registered objects...
BoardCapabilities
Types of capabilities boards can support.
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual QString boardDescription()
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
virtual QString getHwUAVO()
AQ32()
AQ32::AQ32 This is the AQ32 board definition.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QStringList getAdcNames()