770 Commits

Author SHA1 Message Date
Sampo Niskanen
a2c0af3b7f Initial implementation of scripting extension 2014-12-27 19:18:53 +02:00
Sampo Niskanen
78cdd77d78 Clean up and document the clone() method in SimulationListener 2014-12-27 10:51:13 +02:00
Sampo Niskanen
807450b407 Remove unused methods from SimulationListener 2014-12-27 10:41:09 +02:00
Sampo Niskanen
e6b5248a0c Boost file format version to 1.7 when saving simulation extensions 2014-12-24 00:16:14 +02:00
Sampo Niskanen
7aca75f053 Implement launch velocity into AirStart extension 2014-12-23 23:49:37 +02:00
Sampo Niskanen
00a7b7edc7 Fix copy-paste bug 2014-12-23 23:48:51 +02:00
Sampo Niskanen
82af205e3e Merge remote-tracking branch 'upstream/master' into feature/simulationextensions
Conflicts:
	core/src/net/sf/openrocket/simulation/SimulationStatus.java
2014-12-23 21:01:48 +02:00
kruland2607
ea07f91f5e Merge remote-tracking branch 'cearls/Auto-run-simulations'
Conflicts:
	swing/src/net/sf/openrocket/gui/dialogs/preferences/PreferencesDialog.java

