1
0
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:
m_thread 2015-02-27 22:55:50 +01:00
parent 927886bf8e
commit 3ee481fd2a

View File

@ -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;