1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1592 Skip EKFConfiguration from template for CC/CC3D

This commit is contained in:
Laurent Lalanne 2014-11-02 12:02:32 +01:00
parent 73b0efa91c
commit bf9c480510

View File

@ -758,8 +758,16 @@ void VehicleConfigurationHelper::applyTemplateSettings()
foreach(UAVObject * object, updatedObjects) {
UAVDataObject *dataObj = dynamic_cast<UAVDataObject *>(object);
// Do not apply EKFConfiguration for CC and CC3D boards
if (dataObj != NULL) {
addModifiedObject(dataObj, QString(tr("Writing template settings for %1")).arg(object->getName()));
if (m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_CC ||
m_configSource->getControllerType() == VehicleConfigurationSource::CONTROLLER_CC3D) {
if (object->getName() != "EKFConfiguration") {
addModifiedObject(dataObj, QString(tr("Writing template settings for %1")).arg(object->getName()));
}
} else {
addModifiedObject(dataObj, QString(tr("Writing template settings for %1")).arg(object->getName()));
}
}
}
}