JoePfeiffer
07e15ddaa2
Merge branch 'unstable' into SIMFAIL-flight-event
2024-01-03 07:31:13 -07:00
JoePfeiffer
f9a8f59247
Add simulation aborts to .ork file load/save
2024-01-03 07:09:24 -07:00
JoePfeiffer
c5f1f011ef
Add simulation abort to sim panel tooltip
2024-01-02 08:37:07 -07:00
JoePfeiffer
c1b76be844
Add simulation abort title to simulation plot
2024-01-02 07:39:30 -07:00
Sibo Van Gool
6b01afcd67
Merge pull request #2429 from SiboVG/parachute-size
...
Fix parachute length resizing when loading preset parachute
2023-12-30 22:32:48 +01:00
Sibo Van Gool
93b5446e29
Merge pull request #2428 from SiboVG/snapshot
...
Add snapshot version to OpenRocket versioning system
2023-12-28 00:18:03 +01:00
Sibo Van Gool
e056e6ed07
Merge pull request #2421 from neilweinstock/texture-pulldown
...
Updated texture select combobox
2023-12-28 00:17:31 +01:00
SiboVG
f66788e618
Fix parachute length resizing when loading preset parachute
2023-12-27 23:58:58 +01:00
SiboVG
2f81d26216
Set RockSim parachute length to radius
2023-12-27 19:54:25 +01:00
SiboVG
ba7da7c4ee
Add snapshot version to OpenRocket versioning system
2023-12-26 19:57:39 +01:00
JoePfeiffer
7fa9d0ba0c
Save event that causes a simulation abort
2023-12-26 09:15:09 -07:00
JoePfeiffer
6a7cfefbdc
This Exception class never was used!
2023-12-24 21:01:17 -07:00
JoePfeiffer
1115212317
Remove some now-unused Exception classes: MotorIgnitionException and SimulationLaunchException.
2023-12-24 20:34:34 -07:00
JoePfeiffer
a36e7f1049
Replace thrown exceptions with simulation aborts whereever possible
2023-12-24 20:34:34 -07:00
JoePfeiffer
173a3d38e2
Integrate SIM_ABORT into code across OR
2023-12-24 20:34:34 -07:00
JoePfeiffer
2123531f14
Create new SIM_ABORT FlightEvent
2023-12-24 20:34:34 -07:00
JoePfeiffer
64e999f2e2
Create new class SimulationAbort to represent reasons for sim aborts
2023-12-24 20:34:34 -07:00
Joe Pfeiffer
85bac6484e
Merge pull request #2426 from SiboVG/fin-balsa
...
Set Balsa as default material for fins
2023-12-24 13:51:28 -07:00
SiboVG
78593a6749
Improve default materials for fins and nose cone
2023-12-24 14:35:51 +01:00
Joe Pfeiffer
5d3bb50f9e
Merge pull request #2412 from JoePfeiffer/fix-2403
...
Improve accuracy of SymmetricComponent calculations; consider shoulders in Transition moment of inertia calculations
2023-12-22 07:26:18 -07:00
Joe Pfeiffer
8c348ee2b0
Merge branch 'openrocket:unstable' into fix-acceleration-status
2023-12-20 06:00:28 -07:00
JoePfeiffer
42019237bf
Merge branch 'unstable' into fix-2403
2023-12-19 14:32:59 -07:00
JoePfeiffer
a34a22aa5d
Modify unit tests so we'll pass.
...
There's no sign that these tests were written using anything other than the existing code, and declaring it correct. That's how I updated them; their usefulness as test data is suspect at best
2023-12-19 14:27:36 -07:00
JoePfeiffer
bb8ee40693
Update unit tests to check surface properties (surface area, planform area, planform centroid) of cones
2023-12-19 14:26:24 -07:00
JoePfeiffer
6af25c3f4a
Update SymmetricComponentVolumeTest to check moments of inertia
2023-12-19 09:04:00 -07:00
JoePfeiffer
5b18f73da0
Consider shoulders in moment of inertia calculations
2023-12-19 09:02:23 -07:00
JoePfeiffer
52e8106ea6
update thrustcurve data
2023-12-16 17:41:55 -07:00
JoePfeiffer
b5b3ac2b3d
Create Transition::calculateProperties() to update component properties as needed instead of recalculating for shoulders every time they're called.
2023-12-13 09:57:35 -07:00
JoePfeiffer
4dd2c3a86a
Update unit tests for SymmetricComponent. This is another pretty big rewrite -- the old code had a lot of references to numbers transcribed from an unnamed 2D CAD package, and also expected values that were just presented without derivation. New code has the trig functions to calculate the numbers, has helper functios for the comparisons, and puts a much tighter bound on results.
2023-12-13 09:12:21 -07:00
JoePfeiffer
9f13635357
Moved calculation of all body tube properties into BodyTube instead of punting some to SymmetricComponent. This is both a little faster and will let me compare the results from the two in unit tests.
2023-12-13 08:42:05 -07:00
JoePfeiffer
3e1341271c
Modified integrate() to use geometry of actual frustums in geometric calculations instead of cylinder approximations. This turned into a pretty complete rewrite of integrate(), and the creation of several helper functions.
...
Changed the name of integrate() to calculateProperties() to better express the purpose rather than the method of calculation. It's looking forward to a future PR when I'll be modifying BodyTube to use SymmetricComponent's variable caching.
2023-12-13 08:41:11 -07:00
neil.weinstock@gmail.com
05e9758f36
texture select combobox: show 20 items, change "From file..." to "Select file..."
2023-12-10 20:48:28 -05:00
Sibo Van Gool
c136436284
Merge pull request #2416 from SiboVG/issue-2178
...
[#2178 ] Add South/West unit for latitude/longitude
2023-12-09 02:03:15 +01:00
Sibo Van Gool
5746aa1350
Merge pull request #2406 from SiboVG/refactor-warnings
...
Add Warning component source to Warning
2023-12-09 02:02:41 +01:00
SiboVG
52f33a3429
Merge branch 'unstable' into issue-2178
...
# Conflicts:
# core/src/net/sf/openrocket/simulation/FlightDataType.java
# core/src/net/sf/openrocket/unit/UnitGroup.java
# swing/src/net/sf/openrocket/gui/dialogs/preferences/LaunchPreferencesPanel.java
# swing/src/net/sf/openrocket/gui/dialogs/preferences/UnitsPreferencesPanel.java
# swing/src/net/sf/openrocket/gui/simulation/SimulationConditionsPanel.java
2023-12-01 19:28:40 +01:00
SiboVG
0ff32888a1
Refactor searchable and categorizable combobox to general method
...
In case we want to use it for other parts of the UI :)
2023-11-25 03:00:50 +01:00
SiboVG
341ab81b79
[ #2338 ] Use searchable and categorizable combobox for flight data type
2023-11-24 20:47:05 +01:00
SiboVG
764ebac7b0
Merge branch 'unstable' into issue-2338
2023-11-23 17:31:55 +01:00
Sibo Van Gool
ce2c9c97fe
Merge pull request #2407 from SiboVG/issue-2345
...
[#2345 ] Reintroduce motor ignition delay optimization
2023-11-23 17:31:24 +01:00
SiboVG
f3a58598d6
Merge branch 'unstable' into issue-2338
2023-11-22 23:22:34 +01:00
Sibo Van Gool
42102647b2
Merge pull request #2410 from SiboVG/fix-rasaero
...
Use meters->feet conversion for RASAero rod length
2023-11-22 23:09:07 +01:00
JoePfeiffer
e92e2bc3a9
Instead of incrementing through the slices of the component, multiply to recalculate each slice (from some comments in the code I suspect there were some problems with floating point error accumulating).
...
Increase the number of divisions to 128, so division is just an exponent change and won't cause floating point error
a little tidying
2023-11-22 11:32:32 -07:00
JoePfeiffer
ff6b23f366
merge integrateInertiaVolume() into integrate()
2023-11-21 16:40:57 -07:00
JoePfeiffer
4b1c6a4f4b
eliminate SymmetricComponent::integrateInertiaSurface()
...
Previously, the code calculated the volume of a component, and if that volume was too small calculated its moments of inertia based on the surface instead of the volume. The decision wasn't based on the thickness of the shell (which might have made sense to me), it was the actual volume. The result is any really small component had its moments of inertia calculated using this surface method, no matter how "solid" the object was.
The cause of #2403 was that this method was used to calculate the moments of inertia in the .ork that failed, but the actual CG was used in the parallel axis theorem. This put the CG in a different place than a "surface CG" would have, so the longitudinal moment of inertia ended up less than 0 triggering the crash.
Now, if a component is so small that's volume is 0 it is assumed its contribution to moment of inertia must also be negligible, so the moments of inertia are set to 0 in this case.
2023-11-21 16:01:41 -07:00
JoePfeiffer
9fec2af7a8
Use Double.NaN to identify values that haven't been calculated. Spotting uncalculated values by checking for <0 is just asking for trouble down the line.
2023-11-21 15:54:35 -07:00
SiboVG
6e2d79e156
[ #2409 ] Don't use fixed precision for shape parameter
2023-11-21 00:45:23 +01:00
SiboVG
c6ecc5c035
Use meters->feet conversion for RASAero rod length
2023-11-21 00:31:36 +01:00
SiboVG
8f4ccd747a
[ #2345 ] Reintroduce motor ignition delay optimization
2023-11-19 03:40:41 +01:00
SiboVG
e3b52efc84
Add message source to message
2023-11-19 01:43:05 +01:00
SiboVG
9c163fa551
Rename custom color class to ORColor
2023-11-19 00:47:55 +01:00