Skip to content

Commit

Permalink
Update TU-154 config file
Browse files Browse the repository at this point in the history
Signed-off-by: norberttak <[email protected]>
  • Loading branch information
norberttak committed Jul 15, 2022
1 parent c98cbbf commit c4180c9
Showing 1 changed file with 138 additions and 9 deletions.
147 changes: 138 additions & 9 deletions config/tu154/xpanel.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
; You should have received a copy of the GNU General Public License
; along with this program. If not, see <https://www.gnu.org/licenses/>.

;log_level="TRACE"
;script_file="tu154-script.lua"
log_level="TRACE"
script_file="tu154-script.lua"
aircraft_acf="tu154.acf"

[device:id="aurduino_homecockpit"]
Expand Down Expand Up @@ -140,9 +140,9 @@ on_push="commandref:sim/flight_controls/flaps_down:once"

;Vertical speed dial on ABSU
[button:id="TRIM_WHEEL_UP"]
on_push="dataref:sim/custom/switchers/console/absu_pitch_wheel:+0.8:15.0:-15.0"
on_push="dataref:sim/custom/switchers/console/absu_pitch_wheel:+0.4:100:-100"
[button:id="TRIM_WHEEL_DOWN"]
on_push="dataref:sim/custom/switchers/console/absu_pitch_wheel:-0.8:15.0:-15.0"
on_push="dataref:sim/custom/switchers/console/absu_pitch_wheel:-0.4:100:-100"

[light:id="ALT_L"]
trigger_lit="dataref:sim/custom/lights/button/absu_stab_h:1"
Expand Down Expand Up @@ -178,13 +178,142 @@ line="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm"

[multi_display:id="MULTI_DISPLAY_DOWN"]
line="on_select:SW_ALT,dataref:sim/custom/gauges/compas/pkp_helper_course_L"
line="on_select:SW_VS,dataref:sim/custom/gauges/compas/pkp_helper_course_L"
line="on_select:SW_CRS,dataref:sim/custom/gauges/compas/pkp_obs_L"

[button:id="KNOB_PLUS"]
on_push="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm:1:0:359"
;dynamic_speed="t_low=0.3x2,t_high=0.2x4"
on_push="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:-1:361"
on_push="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm:1:0:361"
on_push="on_select:SW_CRS,dataref:sim/custom/gauges/compas/pkp_obs_knob_L:1:0:361"

[button:id="KNOB_MINUS"]
on_push="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L:-1:0:359"
on_push="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm:-1:0:359"
;dynamic_speed="t_low=0.3x2,t_high=0.2x4"
on_push="on_select:SW_HDG,dataref:sim/custom/gauges/compas/pkp_helper_course_L:-1:-1:361"
on_push="on_select:SW_CRS,dataref:sim/cockpit/radios/nav1_obs_degm:-1:0:361"
on_push="on_select:SW_CRS,dataref:sim/custom/gauges/compas/pkp_obs_knob_L:-1:0:361"

;---------------------- Saitek Radio Panel -------------------------
[device:id="saitek_radio"]
vid="6a3"
pid="d05"

[multi_display:id="RADIO_DISPLAY_ACTIVE_UP"]
line="on_select:SW_UP_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz"
line="on_select:SW_UP_COM2,dataref:sim/cockpit/radios/com1_stdby_freq_hz"
line="on_select:SW_UP_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz"
line="on_select:SW_UP_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz"
line="on_select:SW_UP_ADF,dataref:sim/cockpit/radios/adf1_freq_hz"
;line="on_select:SW_UP_DME,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz"
line="on_select:SW_UP_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code"

[multi_display:id="RADIO_DISPLAY_STBY_UP"]

[button:id="KNOB_UP_BIG_PLUS"]
on_push="on_select:SW_UP_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz:100:0:15000"
on_push="on_select:SW_UP_COM2,dataref:sim/cockpit/radios/com1_stdby_freq_hz:100:0:15000"
on_push="on_select:SW_UP_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:100:0:15000"
on_push="on_select:SW_UP_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:100:0:15000"
;on_push="on_select:SW_UP_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_UP_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:100:0:8888"

[button:id="KNOB_UP_BIG_MINUS"]
on_push="on_select:SW_UP_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz:-100:0:16000"
on_push="on_select:SW_UP_COM2,dataref:sim/cockpit/radios/com1_stdby_freq_hz:-100:0:16000"
on_push="on_select:SW_UP_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:-100:0:16000"
on_push="on_select:SW_UP_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:-100:0:16000"
;on_push="on_select:SW_UP_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_UP_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:-100:0:8888"

[button:id="KNOB_UP_SMALL_PLUS"]
on_push="on_select:SW_UP_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz_833:5:0:160000"
on_push="on_select:SW_UP_COM2,dataref:sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833:5:0:160000"
on_push="on_select:SW_UP_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:5:0:16000"
on_push="on_select:SW_UP_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:5:0:16000"
;on_push="on_select:SW_UP_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_UP_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:1:0:8888"

