34 #include "board_usb_ids.h"
36 #include "hwquanton.h"
61 channelBanks[2] = QVector<int>() << 7;
62 channelBanks[3] = QVector<int>() << 8;
71 return QString(
"quanton");
76 return QString(
"quanton flight control rev. 1 by Quantec Networks GmbH");
103 return QPixmap(
":/quantec/images/quanton.png");
133 HwQuanton *HwQuanton = HwQuanton::GetInstance(uavoManager);
138 HwQuanton::DataFields settings = HwQuanton->getData();
142 settings.InPort = HwQuanton::INPORT_PPM;
145 settings.InPort = HwQuanton::INPORT_PWM;
148 settings.Uart1 = HwQuanton::UART1_HOTTSUMD;
151 settings.Uart1 = HwQuanton::UART1_HOTTSUMD;
154 settings.Uart2 = HwQuanton::UART2_SBUS;
157 settings.Uart1 = HwQuanton::UART1_SBUSNONINVERTED;
160 settings.Uart1 = HwQuanton::UART1_IBUS;
163 settings.Uart1 = HwQuanton::UART1_SRXL;
166 settings.Uart1 = HwQuanton::UART1_TBSCROSSFIRE;
169 settings.Uart1 = HwQuanton::UART1_DSM;
176 HwQuanton->setData(settings);
189 HwQuanton *HwQuanton = HwQuanton::GetInstance(uavoManager);
194 HwQuanton::DataFields settings = HwQuanton->getData();
196 switch (settings.InPort) {
197 case HwQuanton::INPORT_PPM:
198 case HwQuanton::INPORT_PPMADC:
199 case HwQuanton::INPORT_PPMOUTPUTS:
200 case HwQuanton::INPORT_PPMOUTPUTSADC:
203 case HwQuanton::INPORT_PPMSERIAL:
204 case HwQuanton::INPORT_PPMSERIALADC:
205 case HwQuanton::INPORT_PPMPWM:
206 case HwQuanton::INPORT_PPMPWMADC:
208 case HwQuanton::INPORT_PWM:
209 case HwQuanton::INPORT_PWMADC:
211 case HwQuanton::INPORT_SERIAL:
212 switch (settings.InPortSerial) {
213 case HwQuanton::INPORTSERIAL_DSM:
215 case HwQuanton::INPORTSERIAL_HOTTSUMD:
217 case HwQuanton::INPORTSERIAL_HOTTSUMH:
219 case HwQuanton::INPORTSERIAL_SBUSNONINVERTED:
221 case HwQuanton::INPORTSERIAL_IBUS:
223 case HwQuanton::INPORTSERIAL_SRXL:
225 case HwQuanton::INPORTSERIAL_TBSCROSSFIRE:
235 switch (settings.Uart1) {
236 case HwQuanton::UART1_DSM:
238 case HwQuanton::UART1_HOTTSUMD:
240 case HwQuanton::UART1_HOTTSUMH:
242 case HwQuanton::UART1_SBUSNONINVERTED:
244 case HwQuanton::UART1_IBUS:
246 case HwQuanton::UART1_SRXL:
248 case HwQuanton::UART1_TBSCROSSFIRE:
254 switch (settings.Uart2) {
255 case HwQuanton::UART2_DSM:
257 case HwQuanton::UART2_HOTTSUMD:
259 case HwQuanton::UART2_HOTTSUMH:
261 case HwQuanton::UART2_SBUS:
263 case HwQuanton::UART2_SBUSNONINVERTED:
265 case HwQuanton::UART2_IBUS:
267 case HwQuanton::UART2_SRXL:
269 case HwQuanton::UART2_TBSCROSSFIRE:
275 switch (settings.Uart3) {
276 case HwQuanton::UART3_DSM:
278 case HwQuanton::UART3_HOTTSUMD:
280 case HwQuanton::UART3_HOTTSUMH:
282 case HwQuanton::UART3_SBUSNONINVERTED:
284 case HwQuanton::UART3_IBUS:
286 case HwQuanton::UART3_SRXL:
288 case HwQuanton::UART3_TBSCROSSFIRE:
294 switch (settings.Uart4) {
295 case HwQuanton::UART4_DSM:
297 case HwQuanton::UART4_HOTTSUMD:
299 case HwQuanton::UART4_HOTTSUMH:
301 case HwQuanton::UART4_SBUSNONINVERTED:
303 case HwQuanton::UART4_IBUS:
305 case HwQuanton::UART4_SRXL:
307 case HwQuanton::UART4_TBSCROSSFIRE:
313 switch (settings.Uart5) {
314 case HwQuanton::UART5_DSM:
316 case HwQuanton::UART5_HOTTSUMD:
318 case HwQuanton::UART5_HOTTSUMH:
320 case HwQuanton::UART5_SBUSNONINVERTED:
322 case HwQuanton::UART5_IBUS:
324 case HwQuanton::UART5_SRXL:
326 case HwQuanton::UART5_TBSCROSSFIRE:
339 HwQuanton *hwQuanton = HwQuanton::GetInstance(uavoManager);
344 HwQuanton::DataFields settings = hwQuanton->getData();
346 switch (settings.GyroRange) {
347 case HwQuanton::GYRORANGE_250:
349 case HwQuanton::GYRORANGE_500:
351 case HwQuanton::GYRORANGE_1000:
353 case HwQuanton::GYRORANGE_2000:
366 HwQuanton *hwQuanton = HwQuanton::GetInstance(uavoManager);
369 return QStringList();
371 HwQuanton::DataFields settings = hwQuanton->getData();
372 if (settings.InPort == HwQuanton::INPORT_OUTPUTSADC
373 || settings.InPort == HwQuanton::INPORT_PPMADC
374 || settings.InPort == HwQuanton::INPORT_PPMOUTPUTSADC
375 || settings.InPort == HwQuanton::INPORT_PPMPWMADC
376 || settings.InPort == HwQuanton::INPORT_PWMADC
377 || settings.InPort == HwQuanton::INPORT_PPMSERIALADC) {
378 return QStringList() <<
"IN 7"
382 return QStringList() <<
"Disabled"
qint32 boardType
The numerical board type ID.
virtual QString boardDescription()
virtual bool queryCapabilities(BoardCapabilities capability)
Return which capabilities this board has.
virtual bool isInputConfigurationSupported(Core::IBoardType::InputType type)
Determine if this board supports configuring the receiver.
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 bool setInputType(Core::IBoardType::InputType type)
virtual bool hasAnnunciator(AnnunciatorType annunc)
Check if the board has the given type of annunciator.
Quanton()
Quanton::Quanton This is the Quanton board definition.
void addFirmwareUSBInfo(USBInfo info)
void addBootloaderUSBInfo(USBInfo info)
virtual QString shortName()
virtual QString getHwUAVO()
virtual int queryMaxGyroRate()
Query the board for the currently set max rate of the gyro.
virtual Core::IBoardType::InputType getInputType()
getInputOnPort get the current input type
virtual int minBootLoaderVersion()
Returns the minimum bootloader version required.
virtual QStringList getAdcNames()
virtual QPixmap getBoardPicture()
getBoardPicture