33 #include "hwseppuku.h"
35 #include "board_usb_ids.h"
56 channelBanks << (QVector<int>() << 1 << 2);
57 channelBanks << (QVector<int>() << 3);
58 channelBanks << (QVector<int>() << 4 << 5 << 6);
59 channelBanks << (QVector<int>() << 7 << 8);
68 return QString(
"Seppuku");
73 return QString(tr(
"Seppuku running dRonin firmware"));
112 rcvrPort->
setValue(HwSeppuku::RCVRPORT_DISABLED);
115 rcvrPort->
setValue(HwSeppuku::RCVRPORT_DSM);
118 rcvrPort->
setValue(HwSeppuku::RCVRPORT_SBUS);
121 rcvrPort->
setValue(HwSeppuku::RCVRPORT_SBUSNONINVERTED);
124 rcvrPort->
setValue(HwSeppuku::RCVRPORT_HOTTSUMD);
127 rcvrPort->
setValue(HwSeppuku::RCVRPORT_HOTTSUMH);
130 rcvrPort->
setValue(HwSeppuku::RCVRPORT_IBUS);
133 rcvrPort->
setValue(HwSeppuku::RCVRPORT_PPM);
136 rcvrPort->
setValue(HwSeppuku::RCVRPORT_SRXL);
139 rcvrPort->
setValue(HwSeppuku::RCVRPORT_TBSCROSSFIRE);
154 switch (static_cast<HwSeppuku::RcvrPortOptions>(rcvrPort->
getValue().toInt())) {
155 case HwSeppuku::RCVRPORT_DISABLED:
157 case HwSeppuku::RCVRPORT_DSM:
159 case HwSeppuku::RCVRPORT_SRXL:
161 case HwSeppuku::RCVRPORT_HOTTSUMD:
163 case HwSeppuku::RCVRPORT_HOTTSUMH:
165 case HwSeppuku::RCVRPORT_PPM:
167 case HwSeppuku::RCVRPORT_SBUS:
169 case HwSeppuku::RCVRPORT_SBUSNONINVERTED:
171 case HwSeppuku::RCVRPORT_IBUS:
173 case HwSeppuku::RCVRPORT_TBSCROSSFIRE:
189 return QStringList() <<
"V"
197 return QPixmap(
":/dronin/images/seppuku.png");
207 return ":/dronin/images/seppuku-connection.svg";
Seppuku()
Seppuku:Seppuku This is the Seppuku board definition.
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 hasAnnunciator(AnnunciatorType annunc) override
Check if the board has the given type of annunciator.
Core plugin system that manages the plugins, their life cycle and their registered objects...
QVariant getValue(int index=0) const
BoardCapabilities
Types of capabilities boards can support.
virtual bool setInputType(Core::IBoardType::InputType type) override
Configure the board to use an receiver input type on a port number.
virtual QString getConnectionDiagram() override
getConnectionDiagram get the connection diagram for this board
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
virtual QPixmap getBoardPicture() override
getBoardPicture
void setValue(const QVariant &data, int index=0)
virtual bool queryCapabilities(BoardCapabilities capability) override
Query capabilities of the board.
virtual QString boardDescription() override
virtual QStringList getAdcNames() override
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type) override
Determine if this board supports configuring the receiver.
virtual int queryMaxGyroRate() override
Query the board for the currently set max rate of the gyro.
virtual QString shortName() override
virtual Core::IBoardType::InputType getInputType() override
getInputType get the current input type
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected) override
Return a custom configuration widget, if one is provided.
UAVObjectField * getField(const QString &objName, const QString &fieldName, quint32 instId=0)
getField Get a UAV Object field Success is asserted so there is no need to do this again in the calle...
virtual QString getHwUAVO() override