Jump to content

VHF Radio Power


memento10

Recommended Posts

Could somebody please verify I have the right Lua code for turning on the VHF-1 and VHF-2 power on the right side panel?

 

Having trouble getting these switches to work.

 

[242] = {TwoPositionSwitch, 49, 5, 1}, -- VHF1

[243] = {TwoPositionSwitch, 48, 11, 1}, -- VHF2

 

Thanks again.

Link to comment
Share on other sites

from clickabledata.lua that's here :

 

elements["COMM-PWR-UKV-1-PTR"]        = {class = {class_type.TUMB,class_type.TUMB}, hint = LOCALIZE("VHF-1 (R828) power switch"), device = devices.R_828, action = {device_commands.Button_5,device_commands.Button_5}, arg = {285,285}, arg_value = {-direction*1.0,direction*1.0}, arg_lim =  {{0, 1},{0, 1}}, use_OBB = true, updatable = true}

elements["COMM-PWR-UKV-2-PTR"]        = {class = {class_type.TUMB,class_type.TUMB}, hint = LOCALIZE("VHF-2 (R-800) power switch"), device = devices.R_800, action = {device_commands.Button_11,device_commands.Button_11}, arg = {286,286}, arg_value = {-direction*1.0,direction*1.0}, arg_lim = {{0, 1},{0, 1}}, use_OBB = true, updatable = true}

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...