38 #include "board_usb_ids.h"
74 return QString(
"DTFc");
79 return QString(
"DTFc Flight Controller");
100 return QPixmap(
":/dtf/images/dtfc.png");
131 HwDtfc *hwDtfc = HwDtfc::GetInstance(uavoManager);
136 HwDtfc::DataFields settings = hwDtfc->getData();
140 settings.RcvrPort = HwDtfc::RCVRPORT_PPM;
143 settings.RcvrPort = HwDtfc::RCVRPORT_SBUS;
146 settings.RcvrPort = HwDtfc::RCVRPORT_SBUSNONINVERTED;
149 settings.RcvrPort = HwDtfc::RCVRPORT_DSM;
152 settings.RcvrPort = HwDtfc::RCVRPORT_HOTTSUMD;
155 settings.RcvrPort = HwDtfc::RCVRPORT_HOTTSUMH;
158 settings.RcvrPort = HwDtfc::RCVRPORT_IBUS;
161 settings.RcvrPort = HwDtfc::RCVRPORT_SRXL;
164 settings.RcvrPort = HwDtfc::RCVRPORT_TBSCROSSFIRE;
170 hwDtfc->setData(settings);
183 HwDtfc *hwDtfc = HwDtfc::GetInstance(uavoManager);
188 HwDtfc::DataFields settings = hwDtfc->getData();
190 switch (settings.RcvrPort) {
191 case HwDtfc::RCVRPORT_PPM:
193 case HwDtfc::RCVRPORT_SBUS:
195 case HwDtfc::RCVRPORT_SBUSNONINVERTED:
197 case HwDtfc::RCVRPORT_DSM:
199 case HwDtfc::RCVRPORT_HOTTSUMD:
201 case HwDtfc::RCVRPORT_HOTTSUMH:
203 case HwDtfc::RCVRPORT_IBUS:
205 case HwDtfc::RCVRPORT_SRXL:
207 case HwDtfc::RCVRPORT_TBSCROSSFIRE:
213 switch (settings.Uart1) {
214 case HwDtfc::UART1_SBUS:
216 case HwDtfc::UART1_SBUSNONINVERTED:
218 case HwDtfc::UART1_DSM:
220 case HwDtfc::UART1_HOTTSUMD:
222 case HwDtfc::UART1_HOTTSUMH:
224 case HwDtfc::UART1_IBUS:
226 case HwDtfc::UART1_SRXL:
228 case HwDtfc::UART1_TBSCROSSFIRE:
234 switch (settings.Uart2) {
235 case HwDtfc::UART2_SBUS:
237 case HwDtfc::UART2_SBUSNONINVERTED:
239 case HwDtfc::UART2_DSM:
241 case HwDtfc::UART2_HOTTSUMD:
243 case HwDtfc::UART2_HOTTSUMH:
245 case HwDtfc::UART2_IBUS:
247 case HwDtfc::UART2_SRXL:
249 case HwDtfc::UART2_TBSCROSSFIRE:
262 HwDtfc *hwDtfc = HwDtfc::GetInstance(uavoManager);
267 HwDtfc::DataFields settings = hwDtfc->getData();
269 switch (settings.GyroRange) {
270 case HwDtfc::GYRORANGE_250:
272 case HwDtfc::GYRORANGE_500:
274 case HwDtfc::GYRORANGE_1000:
276 case HwDtfc::GYRORANGE_2000:
287 return QStringList() <<
"Current"
qint32 boardType
The numerical board type ID.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
virtual QPixmap getBoardPicture()
getBoardPicture
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
InputType
Types of input to configure for the default port.
QVector< QVector< qint32 > > channelBanks
The channel groups that are driven by timers.
virtual QStringList getAdcNames()
Core plugin system that manages the plugins, their life cycle and their registered objects...
Dtfc()
Dtfc:Dtfc This is the DTFc board definition.
virtual QString getHwUAVO()
BoardCapabilities
Types of capabilities boards can support.
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual QString shortName()
virtual QString boardDescription()
virtual bool setInputType(Core::IBoardType::InputType type)
virtual QWidget * getBoardConfiguration(QWidget *parent, bool connected)
getBoardConfiguration
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.