36 #include <QtCore/QStringList>
73 USBInfo(
int vendorID,
int productID,
int bcdDevice)
75 this->vendorID = vendorID;
76 this->productID = productID;
77 this->bcdDevice = bcdDevice;
84 virtual QString shortName() = 0;
89 virtual QString boardDescription() = 0;
107 virtual bool queryCapabilities(BoardCapabilities capability) = 0;
114 virtual QStringList queryChannelBanks();
131 virtual QPixmap getBoardPicture() = 0;
137 virtual QString getHwUAVO() = 0;
175 ANNUNCIATOR_HEARTBEAT = 1 << 0,
176 ANNUNCIATOR_ALARM = 1 << 1,
177 ANNUNCIATOR_BUZZER = 1 << 2,
178 ANNUNCIATOR_RGB = 1 << 3,
179 ANNUNCIATOR_DAC = 1 << 4,
227 enum LinkMode { LINK_TELEM, LINK_TELEM_PPM, LINK_PPM };
235 static QString getBoardNameFromID(
int id);
239 int getBankFromOutputChannel(
int channel);
272 BCD_DEVICE_BOOTLOADER = 1,
273 BCD_DEVICE_FIRMWARE = 2,
274 BCD_DEVICE_UPGRADER = 3,
292 #endif // IBOARDTYPE_H
virtual int onBoardRgbLeds() const
Number of RGB LEDs located on the board The first n LEDs in the chain will apply to on-board LEDs rat...
qint32 boardType
The numerical board type ID.
virtual QStringList getAdcNames()
virtual QWidget * getBoardConfiguration(QWidget *=nullptr, bool=true)
Return a custom configuration widget, if one is provided.
InputType
Types of input to configure for the default port.
QList< USBInfo > m_firmwareUSBInfo
virtual QVector< QVector< int > > getChannelBanks()
Get banks of output PWM channels banks on the board.
QVector< QVector< qint32 > > channelBanks
The channel groups that are driven by timers.
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
BoardCapabilities
Types of capabilities boards can support.
QList< USBInfo > m_bootloaderUSBInfo
QList< USBInfo > bootloaderUSBInfo()
getBootloaderUSBInfo
virtual InputType getInputType()
getInputType get the current input type
int getBoardType()
Get the board type number.
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual bool isInputConfigurationSupported(InputType type=INPUT_TYPE_ANY)
Determine if this board supports configuring the receiver.
virtual bool isUSBSupported()
virtual bool setInputType(InputType)
Configure the board to use an receiver input type on a port number.
virtual int minBootLoaderVersion()
Returns the minimum bootloader version required.
QList< USBInfo > firmwareUSBInfo()
getFirmwareUSBInfo
USBInfo(int vendorID, int productID, int bcdDevice)