2972 Commits

Author SHA1 Message Date
JoePfeiffer
7a2ede6e24 Use current atmospheric conditions, not previous conditions, in calculating thrust.
This lets us get rid of previousAtmosphericConditions completely.

Note that while we pass acceleration and atmospheric conditions into calculateAverageThrust(), we don't actually do anything with them there. They appear to be passed in for some sort of eventual enhancements when we do things like altitude compensation for motors, or acceleration for hybrids or water rockets.

It also turned out that while we called getPreviousAtmosphericConditions() when call ing calculateAverageThrust(), setPreviousAtmosphericConditions() was never called.
2023-09-26 14:46:09 -06:00
JoePfeiffer
65b36af180 cleaned up FlightEventsTest by
(1) creating a CompareEvents() method called by both testSingleStage() and testMultiStage() to get rid of duplicate code; also made creation of expected events in testSingleStage() cleaner

(2) tied required time accuracy of events that depend on one of the simulationsteppers to the simulation timestep. This also let us go back to testing time on all events.
2023-09-24 16:37:43 -06:00
JoePfeiffer
1b29a6b767 Testing time on events that are determined by simulation steppers shouldn't be
more precise than the simulation time step.
2023-09-23 14:23:59 -06:00
JoePfeiffer
faa7c03308 Make store persistent instead of creating a new one every step()
Use timestep remaining in store instead of getPreviousTimeStep() and setPreviousTimeStep()
2023-09-23 14:19:59 -06:00
Sibo Van Gool
f7b20a5df7
Merge pull request #2304 from SiboVG/issue-2204
[#2204] Make flight config naming substitution code more general + add "Cases" substitution
2023-08-27 00:48:15 +02:00
Sibo Van Gool
5eb6507401
Merge pull request #2305 from SiboVG/issue-2303
[#2303] Copy raw name from flight config
2023-08-25 11:43:00 +02:00
SiboVG
9ff699bcbc [#2303] Copy raw name from flight configf 2023-08-25 11:41:42 +02:00
SiboVG
93e0ae1dcb GRRRR, ASCII.... 2023-08-25 01:00:23 +02:00
SiboVG
db61dec547 Fix bug 2023-08-25 00:39:11 +02:00
SiboVG
eb549ceb19 Add extra unit tests for case flight config sub 2023-08-25 00:39:04 +02:00
SiboVG
41b6c87550 Add case info to test motors 2023-08-25 00:38:45 +02:00
SiboVG
2c750498bb Update rename dialog to include cases info 2023-08-25 00:04:06 +02:00
SiboVG
e72870c306 Eujj, add custom separator support :)) 2023-08-25 00:00:14 +02:00
SiboVG
ccffffa186 [#2204] Big rewrite of motor config substitutor to make it general + add cases 2023-08-24 23:34:18 +02:00
JoePfeiffer
f67f1f6e4c Remove capability to not compute and save "extra" simulation parameters 2023-08-19 10:14:16 -06:00
SiboVG
b1d0f8933b Auto-detect UI theme based on OS preference 2023-08-16 21:20:00 +02:00
Sibo Van Gool
e2993a68f9
Merge pull request #2261 from SiboVG/dark-theme
[#1089] Add dark mode theme & custom UI font size
2023-08-09 01:56:23 +02:00
Sibo Van Gool
6bc477f478
Merge pull request #2285 from SiboVG/issue-2283
[#2283] Apply radial positioning to non-single cluster
2023-08-08 02:06:26 +02:00
SiboVG
4cf787ec4a Fix unit tests due to bad Falcon9 example rocket 2023-08-04 13:05:58 +02:00
SiboVG
1745d9ea4e Slight reordering 2023-08-04 13:05:41 +02:00
SiboVG
8ff9c4bac3 Fix incorrect shoulder radius 2023-08-04 12:53:23 +02:00
SiboVG
734677ee8f [#2283] Apply radial positioning to non-single cluster 2023-08-04 12:40:15 +02:00
SiboVG
985e646df3 [#2282] Update shoulder diameter when transition diameter changes 2023-08-04 11:28:48 +02:00
Sibo Van Gool
596380203e
Merge pull request #2275 from SiboVG/apply-copy-sim
Big cleanup of simulation table actions
2023-07-31 15:47:50 +02:00
SiboVG
35a91b4654 Only check if radius is automatic 2023-07-30 00:02:56 +02:00
SiboVG
9183bde51e [#2276] Don't check for inline if grandparent is this component
This was a sneaky bug... Basically, if getAutoRadius was called on e.g. a body tube, which eventually ended in the `inline` call, and candidate.parent.parent was this component, then the getRadius method would cause an infinite loop (stackoverflow), because it calls getAutoRadius
2023-07-29 23:13:07 +02:00
SiboVG
86a71d5375 Merge branch 'unstable' into dark-theme 2023-07-29 03:33:49 +02:00
SiboVG
b7e007e1da Fix unit tests by "abstracting" getUITheme 2023-07-29 03:23:50 +02:00
SiboVG
af5bd3f7a1 Big cleanup of simulation actions 2023-07-28 00:43:35 +02:00
Sibo Van Gool
5bb71e8dde
Merge pull request #2271 from JoePfeiffer/fix-2239
If stage separation occurs before clearing launch rail, warn the user
2023-07-27 16:58:13 +02:00
Sibo Van Gool
b184c6bd3e
Merge pull request #2269 from SiboVG/issue-1970
[#1970] Add absolute inner tube separation option
2023-07-27 16:56:45 +02:00
Sibo Van Gool
ced2fb086e
Merge pull request #2272 from SiboVG/issue-2270
[#2270] Only check axial stages for upper stage, not boosters
2023-07-27 16:56:18 +02:00
SiboVG
e3a9786551 Allow for discontinuous row selection
No idea why this was once implemented
2023-07-26 12:13:49 +02:00
Sibo Van Gool
bb97ce6987
Merge pull request #2266 from SiboVG/simulation-copy-val
Include simulation headers in clipboard copy + add to context menu
2023-07-24 15:20:05 +02:00
SiboVG
a7673fd293 [#2270] Only check axial stages for upper stage, not boosters 2023-07-24 11:05:43 +02:00
JoePfeiffer
e7f92bf349 If stage separation occurs before clearing launch rail, warn the user 2023-07-23 19:41:55 -06:00
Joe Pfeiffer
d2bb552807
Merge pull request #2236 from SiboVG/issue-2225
[#2225] Copy simulation data from sustainer to other stages for CSV exporting
2023-07-23 08:51:49 -06:00
SiboVG
438adb14ef [#1970] Add absolute inner tube separation option
Co-authored-by: jura0207 <jv51207@fer.hr>
2023-07-23 15:52:18 +02:00
Sibo Van Gool
9c0466d543
Whoops, remove rocket dump 2023-07-23 15:37:15 +02:00
SiboVG
84ff186d39 Update unit tests 2023-07-23 02:53:26 +02:00
SiboVG
b6235a1630 Don't copy flight events of child boosters 2023-07-23 02:53:19 +02:00
SiboVG
e9146a35d4 Move flight data secondary data copying to constructor 2023-07-23 02:18:33 +02:00
SiboVG
b6a79dfb18 Check for nose cone base radius for massObject auto radius 2023-07-22 02:14:03 +02:00
SiboVG
3120b2d968 Include simulation headers in clipboard copy + add to context menu 2023-07-22 01:46:07 +02:00
SiboVG
70e678e990 Merge branch 'unstable' into issue-2225 2023-07-18 02:35:05 +02:00
Joe Pfeiffer
81ea69d489
Merge pull request #2257 from SiboVG/ask-metadata
Open dialog to save design information when saving the file
2023-07-17 18:29:29 -06:00
Joe Pfeiffer
f691066145
Merge pull request #2253 from JoePfeiffer/fix-2196
Check for 0 mass when running simulation
2023-07-17 18:26:10 -06:00
Joe Pfeiffer
4e982f7cd7
Merge pull request #2248 from JoePfeiffer/fix-2247
Use MassObject API to set parachute length, radius from preset
2023-07-17 18:25:42 -06:00
Sibo Van Gool
875a2b775a
Merge pull request #2250 from SiboVG/issue-2244
[#2244 & #2249] Copy default sep config instead of creating new one
2023-07-18 00:49:30 +02:00
SiboVG
4603648de3 Include unstaged files 2023-07-16 02:19:14 +02:00