Manually resolved.
2014-12-21 19:32:27 -06:00
Craig Earls
4310cd4b51 RocketInfo font size now configurable in option. Small is 11, medium is 14, large is 17.
Corrected spelling on PrefChoiseSelector name, will get the translation keys some other time.
Added LineMetrics.descent to the line height for laying out the text in RocketInfo.
2014-12-21 10:11:06 -07:00
Craig Earls
6110e0f5cd Outdated simulations will now run when the simulations tab is selected. 2014-12-19 17:47:29 -07:00
Craig Earls
05242d4f81 Add option to disable flight parameter estimates in the design window.
The plumbing was all there, but no one ever exposed the functionality to the users.
2014-12-19 14:31:30 -07:00
Craig Earls
233117628d Added auto run simulations checkbox to preferences. 2014-12-19 06:54:43 -07:00
Craig Earls
ded4df8103 Fixed 3 issues kruland had with mass type.
1.  Mass tooltip only displays totals for components that have children.
2.  setMassComponentType now fires NON_FUNCTIONAL change event.
3.  Label now reads "Mass Type" and default is "Unspecified".
2014-12-15 20:34:14 -07:00
Craig Earls
77cfa2bdf2 Sum up mass of subcomponent and put in component tree tooltip. 2014-12-13 16:45:49 -07:00
Craig Earls
07b831c34f Mass types now save. 2014-12-13 15:21:09 -07:00
Craig Earls
27a372eca5 Now drawing most mass types. 2014-12-13 12:31:54 -07:00
Craig Earls
f7f3b737d4 Added MassComponentType enum to allow categorizing mass components
This is only the data model. MassComponentType added as an Enum.  MassComponentConfig dialog updated to combobox to select.
2014-12-12 23:32:22 -07:00
kruland2607
09cb51d77a HTML escape the decal file name just in case it contains & or other
illegal characters.
2014-10-30 19:21:59 -05:00
kruland2607
6fbbef1bb5 Fixed NPE reported through a bug report. Somehow the listenerList was
null when a change event was fired.  Don't know how this really can
happen, but protecting against the NPE isn't a bad idea.
2014-10-29 19:12:28 -05:00
Daniel_M_Williams
d905d24f47 re-apply patch 5c0d9eb... which was clobbered by mistake 2014-10-29 14:59:25 -06:00
Daniel_M_Williams
534a61ee7e interim commit. This moves the mass <0 from a separate loop into the previous loop. 2014-10-28 12:14:44 -06:00
Daniel_M_Williams
2d1c843bfb [Fix] Fixed bug in RSE file loading ( XML-formatted engine description)
This patch is based off a thread from "The Rocketry Forum"
( http://www.rocketryforum.com/showthread.php?70475-Problems-with-custom-motors-in-OpenRocket ) .

Complaint: Poster had a water-rocket engine file which would raise IOExceptions upon automatic load.
           (1) the original .rse motor file, posted in the thread above, has an invalid motor length.
           (2) The corrected .rse file follows at the end of this commit message.
Bug: The mass auto-scaling code would over-estimate the mass loss, and declare a negative mass upon motor exhaustion.
     The negative mass is small (in this case, ~= -1E-16).  However, this error is larger than the single-precision epsilon.
Fix: Added a loop which checked for negative mass during the thrust curve, and reset those values back to zero. (AbstractMotorLoader.java:105)
     Also, expanded the number and detail level of some related exception reporting. (ThrustCurveMotor:137)

----

<engine-database>
  <engine-list>
    <engine  mfg="Water" code="W90psi" Type="single-use" dia="18.001" len="200."
initWt="800." propWt="800." delays="1000" auto-calc-mass="1" auto-calc-cg="0"
avgThrust="280.059" peakThrust="428.329" throatDia="0." exitDia="0."
Itot="21.284" burn-time="0.08" massFrac="99.88" Isp="2.71" tDiv="10" tStep="-1."
tFix="1" FDiv="10" FStep="-1." FFix="1" mDiv="10" mStep="-1." mFix="1" cgDiv="10"
cgStep="-1." cgFix="1">
    <comments>Water Rocket, 90 psi, 800g</comments>
    <data>
      <eng-data  t="0." f="0." m="800." cg="81.6327"/>
      <eng-data  t="0.001" f="428.329" m="791.95" cg="89.1566"/>
      <eng-data  t="0.005" f="405.382" m="729.279" cg="107.229"/>
      <eng-data  t="0.008" f="383.711" m="684.79" cg="115.663"/>
      <eng-data  t="0.016" f="346.742" m="574.971" cg="132.53"/>
      <eng-data  t="0.023" f="319.972" m="487.264" cg="142.169"/>
      <eng-data  t="0.031" f="294.476" m="394.885" cg="154.217"/>
      <eng-data  t="0.041" f="267.705" m="289.234" cg="163.855"/>
      <eng-data  t="0.051" f="244.759" m="192.927" cg="172.289"/>
      <eng-data  t="0.059" f="229.462" m="121.63" cg="178.313"/>
      <eng-data  t="0.067" f="215.439" m="54.742" cg="186.747"/>
      <eng-data  t="0.072" f="203.966" m="15.3326" cg="189.157"/>
      <eng-data  t="0.076" f="0." m="0." cg="192.857"/>
    </data>
  </engine>
</engine-list>
</engine-database>
2014-10-28 10:32:01 -06:00
celeron533
5c0d9eb118 Update registered language code in L10nPropertyReport
Update registered language code in L10nPropertyReport.java
Register "tr", "zh_CN".

Existing property files (13):

messages.properties
messages_cs.properties
messages_de.properties
messages_es.properties
messages_fr.properties
messages_it.properties
messages_ja.properties
messages_pl.properties
messages_pt.properties
messages_ru.properties
messages_tr.properties
messages_uk_UA.properties
messages_zh_CN.properties
2014-10-19 20:45:10 +08:00
kruland2607
73fabd01dd Added ukranian translations. 2014-10-02 20:23:51 -05:00
Doug Pedrick
c2e79ba50e Added support for Rocksim SubAssembly file elements (import only). 2014-08-30 21:08:13 -05:00
kruland2607
35f9ae384e Added motor texture for Klima motors. 2014-05-21 15:11:31 -05:00
kruland2607
0e984d51f0 Add knots to velocity group. 2014-05-21 12:47:34 -05:00
kruland2607
3ea50e1fad Added knots to windspeed unit group. 2014-05-20 21:17:00 -05:00
kruland2607
b1e53e4e6b Removed the tumbling warning during coast to apogee. 2014-05-20 09:29:31 -05:00
Sampo Niskanen
2c64e83a6f TODO 2014-05-18 12:35:11 +03:00
Sampo Niskanen
cc6a39c34d Remove test code 2014-04-12 10:56:42 +03:00
Sampo Niskanen
b6e3a57b47 Implement simulation extensions
Squashed commit of the following:

commit 058f603c23accbcdbe9110645f19164da7d57c85
Author: Sampo Niskanen <sampo.niskanen@iki.fi>
Date:   Sat Apr 12 10:52:21 2014 +0300

    Implmenent simulation extensions

commit a1ca913c7d7793a9209a5f98235336270db6ce10
Author: Sampo Niskanen <sampo.niskanen@iki.fi>
Date:   Fri Apr 11 19:45:12 2014 +0300

    WIP

commit 916f0bc8961360c0906b413485ca4e3700033740
Author: Sampo Niskanen <sampo.niskanen@iki.fi>
Date:   Tue Apr 1 20:23:25 2014 +0300

    WIP
2014-04-12 10:54:17 +03:00
kruland2607
a34d41d6af Implement feature to compute the optimum delay for a simulation. 2014-04-08 13:09:38 -05:00
bkuker
8e063f0a64 The changes to the tumble transition discussed on or-dev 2014-02-25 15:39:12 -05:00
bkuker
7c72bc88b1 Fix BasicTumbleStatus to initialize drag to non-zero.
computeTumbleDrag() is never called without this fix.

The one-arg constructor is the only constructor ever used, to init this
status based on the previous status, copying the tumble drag if it can.

The first BasicTumbleStatus is constructed from an RK4 Status, so it's
drag is not copied, but neither is the drag computed. From then on the 0
is copied from one BasicTumbleStatus to the next.
2014-02-25 09:51:03 -05:00
kruland
11a59e0759 Remove FIXME comment since it was addressed by the previous commit which
modified the epsilon to check for equality in y points.

Removed a bunch of vertical whitespace.
2014-02-04 08:11:26 -06:00
kruland
b39cd8a016 Fix for Issue #175. Use a larger number to test equality of fin point y
positions to reduce numerical stability in computation of chord lengths.
2014-01-17 20:36:46 -06:00
UncleRus
43bb9ec941 New l10n strings 2014-01-04 04:17:39 +06:00
kruland2607
305ad36103 Simplify the RocketComponentVisitor by removing the generic interfaces.
Added functionality to the RocketComponentVisitor by providing a
templated return value.

Modified the Configuration tab UI to disable recovery & staging tabs
when they are not appropriate and adding some help text to the motor
table when there are no motor mounts defined.
2013-12-19 10:40:11 -06:00
kruland
28d970cad6 When importing a rkt file, if we cannot find the decal image file on the
local disk, we just ignore it.
2013-12-01 18:22:45 -06:00
kruland2607
25c1ba2307 Protect against NPE when simulations are not properly set up. 2013-11-11 09:51:52 -06:00
kruland2607
a1944b765f Added workaround for problem introduced in Java 1.7.0_45-b18 with
DataFlavor being loaded in a different classloader.  We cannot refer to
singletons in the RocketComponent class.
2013-11-04 14:49:20 -06:00
kruland2607
ec5dfbd4e6 Remove dependency on SwingPreferences. 2013-10-11 15:35:11 -05:00
kruland2607
6cd1bffc82 Merge pull request #158 from kruland2607/l10nReport
Added little l10n properties analysis tool, and fixed some obvious errors in cs & it localizations.
2013-10-11 13:25:55 -07:00
kruland2607
0e8adeaf1f When deleting a flight configuration, delete corresponding simulations
as well.
2013-10-11 14:40:15 -05:00
kruland2607
1d36ab5eaf Merge branch '13.09dev' into feature-configtab 2013-10-10 11:35:41 -05:00
kruland2607
6641f959c5 When deleting a flight configuration, first change the configuration to
a different one.
2013-10-09 16:06:30 -05:00
kruland2607
a601788dcd Fixed integer test value. Thank goodness for unit tests. 2013-10-09 14:52:36 -05:00
kruland2607
3e57ef205d Be smart about displaying decimals. 2013-10-07 22:18:22 -05:00
kruland2607
246b9a6823 Relocate the swing files into the swing/ project. They were misplaced with the rebase. 2013-09-27 21:54:05 -05:00