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:
kruland2607 2013-11-07 21:04:46 -06:00
parent 87d515971b
commit fbefcf65f1
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@ package net.sf.openrocket.gui.dialogs.motor.thrustcurve;
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 ),
C("C",5.0, 10.0),
D("D",10.0, 20.0),

View File

@ -213,7 +213,7 @@ public class MotorRowFilter extends RowFilter<TableModel, Integer> implements Ch
private boolean filterByImpulseClass(ThrustCurveMotorSet m) {
if ( minimumImpulse != null ) {
if( m.getTotalImpuse() < minimumImpulse.getLow() ) {
if( m.getTotalImpuse() <= minimumImpulse.getLow() ) {
return false;
}
}