BDArmory
BDArmory copied to clipboard
Incorrect missile turret aiming behaviour with constrained rotation
ISSUE TYPE
- Bug Report (Something is broken)
KSP and BDA Version
KSP 1.5.1
BDA 1.2.3.0
OS / ENVIRONMENT
Windows 10
SUMMARY
Missile turrets behave incorrectly under certain conditions when their yaw range is constrained through the provided editor tweakable slider. These conditions may be related to the missile turret facing backward.
STEPS TO REPRODUCE
Launch the attached test craft. This craft contains a missile turret pointing backwards and a few other supporting parts. In the weapon manager dialog, select one of the types of missiles. The missile turret should now be controlled by the mouse. Aim the missile turret to the left and slightly forward (around 10 o'clock) of the vessel. The turret should respond correctly. Try to aim the missile turret to the right and slightly forward (around 2 o'clock) of the vessel. The turret will not correctly follow the mouse; instead, it will point directly backward (presumably in its idle orientation) when commanded to point in such a direction. The missile turret behaves normally when pointing to the right and slightly backward, such as when commanded to point to the 4 o'clock direction.
Very similar behaviour occurs when missile turrets are slaved to sensors that command aimpoints with characteristics that cause the bug when manually commanded. Sensors and two missile types are included on the test craft to help test various cases.
Aiming in various directions with this craft, specifically first aiming toward 4 o'clock and then quickly aiming toward 11 o'clock, will also show that the missile turret will sometimes rotate outside its allowed yaw range to get to the direction it is seeking. Especially when guard mode is active, this can result in problems such as missiles being fired into one's own vessel despite yaw limits having been set to prevent such events.
Log Files
Thank you for the report and the demonstrator. We'll get it fixed.