Set sustainer motor to plugged
This commit is contained in:
parent
338f9460aa
commit
30088ab5a0
@ -170,6 +170,7 @@ public class RecoveryHandler extends AbstractElementHandler {
|
|||||||
recoveryDevice.setLineLength(recoveryDevice.getDiameter());
|
recoveryDevice.setLineLength(recoveryDevice.getDiameter());
|
||||||
recoveryDevice.setCD(CD);
|
recoveryDevice.setCD(CD);
|
||||||
config.setDeployAltitude(altitude / RASAeroCommonConstants.RASAERO_TO_OPENROCKET_ALTITUDE);
|
config.setDeployAltitude(altitude / RASAeroCommonConstants.RASAERO_TO_OPENROCKET_ALTITUDE);
|
||||||
|
|
||||||
// There is a special RASAero rule: if event 1 AND event 2 are set to apogee, then set event 2 to altitude
|
// There is a special RASAero rule: if event 1 AND event 2 are set to apogee, then set event 2 to altitude
|
||||||
if (recoveryDeviceNr == 1 && eventType.equals("Apogee") && this.eventType[0].equals("Apogee")) {
|
if (recoveryDeviceNr == 1 && eventType.equals("Apogee") && this.eventType[0].equals("Apogee")) {
|
||||||
eventType = "Altitude";
|
eventType = "Altitude";
|
||||||
|
@ -163,6 +163,13 @@ public class SimulationListHandler extends AbstractElementHandler {
|
|||||||
}
|
}
|
||||||
MotorConfiguration motorConfig = new MotorConfiguration(mount, id);
|
MotorConfiguration motorConfig = new MotorConfiguration(mount, id);
|
||||||
motorConfig.setMotor(motor);
|
motorConfig.setMotor(motor);
|
||||||
|
|
||||||
|
// RASAero requires apogee deployment, so the sustainer motor should always be plugged
|
||||||
|
if (stageNr == 0) {
|
||||||
|
motorConfig.setEjectionDelay(Motor.PLUGGED_DELAY);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
double delay = ignitionDelay != null ? ignitionDelay : 0.0;
|
double delay = ignitionDelay != null ? ignitionDelay : 0.0;
|
||||||
motorConfig.setIgnitionDelay(delay);
|
motorConfig.setIgnitionDelay(delay);
|
||||||
if (stageNr < rocket.getStageCount() - 1) { // Use burnout non-last if multi-staged rocket
|
if (stageNr < rocket.getStageCount() - 1) { // Use burnout non-last if multi-staged rocket
|
||||||
|
Loading…
x
Reference in New Issue
Block a user