1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

REVONANO esc setupwizard nano fix

This commit is contained in:
abeck70 2015-05-21 22:19:40 +10:00
parent 66643f185e
commit f44884f072

View File

@ -100,8 +100,8 @@ bool VehicleConfigurationHelper::setupHardwareSettings(bool save)
bool VehicleConfigurationHelper::isApplicable(UAVObject *dataObj)
{
return true;
}
return true;
}
void VehicleConfigurationHelper::addModifiedObject(UAVDataObject *object, QString description)
{
@ -410,6 +410,13 @@ void VehicleConfigurationHelper::applyActuatorConfiguration()
if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_REVO) {
data.BankUpdateFreq[2] = escFrequence;
data.BankMode[2] = bankMode;
} else if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_NANO) {
data.BankUpdateFreq[1] = escFrequence;
data.BankMode[1] = bankMode;
data.BankUpdateFreq[2] = escFrequence;
data.BankMode[2] = bankMode;
data.BankUpdateFreq[3] = escFrequence;
data.BankMode[3] = bankMode;
}
break;
case VehicleConfigurationSource::MULTI_ROTOR_HEXA:
@ -429,6 +436,10 @@ void VehicleConfigurationHelper::applyActuatorConfiguration()
data.BankMode[2] = bankMode;
data.BankUpdateFreq[3] = escFrequence;
data.BankMode[3] = bankMode;
if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_NANO) {
data.BankUpdateFreq[4] = escFrequence;
data.BankMode[4] = bankMode;
}
break;
default:
break;