When downloading burn files, prefer RockSim formatted files of RASP since they appear to be better. In particular there is a RASP file for the AeroTech G76 which contains the incorrect motor designation of G72.

This commit is contained in:
Kevin Ruland 2012-02-16 19:24:12 +00:00
parent 597d4bec6a
commit 178755ca90

View File

@ -14,6 +14,11 @@ public class DownloadResponse {
MotorBurnFile currentData = data.get(mbd.getMotorId());
if ( currentData == null || currentData.getThrustCurveMotor() == null ) {
data.put(mbd.getMotorId(),mbd);
} else {
// Prefer RASP motors.
if ( "RockSim".equals(mbd.getFiletype()) && !"RockSim".equals(currentData.getFiletype()) ) {
data.put(mbd.getMotorId(), mbd);
}
}
}