SiboVG
e9bc8d1dd1
Add unit tests for flight events pt.2
2022-10-17 17:56:40 +02:00
SiboVG
6c97dc8440
Merge branch 'unstable' into issue-1621
2022-10-17 17:30:20 +02:00
luz paz
74567708a8
Fix various typos
...
Found via `codespell -q 3 -S ./swing,./**/l10n,*.eps -L bu,cant,cna,fo,gool,iif,reencode,wallthickness`
2022-10-15 14:32:21 -04:00
SiboVG
46c7deacb1
Add unit tests for mass object auto radius
2022-10-09 20:16:49 +02:00
SiboVG
7be9dc238a
Add unit tests for flight events
2022-09-28 13:12:57 +02:00
SiboVG
df9ffd1550
Merge branch 'unstable' into issue-1621
2022-09-28 12:42:55 +02:00
SiboVG
b5e7515f63
Remove unnecessary simulation listener
2022-09-28 12:36:19 +02:00
Sibo Van Gool
4cf85fe6f2
Merge branch 'unstable' into issue-1680
2022-09-27 10:52:11 +02:00
SiboVG
d9af73582e
Add unit tests for axial stage disabling
2022-09-24 21:22:43 +02:00
SiboVG
bbbf0be15b
Fix cheating unit test ;)
...
Booster D should have stage number 4, not 3 as it was previously
2022-09-24 20:50:25 +02:00
SiboVG
cf7238c128
Add empty stage unit tests for mass calc
2022-09-23 19:51:53 +02:00
SiboVG
9d8ca907bb
Add unit tests for simulating empty stages
2022-09-23 02:43:02 +02:00
SiboVG
948d655cf2
Increase error margin for DisableStageTest
2022-09-13 10:43:43 +02:00
JoePfeiffer
94bc305ccb
Allow user to turn off CD override for subcomponents
2022-08-30 11:31:55 -06:00
JoePfeiffer
1a1e5b2e62
Changed name of "OverrideSubcomponents" to "SubcomponentsOverridden" to improve method name generated by BooleanModel. isSubcomponentsOverridden() is like fingernails on a blackboard, but it's not as bad as isOverrideSubcomponents().
...
Added CD override logic to RocketComponent.java
2022-08-30 09:57:39 -06:00
SiboVG
735057b4c6
Improved DisableStageTest
2022-08-23 21:26:44 +02:00
SiboVG
e7ab5601e8
Increase test error margin
...
Still sometimes a failed test due to this
2022-08-23 16:08:47 +02:00
SiboVG
9a59575424
Update unit tests
...
Because simulations are not exact, the sim results can vary, which causes unittests to fail sporadically. So increase the error margin...
2022-07-23 15:15:18 +02:00
SiboVG
42a49a0aac
Add unit tests for disabling stages
2022-06-26 01:14:27 +02:00
SiboVG
6b23576c34
Fix unit tests
...
Because of the new behavior 'disable sub-stages when parent stage is disabled', some unit tests needed to be rewritten
2022-06-26 00:00:44 +02:00
SiboVG
88e343a30c
Update unit tests
2022-06-25 01:26:05 +02:00
SiboVG
027ed2eaa6
[ #1460 ] Exclude inactive stages in tbe simulation calculations
2022-06-25 00:55:31 +02:00
SiboVG
dd128c0ff0
Improve double to string rounding
...
The previous code was just a bit odd and non-standard + variable (and probably unefficient). Decided to replace it with standard Java functions instead.
2022-06-13 04:25:23 +02:00
SiboVG
92b7c5e6a9
Fix unit tests
...
The setRadius method is meant to set the total radius from the center of the parent, so not really like is implemented in the unit test...
2022-06-11 01:37:45 +02:00
SiboVG
1b9751562a
[ #1231 ] Split bounding box and length in aerodynamic and all
...
Some parts of the program need only the bounding box of aerodynamic parts (most parts of the program), but a couple others need the bounding box and length of all components
2022-06-08 22:14:19 +02:00
JoePfeiffer
6f0a6f4127
Refer to drag coefficient consistently as CD
2022-04-13 10:22:30 -06:00
Sibo Van Gool
ae1ccd8320
[ fixes #825 ] Implement dummy unit test
...
Whoops, apparently you can't just comment out everything...
2022-01-28 01:22:16 +01:00
Sibo Van Gool
ca813caa45
[ fixes #825 ] Comment out old update unit test
...
For now I'm just gonna comment this unit test out, I'm sorry. Implementing a unit test for the new system would cost me extra time and headaches...
2022-01-28 00:00:33 +01:00
Joe Pfeiffer
affcc8b51f
Merge pull request #869 from teyrana/fix/868/fin-tab-offset
...
[fixes #868 ] Fin tabs correctly adjust their location when the fin tab _length_ is changed.
2022-01-11 11:24:15 -07:00
JoePfeiffer
2e01115932
Create unit test for ellipsoidal nose cone pressure drag interpolation
2022-01-10 08:43:15 -07:00
Billy Olsen
f78b6326ee
Merge pull request #1049 from SiboVG/fix-typos
...
Fix typos in OR codebase
2021-12-27 11:54:55 -07:00
Robert Sammelson
3a28f3b585
Adjust unit tests
...
Fixes unit test errors by changing hardcoded values to the values the
new code outputs. The new code is believed to be correct so this should
be alright.
2021-11-04 14:13:25 -04:00
Sibo Van Gool
e3af87eee5
Fix typos in OR codebase
2021-10-17 18:03:18 +02:00
Joe Pfeiffer
185ce54ed0
Merge pull request #1015 from SiboVG/code_cleanup-1
...
[code_cleanup-1] Clean up using IntelliJ's 'Silent Code Cleanup'
2021-10-16 15:30:07 -06:00
JoePfeiffer
3d0396bc00
update unit tests to match new motor code (also fixed a couple bugs the
...
unittests turned up!)
2021-09-25 14:20:06 -06:00
Sibo Van Gool
08dc009412
[code_cleanup-1] Clean up using IntelliJ's 'Silent Code Cleanup'
2021-09-10 00:36:29 +02:00
Daniel_M_Williams
f481bb3707
[fix] adjusted the validation and update functions in 'FinSet' to better meet user's expectations
2021-08-15 09:20:54 -04:00
Daniel_M_Williams
ac96222964
[ fixes #868 ] Fin tabs correctly adjust their location when the fin tab _length_ is changed.
2021-08-14 16:01:03 -04:00
Sibo Van Gool
3f84149cb8
Updated unit tests to match new lug rotation
2021-06-26 15:23:50 -07:00
Billy Olsen
965311ff4e
FlightConfigurableParameterSet Predictable Orders
...
Change to use a LinkedHashMap instead of a HashMap in the
FlightConfigurableParameterSet. This ensures that the ordering is
consistent with the way the user added the flight configurations.
This will also be true for when reading the flight configurations from
a file. Additionally, to preserve the ordering, do not sort the
FlightConfigurationIds in getIds().
Fixes #845
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-06-04 20:48:34 -07:00
Billy Olsen
1962cfac4e
Fix FinSetTest.testTabLocation
...
Commit 936333a2 re-introduced the AxialMethod.ABSOLUTE as an offset
method but did not update the corresponding unit test. Add in the
expected offset value for AxialMethod.ABSOLUTE.
Fixes #931
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2021-06-02 19:52:35 -07:00
Billy Olsen
b248f74d5c
Fix TrapezoidFinSetTest
...
Commit 312e90 updated finset count and tests for FinSets but not
the TrapezoidFinSetTest.testMultiplicity()
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-19 19:34:52 -07:00
Billy Olsen
312e90b9f7
Restore default fin count to 3 for TrapezoidFinSet
...
TrapezoidFinSet fin count was reduced to 1 in previous commits in order
to fix a bug. The actual problem was that the instancecount was not
persisted in the ork file. This change restores the default to 3.
Fixes #850
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-19 13:04:58 -07:00
Daniel_M_Williams
c9d408a8ee
[ fix #801 ] eliminate redundant angle-offset property in LaunchLug component
2020-11-01 19:38:16 -05:00
Daniel_M_Williams
ccc8e4ab80
[ fixes #774 ] Override-component-mass works correctly on massive components
2020-10-15 10:28:08 -07:00
Daniel_M_Williams
a4e7f2175c
[ fixes #775 ] component override-CoM-x works correctly
...
mass calculations now correctly treat the center-of-mass offset as relative to the individual
component (whereas, previously, it was an absolute offset / relative to the center of the rocket)
2020-10-15 10:28:08 -07:00
JoePfeiffer
5e64b3e565
Correct FlightConfigurationTest to enable Stage 1 of Falcon9Heavy before using getActiveInstances() to obtain its component instances
2020-09-12 12:29:24 -06:00
JoePfeiffer
206ba58a7e
Modified MassCalculator unit test to test at nonzero ignition time
2020-09-09 17:10:29 -06:00
Daniel_M_Williams
bd09354fd3
[ fixes #755 ] Correctly calculates mass override (particularly on stages)
2020-09-02 22:33:39 -04:00
Daniel_M_Williams
5b94bedb5f
[ fixes #755 ] Correctly calculate cg.x override
2020-09-01 19:58:17 -04:00