From 312a1e7a1039c9aecdeba0d01807f313426e0b0c Mon Sep 17 00:00:00 2001 From: kruland2607 Date: Thu, 16 Feb 2012 19:24:12 +0000 Subject: [PATCH] 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. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@424 180e2498-e6e9-4542-8430-84ac67f01cd8 --- .../sf/openrocket/android/thrustcurve/DownloadResponse.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/src/net/sf/openrocket/android/thrustcurve/DownloadResponse.java b/android/src/net/sf/openrocket/android/thrustcurve/DownloadResponse.java index c075d53f..45326104 100644 --- a/android/src/net/sf/openrocket/android/thrustcurve/DownloadResponse.java +++ b/android/src/net/sf/openrocket/android/thrustcurve/DownloadResponse.java @@ -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); + } } } -- 2.47.2