5H1N0B11 / flightgear-mirage2000

GNU General Public License v3.0
20 stars 16 forks source link

Canvas radar prototype #88

Closed paccalin closed 4 years ago

paccalin commented 4 years ago

Implementation & integration of a closing speed indicator for the current locked target in the HUD. resolves #87

AxelPaccalin commented 4 years ago

The closing range is now computed via polar coordinates, angles and linear speed. clos_kts_upd

This gives a much more stable speed than the old method of derivating the relative range.

I couldn't find any way to get the velocity angles for the target aircraft. Due to this fact, I am using the attitude angles and have disabled vertical speed computation (to avoid inconsistent speed for high AOA). The code for vertical speed is available (but disabled) in the AIContact.nas:get_closure_speed() member.

AxelPaccalin commented 4 years ago

There is now a chexkbox in the "option" menu to toggle the closing speed indicator on the hud (disabled by default). clos_toggle

AxelPaccalin commented 4 years ago

Should be ready for review!