34 #include "board_usb_ids.h"
36 #include "hwmatek405.h"
56 channelBanks[2] = QVector<int>() << 5;
57 channelBanks[3] = QVector<int>() << 6;
58 channelBanks[4] = QVector<int>() << 7;
67 return QString(
"MATEK405");
72 return QString(
"The MATEK405 board");
94 return QPixmap(
":/matek/images/matek405.png");
125 HwMatek405 *hwMatek405 = HwMatek405::GetInstance(uavoManager);
126 Q_ASSERT(hwMatek405);
130 HwMatek405::DataFields settings = hwMatek405->getData();
134 settings.PPM_Receiver = HwMatek405::PPM_RECEIVER_ENABLED;
137 settings.Uart2 = HwMatek405::UART2_HOTTSUMD;
140 settings.Uart2 = HwMatek405::UART2_HOTTSUMH;
143 settings.Uart2 = HwMatek405::UART2_SBUS;
146 settings.Uart2 = HwMatek405::UART2_SBUSNONINVERTED;
149 settings.Uart2 = HwMatek405::UART2_IBUS;
152 settings.Uart2 = HwMatek405::UART2_DSM;
155 settings.Uart2 = HwMatek405::UART2_SRXL;
158 settings.Uart2 = HwMatek405::UART2_TBSCROSSFIRE;
165 hwMatek405->setData(settings);
178 HwMatek405 *hwMatek405 = HwMatek405::GetInstance(uavoManager);
179 Q_ASSERT(hwMatek405);
183 HwMatek405::DataFields settings = hwMatek405->getData();
185 switch (settings.PPM_Receiver) {
186 case HwMatek405::PPM_RECEIVER_ENABLED:
192 switch (settings.Uart2) {
193 case HwMatek405::UART2_HOTTSUMD:
195 case HwMatek405::UART2_HOTTSUMH:
197 case HwMatek405::UART2_SBUS:
199 case HwMatek405::UART2_SBUSNONINVERTED:
201 case HwMatek405::UART2_IBUS:
203 case HwMatek405::UART2_SRXL:
205 case HwMatek405::UART2_TBSCROSSFIRE:
221 return QStringList() <<
"Current" <<
"Voltage" <<
"RSSI";
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 hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
virtual QString boardDescription()
Core plugin system that manages the plugins, their life cycle and their registered objects...
BoardCapabilities
Types of capabilities boards can support.
void addFirmwareUSBInfo(USBInfo info)
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
void addBootloaderUSBInfo(USBInfo info)
virtual QString shortName()
virtual QPixmap getBoardPicture()
getBoardPicture
virtual QStringList getAdcNames()
MATEK405()
MATEK405::MATEK405 This is the MATEK405 board definition.
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QString getHwUAVO()
virtual bool setInputType(Core::IBoardType::InputType type)
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.