Fix low limit on motor filter by impulse class to exclude motors at that limit.
This prevents, for example, full C motors with 10Ns impulse from showing up as Ds.
This commit is contained in:
parent
87d515971b
commit
fbefcf65f1
@ -3,7 +3,8 @@ package net.sf.openrocket.gui.dialogs.motor.thrustcurve;
|
|||||||
|
|
||||||
public enum ImpulseClass {
|
public enum ImpulseClass {
|
||||||
|
|
||||||
A("A",0.0, 2.5 ),
|
// Impulse class A starts below zero to catch the MMX motors.
|
||||||
|
A("A",-1.0, 2.5 ),
|
||||||
B("B",2.5, 5.0 ),
|
B("B",2.5, 5.0 ),
|
||||||
C("C",5.0, 10.0),
|
C("C",5.0, 10.0),
|
||||||
D("D",10.0, 20.0),
|
D("D",10.0, 20.0),
|
||||||
|
@ -213,7 +213,7 @@ public class MotorRowFilter extends RowFilter<TableModel, Integer> implements Ch
|
|||||||
|
|
||||||
private boolean filterByImpulseClass(ThrustCurveMotorSet m) {
|
private boolean filterByImpulseClass(ThrustCurveMotorSet m) {
|
||||||
if ( minimumImpulse != null ) {
|
if ( minimumImpulse != null ) {
|
||||||
if( m.getTotalImpuse() < minimumImpulse.getLow() ) {
|
if( m.getTotalImpuse() <= minimumImpulse.getLow() ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user