[button:id="KNOB_UP_SMALL_MINUS"]
on_push="on_select:SW_UP_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz_833:-5:0:160000"
on_push="on_select:SW_UP_COM2,dataref:sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833:-5:0:160000"
on_push="on_select:SW_UP_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:-5:0:16000"
on_push="on_select:SW_UP_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:-5:0:16000"
;on_push="on_select:SW_UP_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_UP_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:-1:0:8888"

[button:id="ACT_STBY_UP"]
on_push="on_select:SW_UP_ADF,commandref:sim/radios/adf1_standy_flip:once"



[multi_display:id="RADIO_DISPLAY_ACTIVE_DOWN"]
line="on_select:SW_DOWN_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz"
line="on_select:SW_DOWN_COM2,dataref:sim/cockpit/radios/com1_stdby_freq_hz"
line="on_select:SW_DOWN_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz"
line="on_select:SW_DOWN_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz"
line="on_select:SW_DOWN_ADF,dataref:sim/cockpit/radios/adf1_freq_hz"
line="on_select:SW_DOWN_DME,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz"
line="on_select:SW_DOWN_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code"

[multi_display:id="RADIO_DISPLAY_STBY_DOWN"]

[button:id="KNOB_DOWN_BIG_PLUS"]
on_push="on_select:SW_DOWN_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz:100:0:15000"
on_push="on_select:SW_DOWN_COM2,dataref:sim/cockpit/radios/com1_stdby_freq_hz:100:0:15000"
on_push="on_select:SW_DOWN_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:100:0:15000"
on_push="on_select:SW_DOWN_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:100:0:15000"
;on_push="on_select:SW_DOWN_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_DOWN_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:100:0:8888"

[button:id="KNOB_DOWN_BIG_MINUS"]
on_push="on_select:SW_DOWN_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz:-100:0:16000"
on_push="on_select:SW_DOWN_COM2,dataref:sim/cockpit/radios/com1_stdby_freq_hz:-100:0:16000"
on_push="on_select:SW_DOWN_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:-100:0:16000"
on_push="on_select:SW_DOWN_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:-100:0:16000"
;on_push="on_select:SW_DOWN_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_DOWN_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:-100:0:8888"

[button:id="KNOB_DOWN_SMALL_PLUS"]
on_push="on_select:SW_DOWN_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz_833:5:0:160000"
on_push="on_select:SW_DOWN_COM2,dataref:sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833:5:0:160000"
on_push="on_select:SW_DOWN_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:5:0:16000"
on_push="on_select:SW_DOWN_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:5:0:16000"
;on_push="on_select:SW_DOWN_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_DOWN_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:1:0:8888"

[button:id="KNOB_DOWN_SMALL_MINUS"]
on_push="on_select:SW_DOWN_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz_833:-5:0:160000"
on_push="on_select:SW_DOWN_COM2,dataref:sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833:-5:0:160000"
on_push="on_select:SW_DOWN_NAV1,dataref:sim/cockpit2/radios/actuators/nav1_frequency_hz:-5:0:16000"
on_push="on_select:SW_DOWN_NAV2,dataref:sim/cockpit2/radios/actuators/nav2_frequency_hz:-5:0:16000"
;on_push="on_select:SW_DOWN_ADF,dataref:sim/custom/gauges/compas/pkp_helper_course_L:1:0:359"
on_push="on_select:SW_DOWN_IDT,dataref:sim/cockpit2/radios/actuators/transponder_code:-1:0:8888"

[button:id="ACT_STBY_DOWN"]
on_push="on_select:SW_DOWN_ADF,commandref:sim/radios/adf1_standy_flip:once"

; AP prepared: sim/custom/gauges/console/absu_pitch_mode
; sim/custom/gauges/console/absu_roll_mode
;
; APR prepared: sim/custom/switchers/console/absu_landing_on
; APR light: sim/custom/lights/button/absu_app
;
; HDG light: sim/custom/lights/button/absu_zk
; NAV light: sim/custom/lights/button/absu_nvu
;
; ALT light: sim/custom/lights/button/absu_stab_h
;
; IAS light: sim/custom/lights/button/absu_stab_v
;
; WHEEL dataref:sim/custom/switchers/console/absu_pitch_wheel (float +/-15.0)
; sim/custom/switchers/console/absu_pitch_wheel_dir : Down: -1, UP 1, IDEL: 0
;
;
; Course ABSU: sim/custom/rotary/console/nav_1_course_100, 10, 1
; Course Compas: sim/custom/gauges/compas/pkp_obs_hundr_L, ten, one
;
;
; Heading value (read/write): sim/custom/gauges/compas/pkp_helper_course_L (deg: int)
;
;
; Speed bug: sim/custom/switchers/console/absu_speed_change inc=+1, dec=-1
; sim/custom/gauges/speed/ias_yellow_left(read/write) (200-30 300-68 400-108 500-148)

0 comments on commit c4180c9

Please sign in to comment.