38 #include "board_usb_ids.h"
40 #include "hwrevolution.h"
65 channelBanks[2] = QVector<int>() << 4;
66 channelBanks[3] = QVector<int>() << 5 << 6;
67 channelBanks[4] = QVector<int>() << 7 << 12;
68 channelBanks[5] = QVector<int>() << 8 << 9 << 10 << 11;
85 return QString(
"Revolution");
90 return QString(
"The OpenPilot project Revolution board");
113 return QPixmap(
":/openpilot/images/revolution.png");
118 return "HwRevolution";
127 HwRevolution *hwRevolution = HwRevolution::GetInstance(uavoManager);
128 Q_ASSERT(hwRevolution);
154 HwRevolution *hwRevolution = HwRevolution::GetInstance(uavoManager);
155 Q_ASSERT(hwRevolution);
159 HwRevolution::DataFields settings = hwRevolution->getData();
163 settings.RxPort = HwRevolution::RXPORT_PPM;
166 settings.RxPort = HwRevolution::RXPORT_PWM;
169 settings.MainPort = HwRevolution::MAINPORT_SBUS;
172 settings.MainPort = HwRevolution::MAINPORT_SBUSNONINVERTED;
175 settings.FlexiPort = HwRevolution::FLEXIPORT_DSM;
178 settings.FlexiPort = HwRevolution::FLEXIPORT_HOTTSUMD;
181 settings.FlexiPort = HwRevolution::FLEXIPORT_HOTTSUMH;
184 settings.FlexiPort = HwRevolution::FLEXIPORT_IBUS;
187 settings.FlexiPort = HwRevolution::FLEXIPORT_SRXL;
190 settings.FlexiPort = HwRevolution::FLEXIPORT_TBSCROSSFIRE;
197 hwRevolution->setData(settings);
210 HwRevolution *hwRevolution = HwRevolution::GetInstance(uavoManager);
211 Q_ASSERT(hwRevolution);
215 HwRevolution::DataFields settings = hwRevolution->getData();
217 switch (settings.MainPort) {
218 case HwRevolution::MAINPORT_DSM:
220 case HwRevolution::MAINPORT_HOTTSUMD:
222 case HwRevolution::MAINPORT_HOTTSUMH:
224 case HwRevolution::MAINPORT_SBUS:
226 case HwRevolution::MAINPORT_SBUSNONINVERTED:
228 case HwRevolution::MAINPORT_IBUS:
230 case HwRevolution::MAINPORT_SRXL:
232 case HwRevolution::MAINPORT_TBSCROSSFIRE:
238 switch (settings.FlexiPort) {
239 case HwRevolution::FLEXIPORT_DSM:
241 case HwRevolution::FLEXIPORT_HOTTSUMD:
243 case HwRevolution::FLEXIPORT_HOTTSUMH:
245 case HwRevolution::FLEXIPORT_SBUSNONINVERTED:
247 case HwRevolution::FLEXIPORT_IBUS:
249 case HwRevolution::FLEXIPORT_SRXL:
251 case HwRevolution::FLEXIPORT_TBSCROSSFIRE:
257 switch (settings.RxPort) {
258 case HwRevolution::RXPORT_PPM:
259 case HwRevolution::RXPORT_PPMPWM:
260 case HwRevolution::RXPORT_PPMOUTPUTS:
261 case HwRevolution::RXPORT_PPMUART:
263 case HwRevolution::RXPORT_PWM:
265 case HwRevolution::RXPORT_UART:
266 switch (settings.RxPortUsart) {
267 case HwRevolution::RXPORTUSART_DSM:
269 case HwRevolution::RXPORTUSART_HOTTSUMD:
271 case HwRevolution::RXPORTUSART_HOTTSUMH:
273 case HwRevolution::RXPORTUSART_SBUSNONINVERTED:
275 case HwRevolution::RXPORTUSART_IBUS:
277 case HwRevolution::RXPORTUSART_SRXL:
279 case HwRevolution::RXPORTUSART_TBSCROSSFIRE:
296 HwRevolution *hwRevolution = HwRevolution::GetInstance(uavoManager);
297 Q_ASSERT(hwRevolution);
301 HwRevolution::DataFields settings = hwRevolution->getData();
303 switch (settings.GyroRange) {
304 case HwRevolution::GYRORANGE_250:
306 case HwRevolution::GYRORANGE_500:
308 case HwRevolution::GYRORANGE_1000:
310 case HwRevolution::GYRORANGE_2000:
321 return QStringList() <<
"Pwr Sen Pin 3"
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 queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Core plugin system that manages the plugins, their life cycle and their registered objects...
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
BoardCapabilities
Types of capabilities boards can support.
virtual QString getHwUAVO()
virtual int minBootLoaderVersion()
Returns the minimum bootloader version required.
virtual Core::IBoardType::InputType getInputType()
getInputType get the current input 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 QStringList getAdcNames()
virtual QPixmap getBoardPicture()
getBoardPicture
HwRevolution * getSettings()
Get the settings object.
virtual bool setInputType(Core::IBoardType::InputType type)
Revolution()
Revolution::Revolution This is the Revolution board definition.
virtual QString boardDescription()
virtual QString shortName()
int getBoardRevision()
Get the connected board hardware revision.