VOR - alesskerbinek/FlightSimPanel GitHub Wiki

General

The purpose of this unit is to simulate the VOR/LOC receivers like:

Features

No Type Item Function
2x input Rotary Encoders with push button Frequency and OBS
1x input Pushbutton Switch
4x output 3 Digit 7-segment display Active and Standby frequency

Functional description

Left two 3 Digit 7-segment display are used for showing active frequency and right two for standby frequency. The frequency is shown in MMM.KK format (three digits for MHz section and two digits for kHz section). This makes two unused digits.

Right rotary changes stand by frequency, clicking changes between MHz and kHz sections.

Left rotary changes OBS setting and momentarily shows OBS value instead of standy frequency. Clicking left rotary toggles between OBS and stand by frequency display. After timeout (2s) standby frequency is shown again (or maybe not??). If rotating right rotary while OBS value displayed, show standby frequency instead.

Or maybe the left rotary press toggles between OBS and heading bug setting mode? After 2s of inactivity, the unit goes back to OBS mode. The issue here is that we don't have an indication of current mode. Maybe the idea of showing OBS/BUG value on display is not that bad after all.

Right rotary long press turns unit on/off.

Used DataRefs and Commands

Unit Type Direction String Function
VOR 1 Command Write sim/radios/stby_nav1_coarse_up Increase standby frequency MHz
VOR 1 Command Write sim/radios/stby_nav1_coarse_down Decrease standby frequency MHz
VOR 1 Command Write sim/radios/stby_nav1_fine_up Increase standby frequency kHz
VOR 1 Command Write sim/radios/stby_nav1_fine_down Decrease standby frequency kHz
VOR 1 Command Write sim/radios/obs1_up Increase OBS for 1 degree
VOR 1 Command Write sim/radios/obs1_down Decrease OBS for 1 degree
VOR 1 Command Write sim/radios/nav1_standy_flip Flip active and standby frequency
VOR 2 Command Write sim/radios/stby_nav2_coarse_up Increase standby frequency MHz
VOR 2 Command Write sim/radios/stby_nav2_coarse_down Decrease standby frequency MHz
VOR 2 Command Write sim/radios/stby_nav2_fine_up Increase standby frequency kHz
VOR 2 Command Write sim/radios/stby_nav2_fine_down Decrease standby frequency kHz
VOR 2 Command Write sim/radios/obs2_up Increase OBS for 1 degree
VOR 2 Command Write sim/radios/obs2_down Decrease OBS for 1 degree
VOR 2 Command Write sim/radios/nav2_standy_flip Flip active and standby frequency
VOR 1 & 2 Data Read 97 NAV 1 & NAV 2 frequency
VOR 1 & 2 Data Read 98 NAV 1 & NAV 2 omni-bearing selector
VOR 1 & 2 DataRef Read sim/cockpit/autopilot/heading Change HSI heading bug