33 #include "board_usb_ids.h"
61 channelBanks[2] = QVector<int>() << 9 << 10;
75 return QString(
"Brain");
80 return QString(
"Brain - FPV Flight Controller");
103 return QPixmap(
":/brainfpv/images/brain.png");
133 HwBrain *hwBrain = HwBrain::GetInstance(uavoManager);
138 HwBrain::DataFields settings = hwBrain->getData();
142 settings.RxPort = HwBrain::RXPORT_PPM;
145 settings.RxPort = HwBrain::RXPORT_PWM;
148 settings.MainPort = HwBrain::MAINPORT_SBUS;
151 settings.MainPort = HwBrain::MAINPORT_SBUSNONINVERTED;
154 settings.MainPort = HwBrain::MAINPORT_DSM;
157 settings.MainPort = HwBrain::MAINPORT_HOTTSUMD;
160 settings.MainPort = HwBrain::MAINPORT_HOTTSUMH;
163 settings.MainPort = HwBrain::MAINPORT_IBUS;
166 settings.MainPort = HwBrain::MAINPORT_SRXL;
169 settings.MainPort = HwBrain::MAINPORT_TBSCROSSFIRE;
176 hwBrain->setData(settings);
189 HwBrain *hwBrain = HwBrain::GetInstance(uavoManager);
194 HwBrain::DataFields settings = hwBrain->getData();
196 switch (settings.MainPort) {
197 case HwBrain::MAINPORT_SBUS:
199 case HwBrain::MAINPORT_SBUSNONINVERTED:
201 case HwBrain::MAINPORT_DSM:
203 case HwBrain::MAINPORT_HOTTSUMD:
205 case HwBrain::MAINPORT_HOTTSUMH:
207 case HwBrain::MAINPORT_IBUS:
209 case HwBrain::MAINPORT_SRXL:
211 case HwBrain::MAINPORT_TBSCROSSFIRE:
217 switch (settings.FlxPort) {
218 case HwBrain::FLXPORT_DSM:
220 case HwBrain::FLXPORT_HOTTSUMD:
222 case HwBrain::FLXPORT_HOTTSUMH:
224 case HwBrain::FLXPORT_IBUS:
226 case HwBrain::FLXPORT_SRXL:
228 case HwBrain::FLXPORT_TBSCROSSFIRE:
234 switch (settings.RxPort) {
235 case HwBrain::RXPORT_PPM:
236 case HwBrain::RXPORT_PPMPWM:
237 case HwBrain::RXPORT_PPMOUTPUTS:
238 case HwBrain::RXPORT_PPMUART:
239 case HwBrain::RXPORT_PPMUARTOUTPUTS:
241 case HwBrain::RXPORT_PWM:
243 case HwBrain::RXPORT_UART:
244 case HwBrain::RXPORT_UARTOUTPUTS:
245 switch (settings.RxPortUsart) {
246 case HwBrain::RXPORTUSART_DSM:
248 case HwBrain::RXPORTUSART_HOTTSUMD:
250 case HwBrain::RXPORTUSART_HOTTSUMH:
252 case HwBrain::RXPORTUSART_SBUSNONINVERTED:
254 case HwBrain::RXPORTUSART_IBUS:
256 case HwBrain::RXPORTUSART_SRXL:
258 case HwBrain::RXPORTUSART_TBSCROSSFIRE:
275 HwBrain *hwBrain = HwBrain::GetInstance(uavoManager);
280 HwBrain::DataFields settings = hwBrain->getData();
282 switch (settings.GyroFullScale) {
283 case HwBrain::GYROFULLSCALE_250:
285 case HwBrain::GYROFULLSCALE_500:
287 case HwBrain::GYROFULLSCALE_1000:
289 case HwBrain::GYROFULLSCALE_2000:
306 return QStringList() <<
"Sen ADC0"
qint32 boardType
The numerical board type ID.
virtual QPixmap getBoardPicture()
getBoardPicture
virtual QString shortName()
InputType
Types of input to configure for the default port.
QVector< QVector< qint32 > > channelBanks
The channel groups that are driven by timers.
virtual QString boardDescription()
Core plugin system that manages the plugins, their life cycle and their registered objects...
BoardCapabilities
Types of capabilities boards can support.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual bool setInputType(Core::IBoardType::InputType type)
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 queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
Brain()
Brain::Brain This is the Brain board definition.
virtual QStringList getAdcNames()
virtual QString getHwUAVO()
virtual int minBootLoaderVersion()
Returns the minimum bootloader version required.
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
Return a custom configuration widget, if one is provided.
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.