2867 Commits

Author SHA1 Message Date
Daniel_M_Williams
6e2ab642e5 [fix] fixes variable name typo in FinPointFigure 2020-07-12 15:39:33 -04:00
Daniel_M_Williams
7c20b64135 [fix] fixed stack overflow in RocketFigure 2020-07-12 15:39:33 -04:00
Daniel_M_Williams
04476ecc98 [fix][refactor] Fixes and simplifies the bounds calculations in FinPointFigure 2020-07-12 15:39:33 -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
3d9938640f [whitespace] harmonized mixed spaces + tabs => tabs 2020-07-12 15:39:32 -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 Williams
123732a878
Merge pull request #691 from teyrana/fix/doc
[fix] made string -> hashcode conversion explicit, to placate IDE warnings
2020-07-04 12:43:13 -04:00
Daniel_M_Williams
53ec830919 [fix] made string -> hashcode conversion explicit, to placate IDE warnings 2020-07-04 12:42:37 -04:00
Daniel Williams
673a246b8b
Merge pull request #690 from teyrana/hotfix
[fix] removes excess debugging lines from PR #676
2020-07-04 12:31:24 -04:00
Daniel_M_Williams
c0541386b6 [fix] removes excess debugging lines from PR #676 2020-07-04 12:29:53 -04:00
Daniel Williams
8c129dcc10
Merge pull request #676 from teyrana/509-fix-component-analysis
[fixes #509] Fix Component Analysis Dialog
2020-07-04 12:28:12 -04:00
Daniel_M_Williams
9f5d4a2d27 [enable] Re-enables, fixes ComponentAnalysisDialog 2020-07-03 10:05:09 -04:00
JoePfeiffer
87c26cccf4 Modified unit test expected results to match corrected fin MOI.
testAlphaIIIStructure
    Three fins in finset, so Ixx and Iyy are reduced by a factor of 3
    Ixx reduced from 5.2771946530250825E-5 to 1.7590648843416942E-5
    Iyy reduced from 1.3580770106050167E-4 to 4.526923368683389E-5

    Total rocket MOI changed to Ir=1.8763734635622462E-5 and
    It=2.1238394331365588E-4

testFalcon9HComponentMOI
    Three fins in finset, so
    finset rotational MOI  changed from 0.00413298 to 0.001377661595723823
    finset longitudinal MOI changed from 0.01215133 to 0.004050443797127646

testFalcon9HeavyBoosterLaunchMOIs
    Two finsets, each three fins.  Each finset's MOI are reduced as in
    testFalcon9HComponentMOI, resulting in change to totals
    Ir=0.013480523485489424, It=0.07017476021288252

testFalcon9HeavyBoosterSpentMOIs
    Two finsets, each three fins, as above
    Ir=0.010420016485489425, It=0.06398514917026163

testFalcon9HeavyBoosterStageMassOverride
    Two finsets, each three fins, as above
    Ir=0.007100144485489424, It=16.030625168315694

testFalcon9HeavyComponentCMxOverride
    Two finsets, each three fins, as above
    Ir=0.007100144485489424, It=0.047289449862727435

testFalcon9HeavyComponentMassOverride
    Two finsets, each three fins, as above
    Ir=0.026027963480146098, It=0.35928666329363634
2020-06-29 15:02:34 -06:00
Daniel Williams
2685702b66
Merge pull request #687 from DanielLyi/unstable
Enhanced the javadoc of StringUtil's method and added a test.
2020-06-24 18:32:52 -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 Williams
37dac70a50
Merge pull request #685 from teyrana/fix/scaling-exception
[cleanup][debug] removed excess debug statement in `AbstractScaleFigure.scaleTo`
2020-06-21 15:06:17 -04:00
Daniel_M_Williams
5fea421dbf [debug] removed excess debug statement in AbstractScaleFigure.scaleTo 2020-06-21 11:52:30 -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
111b549a35 Add gcc as a build-package
Adds gcc as a build package to work around a recently introduced
snapcraft bug (https://bugs.launchpad.net/snapcraft/+bug/1883392) which
causes the snap to fail to build due to not having gcc for the gnome
extensions.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
9666c4137b Do not show graphics editor options from snap
Gracefully handle the graphics editor options when running
from within a snap. When running in snap confinement, the graphics
editor option in the preferences panel is removed and edits to an
existing decal will use xdg-open, allowing the user to select the
appropriate application for editing using the system options.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -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
Billy Olsen
ed2f2cbf0a Add plugs to allow user to access ~/.java and ~/.openrocket
Add plugs which use the personal-files interface for snaps to allow
the users to enable OpenRocket to access the ~/.java and ~/.openrocket
directories. Currently, these must be manually connected by the user,
so the launcher is updated to ensure the user experience degrades
appropriately when they are not connected.

This method allows for new installations to OpenRocket without any
changes and for users migrating to the snap from the jar to be able
to connect their existing preferences and databases.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
38ca68fd3c Remove wget as a build dependency
Removes wget as a build dependency. Its not really needed and was
included in error.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
695ce2948f Fix user preferences location for snaps
Fix the user preferences location for snaps to go to the user's snap
directory $SNAP_USER_COMMON, which stores data across multiple versions
of the snap.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
de741793fa Add snapcraft information for building snaps
Snaps are a universal packaging format for Linux platforms
and is available for most major Linux distributions.

This commit adds support for building OpenRocket as a snap. The
snap convention is to place snap relevant information in the top
level snap directory. The snapcraft.yaml file provides information
regarding what should be in the snap and how to build it.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Daniel Williams
c26dd8cb61
Merge pull request #678 from wolsen/issue/677
Check to see if column index is valid
2020-06-12 19:15:01 -04:00
Billy Olsen
cb11d18aaf Check to see if column index is valid
Check to see if column index returned from the FlightConfigurationTable
model is referencing a valid column before getting the column data.
Additionally, the FlightConfigurationTableModel was not adequately
accounting for the FCID table column when returning the column.

Fixes #677

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-09 20:38:24 -07:00
Daniel Williams
6920500847
Merge pull request #675 from yasunari89/fix-README-typo
Fix typo in README.md
2020-06-01 21:28:43 -04:00
yasunari89
0d8be9cd62 fix typo in README 2020-06-01 08:49:08 +09:00
Daniel Williams
94a9775929
Merge pull request #674 from teyrana/524-recovery-device-update
[fixes #524][ui] Recovery Devices update their name in the 'Recovery' tab
2020-05-31 00:28:22 -04:00
Daniel_M_Williams
31b2f8b8be [fix 524][ui] Recovery Devices update their name in the 'Recovery' tab 2020-05-24 20:04:11 -04:00
Daniel Williams
16300941c7
Merge pull request #665 from wolsen/add-print-progress-dialog
[Fixes 637] Update print dialog to allow simulation control
2020-05-24 13:46:33 -04:00
Billy Olsen
b673a591f2 Update print dialog to allow simulation control
Updates the print dialog to allow for simulations to be re-run
or not. Selecting the "Update simulation data" checkbox will
re-run any out of date simulations prior to generating the
design report.

Fixes #637

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-05-23 15:41:44 -07:00
Joe Pfeiffer
289e0cb4bb
Merge pull request #670 from teyrana/571-fin-phantom-body-message
[Resolve #571] Add message fins-on-phantom-bodies
2020-05-22 16:35:50 -06:00
Daniel_M_Williams
530744d4cc [fix][simulation] Adds 2 warnings about fins on Phantom-Bodies 2020-05-22 16:17:26 -04:00
JoePfeiffer
228df78fd4 If a FlightConfiguration has an existing simulation, use it to update
the data in the RocketPanel
2020-05-20 09:37:48 -06:00
JoePfeiffer
bd866cec52 Create SimulationOptions.toString() method for debugging ease 2020-05-18 21:21:18 -06:00
Daniel Williams
93e34c47d8
Merge pull request #669 from teyrana/666-fix-oob
Resolves #666 -- fix the "Exception loading stream" error while loading certain rockets.
2020-05-17 18:44:06 -04:00
Daniel_M_Williams
462a65bba3 [fix] SymmetricComponent.getNextSymmetricComponent() now handles PodSets 2020-05-16 11:31:16 -04:00