mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Added PipX to Windows .inf file and updated ppm port definitions.
This commit is contained in:
parent
e57543ec29
commit
6e359c5933
@ -10,9 +10,11 @@ DriverVer=10/15/2009,1.0.0.0
|
||||
|
||||
[DeviceList.NTx86]
|
||||
%CopterControl%= DriverInstall,USB\VID_20A0&PID_415b&MI_00
|
||||
%PipXtreme%= DriverInstall,USB\VID_20A0&PID_415c&MI_00
|
||||
|
||||
[DeviceList.NTamd64]
|
||||
%CopterControl%= DriverInstall,USB\VID_20A0&PID_415b&MI_00
|
||||
%PipXtreme%= DriverInstall,USB\VID_20A0&PID_415c&MI_00
|
||||
|
||||
[DriverInstall]
|
||||
include=mdmcpq.inf
|
||||
@ -30,3 +32,4 @@ HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
|
||||
[Strings]
|
||||
ProviderName = "CDC Driver"
|
||||
CopterControl = "OpenPilot CDC Driver"
|
||||
PipXtreme = "OpenPilot CDC Driver"
|
||||
|
@ -7,10 +7,8 @@ static const struct pios_led pios_leds[] = {
|
||||
[PIOS_LED_USB] = {
|
||||
.pin = {
|
||||
.gpio = GPIOA,
|
||||
//.gpio = GPIOC,
|
||||
.init = {
|
||||
.GPIO_Pin = GPIO_Pin_3,
|
||||
//.GPIO_Pin = GPIO_Pin_13,
|
||||
.GPIO_Mode = GPIO_Mode_Out_PP,
|
||||
.GPIO_Speed = GPIO_Speed_50MHz,
|
||||
},
|
||||
@ -301,20 +299,17 @@ static const struct pios_tim_clock_cfg tim_4_cfg = {
|
||||
};
|
||||
|
||||
static const struct pios_tim_channel pios_tim_ppm_flexi_port = {
|
||||
//.timer = TIM2,
|
||||
.timer = TIM4,
|
||||
//.timer_chan = TIM_Channel_4,
|
||||
.timer = TIM2,
|
||||
.timer_chan = TIM_Channel_4,
|
||||
.pin = {
|
||||
.gpio = GPIOB,
|
||||
.init = {
|
||||
//.GPIO_Pin = GPIO_Pin_11,
|
||||
.GPIO_Pin = GPIO_Pin_9,
|
||||
.GPIO_Pin = GPIO_Pin_11,
|
||||
.GPIO_Mode = GPIO_Mode_IPD,
|
||||
.GPIO_Speed = GPIO_Speed_2MHz,
|
||||
},
|
||||
},
|
||||
//.remap = GPIO_PartialRemap_TIM2,
|
||||
.remap = GPIO_PartialRemap2_TIM2,
|
||||
};
|
||||
|
||||
#endif /* PIOS_INCLUDE_TIM */
|
||||
|
@ -959,6 +959,10 @@ QVariant ConfigTaskWidget::getVariantFromWidget(QWidget * widget,double scale)
|
||||
{
|
||||
return (QString)(cb->isChecked()?"TRUE":"FALSE");
|
||||
}
|
||||
else if(QLineEdit * cb=qobject_cast<QLineEdit *>(widget))
|
||||
{
|
||||
return (QString)cb->displayText();
|
||||
}
|
||||
else
|
||||
return QVariant();
|
||||
}
|
||||
@ -1011,6 +1015,7 @@ bool ConfigTaskWidget::setWidgetFromVariant(QWidget *widget, QVariant value, dou
|
||||
cb->setText(value.toString());
|
||||
else
|
||||
cb->setText(QString::number((value.toDouble()/scale)));
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user