JoePfeiffer
99bdf71ba8
In FinSetCalc.calculateFinGeometry(), make sure x coordinates of interections
...
between lines defining fins and strips being used to estimate geometry aren't beyond bounds of fin.
2020-08-17 17:39:08 -06:00
Daniel_M_Williams
a9afb829ef
[cleanup] cleans up some whitespace and redundant variables in FlightConfiguration
2020-08-16 14:34:22 -04:00
Daniel_M_Williams
8a14d98fcc
[ fixes #741 ] RailButtons will correctly identify their first parent BodyTube
2020-08-16 14:32:29 -04:00
Daniel_M_Williams
68927a0e53
[ fixes #740 ] Railbuttons now correctly load instance-separation
...
Actual fix: removed debugging / dev hard-coding. /facepalm
2020-08-14 19:29:24 -04:00
Daniel_M_Williams
eb197427f2
[fix] tightens up calculation of adjacent SymmetricComponents
2020-08-14 18:51:54 -04:00
Daniel_M_Williams
ac1d6b698a
[refactor] streamlined null checks in SymmetricComponent.get{Prev|Next}SymmetricComponent
2020-08-14 18:40:10 -04:00
Daniel_M_Williams
bbf9c4d8a4
[refactor] adjusted variable names in SymmetricComponent.get{Prev|Next}SymmetricComponent to be more obvious
2020-08-14 18:40:10 -04:00
Daniel_M_Williams
748a871e57
[fix] limits a FreeformFinSet maximum size to 2.5m x 2.5m. This prevents a stack-overflow while editing
2020-08-14 16:38:39 -04:00
Daniel Williams
b17d03138a
Merge pull request #731 from teyrana/fix/726-positioning
...
[Fixes #726 ] Fixes multiple issues when changing Fin-Offset-Methods
2020-08-08 11:25:26 -04:00
JoePfeiffer
23c39d5aef
Don't create new SimulationStatus on landing.
...
Makes consistent with BasicLandingStepper; more generally, if you don't need a more specialized derived from SimulationStatus (as is the case with RK4SimulationStepper), you don't need to create a new SimulationStatus when entering a new flight phase.
2020-08-06 14:19:33 -06:00
Daniel_M_Williams
aeae4b1e03
[refactor] ported reduce360 -> reduce2Pi. Because the units are in radians
2020-08-02 16:49:32 -04:00
Daniel_M_Williams
6efbe1e2ab
[refactor] ported reduce180 -> reducePi. Because the units are in radians
2020-08-02 16:49:32 -04:00
Daniel_M_Williams
dc9dc3ed63
[fix] Changing the AxialMethod on a RocketComponent now mantains the same position, but changes the internal offset
2020-08-02 16:24:59 -04:00
Daniel_M_Williams
4825c7a1ee
[fix][mass] Added a negative-mass check, which rarely happens during inconstitent component updates -- during scaling
2020-08-01 11:56:53 -04:00
Daniel_M_Williams
834f4763f5
[refactor][cleanup] condensed some code lines (mostly to silence a linter warning)
2020-08-01 11:56:06 -04:00
Billy Olsen
78a315409a
Check rocketBounds.isEmpty() rather than activeStages for length
...
When no components are added, a rocket is showing -INFINITY for the
length. This is because the special case for length 0 is checking for
active stages, instead check the rocketBounds.isEmpty() to see if any
bounds have been added.
Fixes #714
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-29 09:07:30 -07:00
JoePfeiffer
16d7ce7f1f
Fixes Issue #718
...
Reset rocket's relative position when its absolute position is reset.
Make sure rocket has lifted off before setting launch rod as cleared.
2020-07-27 11:59:25 -06:00
Billy Olsen
908e6359ff
Add BoxBounded interface to TubeFinSet
...
TubeFinSets cause rocket size within the panel to be a bit off. Add
the BoxBounded interface to provide a tight BoundingBox.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:28:54 -07:00
Daniel_M_Williams
ac7d606423
[fix] fixes rotation issues in TubeFinSet 2d rendering.
2020-07-25 18:28:54 -07:00
Billy Olsen
74ec0be340
Make TubeFinSet RingInstanceable
...
Make the TubeFinSet RingInstanceable. This change updates the rendering
of both the 2D and 3D views to handle the RingInstanceable shapes. This
also updates the DocumentConfig to parse the new XML formats properly.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-25 18:26:07 -07:00
Daniel_M_Williams
e9981aff28
[debug] removed excess debug output in FinSet
2020-07-19 11:30:54 -04:00
Daniel_M_Williams
69a338f440
[feat] Add a return value to BoundingBox.update(Coordinate)
2020-07-12 15:39:33 -04:00
Daniel_M_Williams
45fdb55dc4
[fix] prevents users from adjusting FreeformFins into intersecting (non-physical) positions
2020-07-12 15:39:24 -04:00
Daniel_M_Williams
358b3dc527
[fix] Added new BoundingBox tests; adjusted Falcon 9H Properties
2020-07-12 15:39:20 -04:00
Daniel_M_Williams
22160dbe5d
[refactor] BodyTube now implements the BoxBounded interface
2020-07-12 15:22:23 -04:00
Daniel_M_Williams
7b81f763c7
[refactor] ComponentAssembly components no longer have bounds -- it's calculated from individual components, on a per-instance basis.
2020-07-12 15:17:51 -04:00
Daniel_M_Williams
0a9df5cc64
[refactor] Refactored FlightConfiguration.calculateBounds to be clearer
2020-07-12 15:16:42 -04:00
Joe Pfeiffer
056c6b2b39
Merge pull request #688 from JoePfeiffer/fin-moi
...
fixes Fin MOI calculations
2020-07-11 11:33:48 -06:00
JoePfeiffer
e30eb4b523
clarify comments
2020-07-09 10:14:28 -06:00
JoePfeiffer
69e45029a2
Adjust expected unit test results to account for modified longitudinal MOI calculation
2020-07-08 14:36:28 -06:00
JoePfeiffer
e1f59d7dc8
bit more comment cleanup
2020-07-07 10:52:32 -06:00
JoePfeiffer
224e0ea3fd
In getLongitudinalUnitInertia(), modify so parallel axis theorem is only applied to Izz (yaw), not Iyy (pitch).
...
Modify code for getLongitudinalUnitInertia() and getRotationalUnitInertia() so similar functions have more similar code.
Add comments to clarify getLongitudinalUnitInertia() and getRotationalUnitInertia()
2020-07-06 19:16:55 -06:00
Daniel_M_Williams
53ec830919
[fix] made string -> hashcode conversion explicit, to placate IDE warnings
2020-07-04 12:42:37 -04:00
Daniel_M_Williams
9f5d4a2d27
[enable] Re-enables, fixes ComponentAnalysisDialog
2020-07-03 10:05:09 -04:00
JoePfeiffer
fc393d499e
[Fixes 679]
...
Remove extra multiplication by finCount in FinSet:getLongitudinalUnitInertia() and FinSet:getRotationalUnitInertia()
Restore check for single fin before transfering to center of fin set in FinSet:getRotationalUnitInertia()
2020-06-24 15:48:44 -06:00
Danylo
ce2d29cee0
Enhanced the javadoc of StringUtil's method and added a test.
...
I added parameter and return value desriptions for the method
StringUtil.isEmpty(String s).
Also, I added a test class StringUtilTest to test this method
(this method didn't have a test before).
2020-06-24 11:09:54 +03:00
Daniel Williams
43d6779e12
Merge pull request #658 from wolsen/snapcraft
...
Add snapcraft information for building snaps
2020-06-23 21:37:28 -04:00
Daniel_M_Williams
e1389f674a
[ fixes #681 ] Fires an change event if the motor-mount is {dis|en}abled on an InnerTube
2020-06-13 19:51:37 -07:00
Billy Olsen
3b16a68fb3
Use xdg-open on Linux Snaps to open PDFs for printing/previews
...
The Desktop.open() method does not work within a Snap confined
application because it uses gnome apis which are restricted or
only defined within the snap itself. The confined snaps allow
for xdg-open to open the default application to handle opening
the specified mime-type (application/pdf) for print previews and
printing.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Daniel_M_Williams
530744d4cc
[fix][simulation] Adds 2 warnings about fins on Phantom-Bodies
2020-05-22 16:17:26 -04:00
JoePfeiffer
bd866cec52
Create SimulationOptions.toString() method for debugging ease
2020-05-18 21:21:18 -06:00
Daniel_M_Williams
462a65bba3
[fix] SymmetricComponent.getNextSymmetricComponent() now handles PodSets
2020-05-16 11:31:16 -04:00
Daniel_M_Williams
ce6a6fa2e3
[ fixes #666 ] Find SymmetricComponent.PreviousSymmetricComponent now handles PodSets correctly.
2020-05-16 11:26:27 -04:00
Daniel_M_Williams
e400c8aeac
[fix] fixed typo in documentation
2020-05-15 19:55:54 -04:00
Daniel_M_Williams
3f0a5b1780
[fix] Fin tabs are now more resistant to non-physical / error states
2020-05-10 18:38:41 -07:00
Daniel_M_Williams
7886712321
[fix] Fins now render with tabs
2020-05-10 18:38:41 -07:00
Daniel Williams
90173c38a2
Merge pull request #657 from JoePfeiffer/fix-654
...
Pin CP to axis (Fix 654)
2020-05-08 11:02:16 -04:00
Daniel Williams
5e264c8604
Merge pull request #649 from teyrana/641-fix-cg
...
[fixes #641 ] MassCalculator now accounts for rotations in the tree
2020-05-07 18:32:29 -04:00
Daniel Williams
83ce19cac4
Merge pull request #647 from teyrana/645-fix-auto-radius
...
[Fixes #645 ] fix auto radius calculation on Symmetric Components
2020-05-07 18:31:48 -04:00
Daniel_M_Williams
61b6fc107f
[fix] fixes MIN_MASS check in MassCalculator
2020-05-07 18:09:53 -04:00