Skip to content

Commit

Permalink
Update parameter metadata for Sub
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxzer committed Feb 21, 2017
1 parent 12ac189 commit ec7c060
Show file tree
Hide file tree
Showing 6 changed files with 8,353 additions and 581 deletions.
6 changes: 5 additions & 1 deletion src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,11 @@ QString APMFirmwarePlugin::internalParameterMetaDataFile(Vehicle* vehicle)
}
return QStringLiteral(":/FirmwarePlugin/APM/APMParameterFactMetaData.Rover.3.2.xml");
case MAV_TYPE_SUBMARINE:
return QStringLiteral(":/FirmwarePlugin/APM/APMParameterFactMetaData.Sub.3.4.xml");
if (vehicle->firmwareMajorVersion() < 3 || (vehicle->firmwareMajorVersion() == 3 && vehicle->firmwareMinorVersion() <= 4)) {
return QStringLiteral(":/FirmwarePlugin/APM/APMParameterFactMetaData.Sub.3.4.xml");
} else {
return QStringLiteral(":/FirmwarePlugin/APM/APMParameterFactMetaData.Sub.3.5.xml");
}
default:
return QString();
}
Expand Down
Loading

0 comments on commit ec7c060

Please sign in to comment.