Closed wlbragg closed 4 years ago
@wlbragg yes, I can reproduce this. But I suspect this bug has always been present. Neither magneto-switch.xml
nor FGDATA's controls.nas
have changed in the last 2 years. I think we just did not realise it before, probably because using the s
shortcut is so handy, or because by doing the proper pre-flight checks the magnetos would be at BOTH before ignition, or because we would use the mouse wheel to change it to BOTH before starting.
But I agree that this shouldn't happen. Even though the key moves instantaneously from OFF to START, in RL it would need to cross the BOTH position. I suspect this is some issue with the logic in the magneto-switch.xml
but I did not spot what is wrong after a quick look. Needs more investigation I guess.
@gilbertohasnofb yeah, looking at the start pick code above it's a simple matter of setting mag = 2 when the "start" pick is used. I'll make the change if you want to test an merge to master and I guess pick it to current version and then we can notify Stuart on the list to see if he wants to pick it anywhere.
Yeah sure, open a PR and I will merge it. Do you think this is serious enough to bother Stuart with another cherry-pick? I guess probably yes if users use the mouse to turn the aircraft on.
I'm not sure what changed or why but the issue is if you use the interior view keyed ignition to start the aircraft it fails if you mouse over the "start" hot spot without first clicking on mag 1 and 2 .I don't think this used to be this way and I don't know that we changed any of the code in Models/Interior/Panel/Instruments/magneto-switch/magneto-switch.xml to cause this behavior. Auto start still works and if you first set up the aircraft systems for startup appropriately then the "s" key start still works.
Or it may be a change in fgdata/Nasal/controls.nas