mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
OP-1754 Fixing PWMSunc PPM setting.
This commit is contained in:
parent
927886bf8e
commit
3ee481fd2a
@ -150,7 +150,8 @@ void VehicleConfigurationHelper::applyHardwareConfiguration()
|
|||||||
data.CC_RcvrPort = HwSettings::CC_RCVRPORT_PWMNOONESHOT;
|
data.CC_RcvrPort = HwSettings::CC_RCVRPORT_PWMNOONESHOT;
|
||||||
break;
|
break;
|
||||||
case VehicleConfigurationSource::INPUT_PPM:
|
case VehicleConfigurationSource::INPUT_PPM:
|
||||||
if (m_configSource->getEscType() == VehicleConfigurationSource::ESC_ONESHOT) {
|
if (m_configSource->getEscType() == VehicleConfigurationSource::ESC_ONESHOT ||
|
||||||
|
m_configSource->getEscType() == VehicleConfigurationSource::ESC_RAPID) {
|
||||||
data.CC_RcvrPort = HwSettings::CC_RCVRPORT_PPM_PIN8ONESHOT;
|
data.CC_RcvrPort = HwSettings::CC_RCVRPORT_PPM_PIN8ONESHOT;
|
||||||
} else {
|
} else {
|
||||||
data.CC_RcvrPort = HwSettings::CC_RCVRPORT_PPMNOONESHOT;
|
data.CC_RcvrPort = HwSettings::CC_RCVRPORT_PPMNOONESHOT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user