Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Mar 11, 2025

This PR fixes #2725.

Parallel booster staging example design:
image

Changed booster inner tube to 3-motor cluster:
image

No cluster and only one instance:
image


Note that there I discovered a bug while working on this (which was already present in 23.09). When opening the "Pods--powered with recovery deployment" example design, for the last flight config, the"A10-3" motor displayed as "217A10-3". The booster stage in that config has 2 A10-3 motors, which should display "2× A10-3". However, the '×' symbol is coded using Chars.TIMES (u00D7). In the motor config display code, there was this: count + Chars.TIMES + " " + motorData. But, since count is an integer, Chars.TIMES was also interpreted as an int (=215), instead of the '×' char. So you just did an integer sum... The solution was to force String summation: "" + count + Chars.TIMES + " " + motorData.

SiboVG added 4 commits March 11, 2025 01:09
…string addition

Previously, because count is an int, Chars.TIMES was interpreted as an int (215), so the formatted String would be e.g. 217A-3 instead of 2xA-3...
@neilweinstock
Copy link
Contributor

Thank you! You're on quite a roll lately.

@SiboVG
Copy link
Member Author

SiboVG commented Mar 11, 2025

Thank you! You're on quite a roll lately.

I have a paradoxical way of life; I'm very busy at work, so I need more distraction. That's how I ended up joining OpenRocket in the first place, when I was doing my uni exams. Also, it took a while to finish #2738, so now that I'm "freed" from that, I can tackle smaller issues.

@JoePfeiffer JoePfeiffer merged commit ebe4418 into openrocket:unstable Mar 11, 2025
1 check passed
@SiboVG SiboVG deleted the issue-2725 branch March 11, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In motor config, report pod or booster motors with number of motors in the entire set

3 participants