35 #include "board_usb_ids.h"
56 channelBanks << (QVector<int>() << 1 << 2);
57 channelBanks << (QVector<int>() << 3 << 4);
58 channelBanks << (QVector<int>() << 5 << 6 << 7 << 8);
67 return QString(
"Sprf3e");
72 return QString(tr(
"SP Racing F3 E / FrSky XSRF3E running dRonin firmware"));
106 HwSprf3e *hwSprf3e = HwSprf3e::GetInstance(uavoManager);
111 HwSprf3e::DataFields settings = hwSprf3e->getData();
115 settings.Uart2 = HwSprf3e::UART2_DSM;
118 settings.Uart2 = HwSprf3e::UART2_SRXL;
121 settings.Uart2 = HwSprf3e::UART2_HOTTSUMD;
124 settings.Uart2 = HwSprf3e::UART2_HOTTSUMH;
127 settings.Uart2 = HwSprf3e::UART2_PPM;
130 settings.Uart2 = HwSprf3e::UART2_SBUS;
133 settings.Uart2 = HwSprf3e::UART2_SBUSNONINVERTED;
136 settings.Uart2 = HwSprf3e::UART2_IBUS;
139 settings.Uart2 = HwSprf3e::UART2_TBSCROSSFIRE;
146 hwSprf3e->setData(settings);
155 HwSprf3e *hwSprf3e = HwSprf3e::GetInstance(uavoManager);
160 HwSprf3e::DataFields settings = hwSprf3e->getData();
162 switch(settings.Uart1) {
163 case HwSprf3e::UART1_DSM:
165 case HwSprf3e::UART1_SRXL:
167 case HwSprf3e::UART1_HOTTSUMD:
169 case HwSprf3e::UART1_HOTTSUMH:
171 case HwSprf3e::UART1_SBUS:
173 case HwSprf3e::UART1_SBUSNONINVERTED:
175 case HwSprf3e::UART1_IBUS:
177 case HwSprf3e::UART1_TBSCROSSFIRE:
183 switch(settings.Uart2) {
184 case HwSprf3e::UART2_DSM:
186 case HwSprf3e::UART2_SRXL:
188 case HwSprf3e::UART2_HOTTSUMD:
190 case HwSprf3e::UART2_HOTTSUMH:
192 case HwSprf3e::UART2_SBUS:
194 case HwSprf3e::UART2_SBUSNONINVERTED:
196 case HwSprf3e::UART2_IBUS:
198 case HwSprf3e::UART2_PPM:
200 case HwSprf3e::UART2_TBSCROSSFIRE:
206 switch(settings.Uart3) {
207 case HwSprf3e::UART3_DSM:
209 case HwSprf3e::UART3_SRXL:
211 case HwSprf3e::UART3_HOTTSUMD:
213 case HwSprf3e::UART3_HOTTSUMH:
215 case HwSprf3e::UART3_SBUS:
217 case HwSprf3e::UART3_SBUSNONINVERTED:
219 case HwSprf3e::UART3_IBUS:
221 case HwSprf3e::UART3_TBSCROSSFIRE:
234 HwSprf3e *hwSprf3e = HwSprf3e::GetInstance(uavoManager);
239 HwSprf3e::DataFields settings = hwSprf3e->getData();
241 switch(settings.GyroRange) {
242 case HwSprf3e::GYRORANGE_250:
244 case HwSprf3e::GYRORANGE_500:
246 case HwSprf3e::GYRORANGE_1000:
248 case HwSprf3e::GYRORANGE_2000:
259 return QStringList() <<
"V" <<
"A" <<
"RSSI";
264 return QPixmap(
":/dronin/images/sprf3e.png");
274 return ":/dronin/images/sprf3e-connection.svg";
qint32 boardType
The numerical board type ID.
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QStringList getAdcNames()
InputType
Types of input to configure for the default port.
QVector< QVector< qint32 > > channelBanks
The channel groups that are driven by timers.
Core plugin system that manages the plugins, their life cycle and their registered objects...
BoardCapabilities
Types of capabilities boards can support.
virtual QString getConnectionDiagram()
getConnectionDiagram get the connection diagram for this board
virtual bool queryCapabilities(BoardCapabilities capability)
Query capabilities of the board.
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
getBoardConfiguration
virtual QString boardDescription()
void addFirmwareUSBInfo(USBInfo info)
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
void addBootloaderUSBInfo(USBInfo info)
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input type
virtual bool setInputType(Core::IBoardType::InputType type)
virtual QString getHwUAVO()
virtual QPixmap getBoardPicture()
getBoardPicture
Sprf3e()
Sprf3e:Sprf3e This is the Sprf3e board definition.
virtual QString shortName()