NikolaiVChr / flightgear-saab-ja-37-viggen

Saab 37 Viggen for Flightgear flight simulator
http://wiki.flightgear.org/Saab_37_Viggen
GNU General Public License v2.0
26 stars 15 forks source link

missile.nas: Fix caged and locked seeker behaviour #148

Closed colingeniet closed 3 years ago

colingeniet commented 3 years ago

This fixes commandDir when the seeker is caged and locked (currently, it does nothing until the seeker loses lock).

In bore sight mode or slaved+commandDir mode, if the seeker is uncaged and locked, then re-caging it now resets the seeker to the bore-sight/commanded position (previously, it did not reset until lock was lost).

It also allows to have a manually controlled seeker through commandDir, which I want to use for the Rb 75 (previously, this would result in the seeker refusing to move when it has lock).

See commit message for details.

colingeniet commented 3 years ago

Thank you