32 #include "board_usb_ids.h"
35 #include "hwbrainre1.h"
63 return QString(
"BrainRE1");
68 return QString(
"BrainFPV RE1 - FPV Racing Flight Controller");
87 return QPixmap(
":/brainfpv/images/brainre1.png");
119 HwBrainRE1 *hwBrainRE1 = HwBrainRE1::GetInstance(uavoManager);
120 Q_ASSERT(hwBrainRE1);
124 HwBrainRE1::DataFields settings = hwBrainRE1->getData();
128 settings.RxPort = HwBrainRE1::RXPORT_PPM;
131 settings.RxPort = HwBrainRE1::RXPORT_SBUS;
134 settings.RxPort = HwBrainRE1::RXPORT_SBUSNONINVERTED;
137 settings.RxPort = HwBrainRE1::RXPORT_DSM;
140 settings.RxPort = HwBrainRE1::RXPORT_HOTTSUMD;
143 settings.RxPort = HwBrainRE1::RXPORT_HOTTSUMH;
146 settings.RxPort = HwBrainRE1::RXPORT_IBUS;
149 settings.RxPort = HwBrainRE1::RXPORT_SRXL;
152 settings.RxPort = HwBrainRE1::RXPORT_TBSCROSSFIRE;
159 hwBrainRE1->setData(settings);
173 HwBrainRE1 *hwBrainRE1 = HwBrainRE1::GetInstance(uavoManager);
174 Q_ASSERT(hwBrainRE1);
178 HwBrainRE1::DataFields settings = hwBrainRE1->getData();
180 switch (settings.RxPort) {
181 case HwBrainRE1::RXPORT_PPM:
183 case HwBrainRE1::RXPORT_SBUS:
185 case HwBrainRE1::RXPORT_SBUSNONINVERTED:
187 case HwBrainRE1::RXPORT_DSM:
189 case HwBrainRE1::RXPORT_HOTTSUMD:
191 case HwBrainRE1::RXPORT_HOTTSUMH:
193 case HwBrainRE1::RXPORT_IBUS:
195 case HwBrainRE1::RXPORT_SRXL:
197 case HwBrainRE1::RXPORT_TBSCROSSFIRE:
203 switch (settings.SerialPort) {
204 case HwBrainRE1::SERIALPORT_TBSCROSSFIRE:
210 switch (settings.MultiPortSerial) {
211 case HwBrainRE1::MULTIPORTSERIAL_TBSCROSSFIRE:
217 if (settings.MultiPortMode == HwBrainRE1::MULTIPORTMODE_DUALSERIAL4PWM)
219 switch (settings.MultiPortSerial2) {
220 case HwBrainRE1::MULTIPORTSERIAL2_TBSCROSSFIRE:
237 return QStringList() <<
"I"
250 QVector<QVector<int>> banks;
254 HwBrainRE1 *hwBrainRE1 = HwBrainRE1::GetInstance(uavoManager);
255 if (!hwBrainRE1 || (hwBrainRE1->getMultiPortMode() == 0)) {
257 banks[0] = QVector<int>() << 1 << 2 << 3 << 4;
258 banks[1] = QVector<int>() << 5;
259 banks[2] = QVector<int>() << 6;
260 banks[3] = QVector<int>() << 7 << 8;
263 banks[0] = QVector<int>() << 1 << 2;
264 banks[1] = QVector<int>() << 3;
265 banks[2] = QVector<int>() << 4;
virtual QString getHwUAVO()
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
qint32 boardType
The numerical board type ID.
InputType
Types of input to configure for the default port.
Core plugin system that manages the plugins, their life cycle and their registered objects...
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
Return a custom configuration widget, if one is provided.
virtual QPixmap getBoardPicture()
getBoardPicture
BoardCapabilities
Types of capabilities boards can support.
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual QVector< QVector< int > > getChannelBanks()
Get banks of output PWM channels banks on the board.
virtual QStringList getAdcNames()
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
virtual QString boardDescription()
virtual QString shortName()
virtual bool setInputType(Core::IBoardType::InputType type)
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
BrainRE1()
Brain::Brain This is the Brain board definition.
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.