Use motor common name instead of designation in MotorConfigurationPanel
This commit is contained in:
parent
4808ed0b27
commit
d6482a5be5
@ -62,11 +62,11 @@ public class MotorConfiguration implements FlightConfigurableParameter<MotorConf
|
||||
return ignitionOveride;
|
||||
}
|
||||
|
||||
public String toMotorDesignation(){
|
||||
public String toMotorCommonName(){
|
||||
if( motor == null ){
|
||||
return trans.get("empty");
|
||||
}else{
|
||||
return this.motor.getDesignation(this.getEjectionDelay());
|
||||
return this.motor.getCommonName(this.getEjectionDelay());
|
||||
}
|
||||
}
|
||||
|
||||
@ -235,7 +235,7 @@ public class MotorConfiguration implements FlightConfigurableParameter<MotorConf
|
||||
}
|
||||
|
||||
public String toDescription(){
|
||||
return ( this.toMotorDesignation()+
|
||||
return ( this.toMotorCommonName()+
|
||||
" in: "+mount.getDebugName()+
|
||||
" ign@: "+this.toIgnitionDescription() );
|
||||
}
|
||||
@ -251,7 +251,7 @@ public class MotorConfiguration implements FlightConfigurableParameter<MotorConf
|
||||
mount.getDebugName(),
|
||||
fcid.toShortKey(),
|
||||
mid.toDebug(),
|
||||
toMotorDesignation(),
|
||||
toMotorCommonName(),
|
||||
toIgnitionDescription() ));
|
||||
|
||||
return buf.toString();
|
||||
|
@ -58,7 +58,7 @@ public class MotorConfigurationSet extends FlightConfigurableParameterSet<MotorC
|
||||
loopFCID.toShortKey(),
|
||||
curConfig.getFCID().toShortKey(),
|
||||
curConfig.getMID().toShortKey(),
|
||||
curConfig.toMotorDesignation(),
|
||||
curConfig.toMotorCommonName(),
|
||||
curConfig.toIgnitionDescription() ));
|
||||
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
|
||||
}
|
||||
|
||||
if( ! motorConfig.isEmpty()){
|
||||
buff.append(motorConfig.toMotorDesignation());
|
||||
buff.append(motorConfig.toMotorCommonName());
|
||||
++activeMotorCount;
|
||||
}
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ public class MotorConfigurationPanel extends FlightConfigurablePanel<MotorMount>
|
||||
throw new NullPointerException("Motor has a null mount... this should never happen: "+curMotorInstance.getID());
|
||||
}
|
||||
|
||||
String str = motor.getDesignation(curMotorInstance.getEjectionDelay());
|
||||
String str = motor.getCommonName(curMotorInstance.getEjectionDelay());
|
||||
int count = mount.getInstanceCount();
|
||||
if (count > 1) {
|
||||
str = "" + count + Chars.TIMES + " " + str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user