// No motors
if (motors.size() == 0) {
- String str = "No motor with designation '" + designation + "'";
- if (manufacturer != null)
- str += " for manufacturer '" + manufacturer + "'";
- str += " found.";
- warnings.add(str);
+ Warning.MissingMotor mmw = new Warning.MissingMotor();
+ mmw.setDesignation(designation);
+ mmw.setDigest(digest);
+ mmw.setDiameter(diameter);
+ mmw.setLength(length);
+ mmw.setManufacturer(manufacturer);
+ mmw.setType(type);
+ warnings.add(mmw);
return null;
}
double timeToApogee = Double.NaN;
double flightTime = Double.NaN;
double groundHitVelocity = Double.NaN;
+ double launchRodVelocity = Double.NaN;
+ double deploymentVelocity = Double.NaN;
try {
maxAltitude = DocumentConfig.stringToDouble(attributes.get("maxaltitude"));
DocumentConfig.stringToDouble(attributes.get("groundhitvelocity"));
} catch (NumberFormatException ignore) {
}
+ try {
+ launchRodVelocity = DocumentConfig.stringToDouble(attributes.get("launchrodvelocity"));
+ } catch (NumberFormatException ignore) {
+ }
+ try {
+ deploymentVelocity = DocumentConfig.stringToDouble(attributes.get("deploymentvelocity"));
+ } catch (NumberFormatException ignore) {
+ }
- // TODO: HIGH: Store and load launchRodVelocity
data = new FlightData(maxAltitude, maxVelocity, maxAcceleration, maxMach,
- timeToApogee, flightTime, groundHitVelocity, Double.NaN);
+ timeToApogee, flightTime, groundHitVelocity, launchRodVelocity, deploymentVelocity);
}
data.getWarningSet().addAll(warningSet);