Discovered a couple more shape parameter values used in RockSim csv files.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Tue, 5 Jun 2012 18:10:04 +0000 (18:10 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Tue, 5 Jun 2012 18:10:04 +0000 (18:10 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@757 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/preset/loader/ShapeColumnParser.java

index 55fb39425e12276882e26027b1f7c56b4395c57a..05ea4e88bb15b621889365975bd98d44e1894b6f 100644 (file)
@@ -39,12 +39,22 @@ public class ShapeColumnParser extends BaseColumnParser {
                if ( "power-series".equals(lc) ) {
                        shape = Shape.POWER;
                }
+               // guessing at what "ps" means.  I think it might be power series.
+               if ( "ps".equals(lc) ) {
+                       shape = Shape.POWER;
+               }
                if ( "1".equals(lc) ) {
                        shape = Shape.OGIVE;
                }
                if( "0". equals(lc) ) {
                        shape = Shape.CONICAL;
                }
+               if( "". equals(lc) ) {
+                       shape = Shape.CONICAL;
+               }
+               if ( "3".equals(lc) ) {
+                       shape = Shape.ELLIPSOID;
+               }
                if ( shape == null ) {
                        throw new BugException("Invalid shape parameter: " + columnData);
                }