5916 Commits

Author SHA1 Message Date
JoePfeiffer
37ffdf2f69 Comment out exception test code 2024-04-23 09:25:03 -06:00
JoePfeiffer
9a06464afe Move calculation of summary data to a "finally" block so we display what we can, even if there was an exception during the simulation. In particular, if the exception happened in a branch other than the sustainer branch we still get all our summary data.
Added a commented-out bit of code forcing an exception for testing purposes. Since many former exceptions are now sim aborts, there isn't a reliable way to create a broken rocket design to test exception behavior -- which is a good thing!
2024-04-23 08:47:36 -06:00
JoePfeiffer
64832fe8d6 Move FlightDataBranch from SimulationException to SimulationCalculationException (since those are the only SimulationExceptions that make use of it).
Require FlightDataBranch when throwing SimulationCalculationException

Don't allow setting FlightDataBranch in SimulationCalculationException when exception is rethrown.
2024-04-22 15:13:42 -06:00
JoePfeiffer
bcfa73eb21 Don't have SimulationEngine return flight data. Add getFlightData() method
to obtain that after simulation completes
2024-04-22 09:01:59 -06:00
JoePfeiffer
51af956330 Add data branch to flight data before branch is simulated, not after.
simulateLoop() no longer returns a FlightDataBranch; it just adds to the FlightDataBranch it is simulating
2024-04-20 08:14:47 -06:00
JoePfeiffer
523fce1a4c Instead of attempting to calculate interesting values for flight data every time a data branch is added and only succeeding the first time, wait until the simulation is complete and calculate them at that time. 2024-04-20 07:56:02 -06:00
JoePfeiffer
872de38b8d It's confusing to have types FlightData and FlightDataBranch, with many variables of type FlightDataBranch named flightData. This commit changes these to be named flightDataBranch (and also changes a few other similarly named variables, so for instance data becomes dataBranch).
Also, FlightDataBranch.getBranchName() is renamed FlightDataBranch.getName(). I suspect the reason for the old method name was to clarify code in the presence of the confusion described above.
2024-04-20 07:47:54 -06:00
Sibo Van Gool
36afea51f2
Merge pull request #2210 from thzero/gradle
Gradle Build Enivornment
2024-04-10 01:31:29 +02:00
SiboVG
b5b9463e8d Increase zoom level box margin 2024-04-10 01:24:36 +02:00
SiboVG
93a410cf2a Increase tree margins 2024-04-10 01:20:59 +02:00
JoePfeiffer
026d5cc259 Check for NaN values and don't try to plot icons for them 2024-04-07 10:06:44 -06:00
SiboVG
723a4262a4 Fix UI properties file for OneDark theme 2024-04-07 01:36:41 +02:00
SiboVG
c272a140ee Fix some mistakes in merge conflicts 2024-04-07 01:23:24 +02:00
SiboVG
69c995b829 Fix material not being set when loading recovery device from preset 2024-04-06 02:24:15 +02:00
SiboVG
a590bdc299 Fix merge conflicts 2024-04-06 02:23:58 +02:00
SiboVG
aa54a39bf7 Ignore Copilot caching 2024-03-28 00:34:33 +01:00
Joe Pfeiffer
6f4d11447c
Merge pull request #2461 from SiboVG/issue-2456-1
[#2456] Overhaul of sim table GUI
2024-03-23 19:21:55 -06:00
SiboVG
dbf2838cae Clean up gradle build 2024-03-23 14:45:43 +01:00
SiboVG
d32faea6c6 Use jakarta.xml instead of javax.xml 2024-03-23 02:13:09 +01:00
SiboVG
4475bf47b0 Add missing VCS components 2024-03-21 22:21:30 +00:00
SiboVG
34fac46e1a Move database components from swing to core 2024-03-21 22:20:30 +00:00
SiboVG
920dcd4e6c Use FlatLaf for UI (instead of DarkLaf) 2024-03-21 17:32:22 +00:00
Joe Pfeiffer
8cb9ba3e8f
Merge pull request #2464 from JoePfeiffer/euler-time-step
Refine time step in AbstractEulerStepper
2024-03-16 08:19:26 -06:00
Joe Pfeiffer
6481c52a8d
Merge branch 'openrocket:unstable' into euler-time-step 2024-03-08 16:27:52 -07:00
JoePfeiffer
504062a853 slight tweak -- end a timestep just before scheduled events to better capture their effect 2024-03-08 08:44:44 -07:00
JoePfeiffer
c7f496eb7b update flight events test for more accurate tumble and parachute simulations 2024-03-08 07:52:06 -07:00
JoePfeiffer
0b6a3e54b0 Remove previous time step from simulation status 2024-03-08 07:51:45 -07:00
JoePfeiffer
bf9fc29bcd Refine timestep
1. Solve for 0-crossing in vertical velocity, vertical acceleration
2. Limit timestep to next event
3. Revert to using acceleration instead of jerk to limit timestep
4. Save calculations (eg calculate acceleration) in FlightData at start of timestep, results (eg velocity, position) at end of timestep
2024-03-08 07:39:53 -07:00
SiboVG
4262560d93 Use Application plugin 2024-02-29 23:10:04 +01:00
SiboVG
b168f09906 Also include service implementations in meta-inf 2024-02-29 01:14:43 +01:00
SiboVG
90c195b05f THE JAVA SCRIPTING ERROR IS FINALLY GONE!!! 2024-02-28 23:30:52 +01:00
SiboVG
5e315c55da Some more gradle debugging... 2024-02-27 05:54:31 +01:00
SiboVG
1835cbcabe Credit this awesome plugin!
Saved me so much debugging...
2024-02-27 03:42:37 +01:00
SiboVG
538710c55b Fix unit test bugs leftover from bump to JUnit 5
I had to rewrite the unit tests using regex and a Python script (because of the scale of the unit test). That code still contained errors...
2024-02-27 03:18:55 +01:00
SiboVG
46849e14e1 Fix Plugin dynamic injection 2024-02-27 02:54:27 +01:00
SiboVG
84a897525f Declare service providers in modules 2024-02-27 02:53:13 +01:00
SiboVG
e5d1643bac Fix unit test 2024-02-27 02:52:47 +01:00
SiboVG
6fbce14778 Disable deprecated SecurityManager 2024-02-27 02:52:32 +01:00
JoePfeiffer
e6e92d6a7b Move actual Euler integration into a separate method, to avoid code duplication when it has to be recalculated. 2024-02-25 09:21:34 -07:00
SiboVG
9a8bfc0c37 Bump unit testing from JUnit 4 to 5 2024-02-25 05:55:27 +01:00
SiboVG
f728357655 Some more cleaning up 2024-02-25 04:11:37 +01:00
Sibo Van Gool
836261c6a7
Add newline in tags 2024-02-25 02:14:02 +01:00
JoePfeiffer
b285de1c49 0 mass should be an abort, not an exception 2024-02-24 06:39:29 -07:00
JoePfeiffer
7f7e4018ad Add a bunch of data to the FlightData branch
Lots of calculated data hadn't been getting logged. There's still a bunch more that could be, but it isn't clear what use pitch rate (for instance) would be so not logging those
2024-02-23 20:49:15 -07:00
SiboVG
4d597715f4 Some more fixups of JPMS 2024-02-24 01:37:07 +01:00
JoePfeiffer
14cf635bba Flight data reflecting conditions at the start of the simulation step should be placed in the flight log at that time; new data created during the simulation step should be placed after. 2024-02-23 10:51:28 -07:00
JoePfeiffer
4b497b0cd3 cleanup: variables that are only assigned once should be marked "final" 2024-02-23 10:34:31 -07:00
SiboVG
101530a5df Remove unnecessary resources from core module 2024-02-22 23:00:10 +01:00
SiboVG
323b3d9ba6 Modularize codebase to JPMS 2024-02-22 19:49:55 +01:00
SiboVG
1ea0f78750 Minor build improvements 2024-02-21 15:41:22 +01:00