-
-
Notifications
You must be signed in to change notification settings - Fork 532
[#2090] Add plugged option to charge delay combobox if it wasn't present yet #2091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
In that case I would change the text to "Plugged", because that is the primary description of the option in the pull-down selector. |
|
While we're here, should we also put in a bit of text that says you can type a custom value into the combo box as well? |
Yes. Aerotech and CTI high power motors all have a procedure to shorten the delay time, so it can be virtually anything the user wants. |
|
I was just doing some experimenting with this in 22.02 and found that for motors that offer a plugged option, you can't select it! Try selecting an Estes A10-P; it immediately reverts to A10-0. I was also surprised to see that for the A10, the -P option was shown as "Plugged (none)". I thought we were going to leave it at -P, since that is the way the motor is sold. In other words, the behavior I expected was:
And of course, in case 1, it should actually allow you to select -P. :) |
|
Functions as expected, no anomalous behavior found. OR Build: 1587 |
See my first post, that is fixed in this PR. |
I don't know if it's a good idea to have two separate plugged naming for the same functionality, may just confuse users. From the perspective of a user, they also don't care if the plugged option comes from the manufacturer, or from us. What if we change the naming for all scenarios to "-P (Plugged)"? |
Whoops sorry, failed to read the text below the screengrab.
I disagree with this; the distinction is real and relevant. It is useful to know if a plugged version is commercially available, vs. if it's something I'll need to to myself. To be fair this only applies to a relatively small set of motors. I will also note that we've had this distinction since forever, and the only problem we've had is that folks didn't realize you could type "none" to create a plugged version of any motor, and we're fixing that now. Of course, the fact that we've been doing it this way is not necessarily a compelling argument to continue.
My vote is to retain the existing distinction: -P when the option is in the motor file, and plugged (none) or none (plugged) or whatever when it's an option that we're adding ourselves. I don't feel extremely strongly about it, though, and will go with consensus. What say you, @JoePfeiffer and @hcraigmiller and @wolsen? |
|
For our purposes, I think it's better to not have the distinction. In addition to whether or not a motor is sold as plugged, we've also got the ones for which plugging is such a routine, manufacturer authorized procedure that it might as well have the option of being sold that way (pretty much all medium and high power motors except the really big ones) vs. motors that users can plug in violation of the safety code (black powder with a -0 delay). What matters to us is just what the delay is, not how it got that way. Would the text entry prompt be clearer if it said "(or you can type in a desired delay in seconds)"? |
|
I can go along with that, and I like that wording for the text entry prompt. |
|
I decided on a shorter version of Joe's suggestion, "(or type in a desired delay in seconds)", because otherwise the width of the combobox would become too wide. I can make the combobox width independent of the info text length, but I kinda like that they're the same width, makes it more obvious that they belong together. |
|
I think you can shorten it even a bit more to "or type in desired delay in seconds" (get rid of "a"). Shorter and also better. |
|
Functions as expected, no anomalous behavior found. OR Build: 1589 |
Done. |
|
Functions as expected, no anomalous behavior found. Once this is merged, the motors on a few examples will need to be tweaked. OR Build: 1596 |
|
One more thing -- the plugged ejection charge delay should not appear until a motor is selected (just as the thrust curve selector doesn't). |
|
Unexpected behavior. It only allows changes in the default delay if there are more than one thrust curves to choose from. Functions as expected, no anomalous behavior found. OR Build: 1608 |
Wow, sorry wasn't really paying attention, thanks for catching it, should be fixed now. |
|
Functions as expected, no anomalous behavior found. OR Build: 1609 |




This PR fixes #2090. Every motor now has the plugged option. Neil mentioned in #2090 to remove the explanatory text below the combo box, but I would prefer to leave it in.
Screen.Recording.2023-03-01.at.03.52.39.mov
I also noticed an issue due to us changing the name from "None" to "Plugged (None)": selecting the plugged option in the combobox would not change the combobox text, it would still be stuck at e.g. "0". It was not only a display issue, the actual ejection delay would also not change. The issue was caused by an old translation key that still read "None" and was called when a combobox item was selected. Anyways, this PR fixes that.