kruland2607 [Tue, 17 Jan 2012 02:46:49 +0000 (02:46 +0000)]
Persist the Velocity at launch rod clearance in ork file. Added to column in SimulationPanel. Added computation of Velocity at deployment in FlightData. Persist Velocity at deployment in ork file and added to SimulationPanel and DesignReport.
Added l10n message keys for new column in SimulationPanel.
Added function MathUtil.interpolate which does linear interpolation of intermediate values. This is used in FlightData for computing Velocity at deployment and Velocity at launch rod clearance.
kruland2607 [Sun, 15 Jan 2012 02:46:13 +0000 (02:46 +0000)]
Change handling of Motor Digests. The computed digest value is now stored as a member variable in the ThrustCurveMotor and avaliable through the getDigest() method. getDigest() was added to the Motor interface. All references to MotorDigest.digestMotor() were removed from the application.
The android db now stores the digest. Also changed persistance mechanism for delays to store as comma delimited string.
The TestMotorLoader is now failing because the digests have changed.
kruland2607 [Fri, 13 Jan 2012 18:29:16 +0000 (18:29 +0000)]
Show the simulation name as the chart title. Made some UI concessions because drawing the events in the graph is not currently available: Moved "draw" button to series tab, changed the list entry for the events to non-selectable simple text items.
kruland2607 [Thu, 12 Jan 2012 19:51:28 +0000 (19:51 +0000)]
Reimplement motor handling so the android application relies more heavily on the OR core ThrustCurveMotor class. This involved changing the database schema and querying mechanisms. Rewriting the thrust curve download logic in net.sf.openrocket.android.thrustcurve. Fixing the motor browser, motor details, and burn plot activities. The file parsing now uses the RSE and RSP parsers from OR core.
ExtendedThrustCurveMotor class was created to hold the additional data required by the db ( the id in particular) along with the data which is useful to the browser (case info and impulse class).
kruland2607 [Thu, 12 Jan 2012 19:41:16 +0000 (19:41 +0000)]
Switch minimum sdk to 9 since OR core uses ArrayDeque which is only available in Android API 9. Note API 9 is Android 2.3 / Gingerbread, but there are no emulators available for this api version.
kruland2607 [Thu, 12 Jan 2012 19:32:23 +0000 (19:32 +0000)]
Created static function Motor.Type.fromName( String ) to Motor.Type based on the logic in RockSimMotorLoader. Use this new lookup method in RockSimMotorLoader. This method was moved because it is useful to have it in Android project motor database.
kruland2607 [Wed, 11 Jan 2012 14:56:40 +0000 (14:56 +0000)]
Modified RocketUtils.getCG to take a MassCalcType parameter. In the OpenRocketViewer, calculate mass empty. Changed the order of the fields in the openrocketviewer layout. Added a spinner for the configurations stored in the ork file - though this still needs to have motors wired in.
kruland2607 [Wed, 11 Jan 2012 03:15:10 +0000 (03:15 +0000)]
Creating resources/ source directory to hold l10n, pix, and datafiles. Changes to build.xml to support it. The directory moves will be done in separate svn move operations.
kruland2607 [Tue, 10 Jan 2012 15:48:19 +0000 (15:48 +0000)]
Using pl.polidea.treeview for the component tree list. This code is under 2-clause BSD and available from code.google.com/p/tree-view-list-android. Unfortunately, the only way to effectively use this code is to include the source within the project (instead of jar) because it was poorly written and depends on a bunch of resources.
kruland2607 [Sun, 8 Jan 2012 00:53:35 +0000 (00:53 +0000)]
Change OpenRocketViewer to tab layout with three tabs: overview, components, and simulations. Overview is populated with some high level data about the rocket - length, mass, cg, etc. Components will be populated with the tree of rocket components. Simulations contains the list of stored simulations.
Added length and mass preferences and wired into the application object initialization of the OpenRocket UnitGroup statics.
There is currently an issue in the Simulation list in that the motors are not being displayed. This is because currently the motor dao is not wired into the application.
kruland2607 [Fri, 6 Jan 2012 03:31:27 +0000 (03:31 +0000)]
Enabled pan and zoom. Once the y axis were pinned so their origins are the same location, the pan and zoom feels better. Though there are still some bugs in there.
kruland2607 [Fri, 6 Jan 2012 03:12:27 +0000 (03:12 +0000)]
Change Simulation plotting functionality to use AChartEngine instead of AndroidPlot. AChartEngine has built in zoom and pan though they are currently not used (because they are a little buggy). AChartEngine supports mulitple series plotted on same graph. However, it does not support the plotting of events.
Removed the sliding drawer from the configuration. Instead a new activity is launched containing the plot.
kruland2607 [Wed, 4 Jan 2012 17:57:54 +0000 (17:57 +0000)]
Fixup problems I introduced during previous commit of MotorDatabase refactoring. The ThrustCurveMotorSet class needs to be public. The classes MotorDatabaseLoadingDialog and ThrustCurveMotorSelectionPanel need to blind cast the MotorDatabase retrieved from the Application to ThrustCurveMotorSetDatabase in order to have access to functions specific to that implementation.
rodinia814 [Wed, 4 Jan 2012 14:18:24 +0000 (14:18 +0000)]
DGP - Modified Rocksim import to discriminate between centering ring, tube coupler, bulkhead, and engine block. Refactored Junits to use Junit 4.0 annotations.
kruland2607 [Wed, 4 Jan 2012 05:30:50 +0000 (05:30 +0000)]
Fixup the intent filters for the OpenRocketViewer activity. It's not pretty but it was the only way I could find which would convince the file browser to show the OR icon with the file and be able to launch the activity correctly.
kruland2607 [Tue, 3 Jan 2012 18:58:10 +0000 (18:58 +0000)]
Added progress dialog when loading a file. Removed some default text from the view. Added safety net to launch the file browser when no file is specified. This last piece of functionality might be replaced with a dialog and better error handling in the future.
kruland2607 [Tue, 3 Jan 2012 18:56:38 +0000 (18:56 +0000)]
Added some functionality to Main activity. Splash screen is displayed for a little bit, then the user is presented with two buttons - one to open a file browser to find ork files, the other to start the motor browser.
kruland2607 [Tue, 3 Jan 2012 02:20:10 +0000 (02:20 +0000)]
Checkpoint commit of android functionality. Application currently consists of simple Main activity which does nothing but allows for bootstrapping of debugger. In future Main activity will go away. OpenRocketViewer activity which loads an ork file and displays a list of the simulations. And Simulation activity which is used to plot simulation results.
Also included is a Motor sqlite database which is populated from thrustcurve downloads. Includes primitive thrustcurve plotting system. This will soon be wired into the openrocket application to supply motors for simulation execution.