2592 Commits

Author SHA1 Message Date
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
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
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
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
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 Williams
a1a777266b
Merge pull request #664 from wolsen/619-fix-graphics-launcher-osx
Use the open -a prefix to commands on OSX
2020-05-12 22:43:12 -04:00
Billy Olsen
e0982935e1 Use the open -a prefix to commands on OSX
On the OSX platform, the command editor needs to open the program
with using the 'open' command.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-05-10 19:23:09 -07:00
Joe Pfeiffer
4eab059b1b
Merge pull request #661 from teyrana/fix-spelling
[fix][i10n] Adjusts Labels for add-component buttons: Stage, Booster, Pods
2020-05-10 19:57:38 -06: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_M_Williams
7046d02bae [cleanup] cleans up extra debugging from RocketRenderer, also fixed whitespace 2020-05-10 18:38:41 -07:00
Daniel_M_Williams
dd277b3702 [fix][i10n] Adjusts Labels for multiple add-component-buttons 2020-05-09 18:39:36 -04:00
Daniel Williams
800101e6bb
Merge pull request #659 from teyrana/643-fix-button-formatting
[ui] Moves new assembly buttons to their own row in the New Component panel.
2020-05-09 18:25:56 -04:00
Daniel_M_Williams
bcc5d6bcf8 [fix] Scale Rocket now scales the radial distance of pods & p-stages 2020-05-09 13:33:40 -07:00
Daniel Williams
247bbbc6fc
Merge pull request #660 from teyrana/656-fix-button-render
[fixes #656] Rail Buttons now properly display in 2d side views
2020-05-09 15:20:55 -04:00
Daniel_M_Williams
5c3ce2ec5e [cleanup] removed unnecessary debug lines 2020-05-09 15:20:10 -04:00
Daniel Williams
7fd14ac14b
Merge pull request #636 from wolsen/update-icons
Update icons for Tube Fins and Rail Buttons
2020-05-09 10:27:41 -04:00
Billy Olsen
680f6d8e64 Update rail button and tube fin icons for transparency
Update the transparency of the exported icons so there isn't a white
background clashing with the button color. Additionally, the tube fin
and rail button small icons were updated to be more in line with other
icons.

The tube fin is bigger and has the body tube showing like other
fin small icons.

The rail button works better in a side profile rather
than an offset profile.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-05-08 20:51:28 -07:00
Daniel_M_Williams
4ba395ac77 [fix] Rail Buttons now properly display in 2d side views (when the rocket is rotated 2020-05-08 17:35:32 -04:00
Daniel_M_Williams
1c540a8252 [ui] Adjusted spacing of new stage buttons 2020-05-08 13:04:21 -04:00
Daniel Williams
deed818fd3
Merge pull request #655 from teyrana/show-cp-y
[fix] 2D Rocket Figure will now display off-axis CoM and CoP
2020-05-08 11:02:59 -04: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
Daniel_M_Williams
ac6ae0b440 [fix] 2D display of Cg and Cp values now respects the rotation slider 2020-05-07 17:47:56 -04:00
JoePfeiffer
f0e5902e00 Pin CP to axis when calculating in BarrowmanCalculator.calculateNonAxialForces()
It turns out that the assumption of radial symmetry is absolutely pervasive in our CP calculations.  Looking at FinSetCalc.calculateNonAxialForces(), we don't actually compute the CP of a fin -- we calculate its X value, and pin it to Y=Z=0.

The only exception to this is in BarrowmanCalculator.calculateNonAxialForces(), where the pinning only takes place if there are three or more fins in a FinSet.  If we remove the test for number of fins in the FinSet, we are in essence making the assumption that there are more fins *somewhere* which will end up being radially symmetric.
2020-05-06 16:57:04 -06:00
JoePfeiffer
73dd6b7e7a Dead code. Method's only occurrence in the source tree is this definition. 2020-05-06 16:12:47 -06:00