Merge pull request #412 from JoePfeiffer/fixconfigurationname
Fix Configuration name in motor configuration panel.
This commit is contained in:
commit
3d445c55b0
@ -62,11 +62,11 @@ public class MotorConfiguration implements FlightConfigurableParameter<MotorConf
|
|||||||
return ignitionOveride;
|
return ignitionOveride;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toMotorDescription(){
|
public String toMotorDesignation(){
|
||||||
if( motor == null ){
|
if( motor == null ){
|
||||||
return trans.get("empty");
|
return trans.get("empty");
|
||||||
}else{
|
}else{
|
||||||
return this.motor.getDesignation() + "-" + (int)this.getEjectionDelay();
|
return this.motor.getDesignation(this.getEjectionDelay());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ public class MotorConfiguration implements FlightConfigurableParameter<MotorConf
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toDescription(){
|
public String toDescription(){
|
||||||
return ( this.toMotorDescription()+
|
return ( this.toMotorDesignation()+
|
||||||
" in: "+mount.getDebugName()+
|
" in: "+mount.getDebugName()+
|
||||||
" ign@: "+this.toIgnitionDescription() );
|
" ign@: "+this.toIgnitionDescription() );
|
||||||
}
|
}
|
||||||
@ -251,7 +251,7 @@ public class MotorConfiguration implements FlightConfigurableParameter<MotorConf
|
|||||||
mount.getDebugName(),
|
mount.getDebugName(),
|
||||||
fcid.toShortKey(),
|
fcid.toShortKey(),
|
||||||
mid.toDebug(),
|
mid.toDebug(),
|
||||||
toMotorDescription(),
|
toMotorDesignation(),
|
||||||
toIgnitionDescription() ));
|
toIgnitionDescription() ));
|
||||||
|
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
|
@ -58,7 +58,7 @@ public class MotorConfigurationSet extends FlightConfigurableParameterSet<MotorC
|
|||||||
loopFCID.toShortKey(),
|
loopFCID.toShortKey(),
|
||||||
curConfig.getFCID().toShortKey(),
|
curConfig.getFCID().toShortKey(),
|
||||||
curConfig.getMID().toShortKey(),
|
curConfig.getMID().toShortKey(),
|
||||||
curConfig.toMotorDescription(),
|
curConfig.toMotorDesignation(),
|
||||||
curConfig.toIgnitionDescription() ));
|
curConfig.toIgnitionDescription() ));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( ! motorConfig.isEmpty()){
|
if( ! motorConfig.isEmpty()){
|
||||||
buff.append( motorConfig.toMotorDescription());
|
buff.append(motorConfig.toMotorDesignation());
|
||||||
++activeMotorCount;
|
++activeMotorCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user