Jump to content

2/3-Position Switches


Nero.ger
 Share

Recommended Posts

Did anyone find a way to cycle through the radio channels?

If not, Zeus, can we please have an INCREASE, DECREASE buttons?

A warrior's mission is to foster the success of others.

i7-8700K | Asus RTX 2080Ti Strix OC | 32 GB Ram 3200 MHz DDR-4 | Asus Maximus Hero X | Samung EVO 960 Pro SSD | VKB Gunfighter Pro | MFG Crosswind | Rift S

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

  • Replies 156
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

I've noticed that the refueling probe 2 position does not seem to trigger the fueling ready lights for some reason - not sure if this is a bug with the module or what.

 

If I use the "fuel probe in/out toggle" instead of the 2 position, I get the green "ready" on the readout in the top left of the canopy when the probe is out.

i7-4790k @ 4.4GHZ, 32GB G. Skill Ripjaws DDR-2133 RAM, EVGA GTX 1080Ti FTW3, Crucial M500 SSD, VKB MCG, TWCS Throttle, MFG Crosswind, TrackIR 5

Link to comment
Share on other sites

Question... How did you find all these switch IDs? I've been trying to find ways to bind some of the switches that are only clickable and not present in the .lua files. Would love to learn how to do this and implement them to other modules that are missing keybindings as well. Thanks!

 

 

 

	{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.0, name = _('INS Mode OFF'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.1, name = _('INS Mode ALIGN SEA'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.2, name = _('INS Mode ALIGN GND'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.3, name = _('INS Mode NAV'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.4, name = _('INS Mode IFA'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.5, name = _('INS Mode GYRO'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.6, name = _('INS Mode GB'), category = _('Miscellaneous Controls')},
{down = misc_commands.Knob_INS_Mode,  cockpit_device_id = devices.NAV_INS, value_down = 0.7, name = _('INS Mode TEST'), category = _('Miscellaneous Controls')},

 

 

I also made some more for the two/three position switches and some of the light knobs. Some duplicates with OP and they're all in a category called Toggle Switches.

All tested and working, hopefully the copypaste didn't break anything.

 

	{down = fcs_commands.Switch_FLAP_SELECT, up = fcs_commands.Switch_FLAP_SELECT, cockpit_device_id = devices.VREST, value_down = 1, value_up = 0.5, name = _('Flaps CRUISE/AUTO Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = fcs_commands.Switch_FLAP_SELECT, up = fcs_commands.Switch_FLAP_SELECT, cockpit_device_id = devices.VREST, value_down = 0, value_up = 0.5, name = _('Flaps STOVL/AUTO Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = smc_commands.Switch_Master_Arm, up = smc_commands.Switch_Master_Arm, cockpit_device_id = devices.SMC, value_down = 1, value_up = 0, name = _('Master Arm Two Position'), category = { _('Toggle Switches'), _('Armament Control')}},
{down = engine_commands.Switch_H20, up = engine_commands.Switch_H20, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0.5, name = _('H2O TO/OFF Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls')}},
{down = engine_commands.Switch_H20, up = engine_commands.Switch_H20, cockpit_device_id = devices.DECS, value_down = 0, value_up = 0.5, name = _('H2O LD/OFF Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls')}},
{down = fcs_commands.Handle_GEAR_LEVER, up = fcs_commands.Handle_GEAR_LEVER, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0, name = _('Landing Gear Lever Two Position'), category = { _('Toggle Switches'), _('Hydraulic & Mechanical'), _('Landing Gear/Flaps Control Panel')}},
{down = ext_light_commands.Switch_EXT_LT_NORM_NVG, up = ext_light_commands.Switch_EXT_LT_NORM_NVG, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0.5, name = _('EXT LT NVG/NORM Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Switch_EXT_LT_NORM_NVG, up = ext_light_commands.Switch_EXT_LT_NORM_NVG, cockpit_device_id = devices.LTEXT, value_down = 0, value_up = 0.5, name = _('EXT LT OFF/NVG Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Switch_LANDING_LT, up = ext_light_commands.Switch_LANDING_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0.5, name = _('LDG LT HVR/APRCH Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Switch_LANDING_LT, up = ext_light_commands.Switch_LANDING_LT, cockpit_device_id = devices.LTEXT, value_down = 0, value_up = 0.5, name = _('LDG LT OFF/HVR Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Switch_ANTI_COLL_LT, up = ext_light_commands.Switch_ANTI_COLL_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0, name = _('Anti-Collision LT Two Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Switch_POS_LT, up = ext_light_commands.Switch_POS_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0.5, name = _('POS LT BRT/DIM Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Switch_POS_LT, up = ext_light_commands.Switch_POS_LT, cockpit_device_id = devices.LTEXT, value_down = 0, value_up = 0.5, name = _('POS LT OFF/DIM Three Position'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = ext_light_commands.Knob_FORM_LT, up = ext_light_commands.Knob_FORM_LT, cockpit_device_id = devices.LTEXT, value_down = 1, value_up = 0, name = _('FORM LT Two Position knob'), category = { _('Toggle Switches'), _('Exterior Lights')}},
{down = fcs_commands.Switch_ANTISKID, up = fcs_commands.Switch_ANTISKID, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 0.5, value_up = 0, name = _('Antiskid ON/NWS Two Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = fcs_commands.Switch_ANTISKID, up = fcs_commands.Switch_ANTISKID, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0.5, name = _('Antiskid TEST/ON Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = fcs_commands.Switch_ANTISKID, up = fcs_commands.Switch_ANTISKID, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 0, value_up = 0.5, name = _('Antiskid NWS/ON Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = hud_commands.AltitudeSelector, up = hud_commands.AltitudeSelector, cockpit_device_id = devices.HUDCONTROL, value_down = 0, value_up = 1, name = _('HUD Altitude Selector Baro/RDR Two Position'), category = { _('Toggle Switches'), _('HUD Control')}},
{down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 0, value_up = 0.5, name = _('HUD Reject Switch Norm/Rej 1 Three Position'), category = { _('Toggle Switches'), _('HUD Control')}},
{down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 1, value_up = 0.5, name = _('HUD Reject Switch Rej 2/Rej 1 Three Position'), category = { _('Toggle Switches'), _('HUD Control')}},
{down = hud_commands.DisplayModeSwitch, up = hud_commands.DisplayModeSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 0, value_up = 0.5, name = _('HUD Mode Selector Day/Auto Three Position'), category = { _('Toggle Switches'), _('HUD Control')}},
{down = hud_commands.DisplayModeSwitch, up = hud_commands.DisplayModeSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 1, value_up = 0.5, name = _('HUD Mode Selector Night/Auto Three Position'), category = { _('Toggle Switches'), _('HUD Control')}},
{down = int_light_commands.Knob_Instr_Lights, up = int_light_commands.Knob_Instr_Lights, cockpit_device_id = devices.LTINT, value_down = 1, value_up = 0, name = _('Instrument Lights Two Position knob'), category = { _('Toggle Switches'), _('Internal Lights')}},
{down = int_light_commands.Knob_Console_Lights, up = int_light_commands.Knob_Console_Lights, cockpit_device_id = devices.LTINT, value_down = 1, value_up = 0, name = _('Console Lights Two Position knob'), category = { _('Toggle Switches'), _('Internal Lights')}},
{down = int_light_commands.Knob_Flood_Lights, up = int_light_commands.Knob_Flood_Lights, cockpit_device_id = devices.LTINT, value_down = 1, value_up = 0, name = _('Flood Lights Two Position Knob'), category = { _('Toggle Switches'), _('Internal Lights')}},	
{down = psp_commands.Switch_OXY, up = psp_commands.Switch_OXY, cockpit_device_id = devices.ECS, value_down = 1, value_up = 0, name = _('Oxygen Switch Two Position'), category = { _('Toggle Switches'), _('Pilot Services Panel')}},
{down = engine_commands.Switch_H20_DUMP, up = engine_commands.Switch_H20_DUMP, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('H2O Dump Switch Two Position'), category = { _('Toggle Switches'), _('Pilot Services Panel')}},
{down = engine_commands.Switch_ENG_RPM, up = engine_commands.Switch_ENG_RPM, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('Engine RPM Switch Two Position'), category = { _('Toggle Switches'), _('Pilot Services Panel')}},
{down = engine_commands.Switch_EFC, up = engine_commands.Switch_EFC, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('EFC Switch Two Position'), category = { _('Toggle Switches'), _('Pilot Services Panel')}},
{down = engine_commands.Switch_LIDS, up = engine_commands.Switch_LIDS, cockpit_device_id = devices.VREST, value_down = 1, value_up = 0, name = _('LIDS Switch Two Position'), category = { _('Toggle Switches'), _('Pilot Services Panel')}},
{down = engine_commands.Switch_DECS, up = engine_commands.Switch_DECS, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('DECS Switch Two Position'), category = { _('Toggle Switches'), _('Pilot Services Panel')}},
{down = int_light_commands.Knob_Annunciator_Lights, up = int_light_commands.Knob_Annunciator_Lights, cockpit_device_id = devices.LTINT, value_down = 0.9, value_up = 0, name = _('Annunciator Lights Two Position knob'), category = { _('Toggle Switches'), _('Internal Lights')}},	
{down = fcs_commands.Switch_SAS_YAW, up = fcs_commands.Switch_SAS_YAW, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0, name = _('SAS Yaw Two Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_SAS_ROLL, up = fcs_commands.Switch_SAS_ROLL, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0, name = _('SAS Roll Two Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_SAS_PITCH, up = fcs_commands.Switch_SAS_PITCH, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0, name = _('SAS Pitch Two Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_ALT_HOLD, up = fcs_commands.Switch_ALT_HOLD, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0, name = _('Alt Hold Switch Two Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_Q_FEEL, up = fcs_commands.Switch_Q_FEEL, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0, name = _('Q Feel Switch Two Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_AFC, up = fcs_commands.Switch_AFC, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0.5, name = _('AFC Switch ON/OFF Three Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_AFC, up = fcs_commands.Switch_AFC, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 0, value_up = 0.5, name = _('AFC Switch RESET/OFF Three Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = engine_commands.Switch_JPTL, up = engine_commands.Switch_JPTL, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('JPTL Switch Two Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_MAN_FUEL, up = engine_commands.Switch_MAN_FUEL, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('Manual Fuel Switch Two Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_PROP, up = engine_commands.Switch_FUEL_PROP, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('Fuel Proportioner Two Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_PUMP_L, up = engine_commands.Switch_FUEL_PUMP_L, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0.5, name = _('Fuel Pump L ON/OFF Three Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_PUMP_L, up = engine_commands.Switch_FUEL_PUMP_L, cockpit_device_id = devices.DECS, value_down = 0, value_up = 0.5, name = _('Fuel Pump L DC OPR/OFF Three Position'), category = {_('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_PUMP_R, up = engine_commands.Switch_FUEL_PUMP_R, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0.5, name = _('Fuel Pump R ON/OFF Three Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_PUMP_R, up = engine_commands.Switch_FUEL_PUMP_R, cockpit_device_id = devices.DECS, value_down = 0, value_up = 0.5, name = _('Fuel Pump R DC OPR/OFF Three Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_PRESS, up = engine_commands.Switch_FUEL_PRESS, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('Air Refueling Probe Switch Two Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_DUMP_L, up = engine_commands.Switch_FUEL_DUMP_L, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('Fuel Dump L Switch Two Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = engine_commands.Switch_FUEL_DUMP_R, up = engine_commands.Switch_FUEL_DUMP_R, cockpit_device_id = devices.DECS, value_down = 1, value_up = 0, name = _('Fuel Dump R Switch Two Position'), category = { _('Toggle Switches'), _('Engine & Fuel')}},
{down = elec_commands.Switch_BATT, up = elec_commands.Switch_BATT, cockpit_device_id = devices.ELECTRIC, value_down = 1, value_up = 0.5, name = _('Battery ON/OFF Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_BATT, up = elec_commands.Switch_BATT, cockpit_device_id = devices.ELECTRIC, value_down = 0, value_up = 0.5, name = _('Battery ALERT/OFF Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_GEN, up = elec_commands.Switch_GEN, cockpit_device_id = devices.ELECTRIC, value_down = 1, value_up = 0.5, name = _('Generator ON/OFF Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_GEN, up = elec_commands.Switch_GEN, cockpit_device_id = devices.ELECTRIC, value_down = 0, value_up = 0.5, name = _('Generator TEST/OFF Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_ENG_START, up = elec_commands.Switch_ENG_START, cockpit_device_id = devices.ELECTRIC, value_down = 1, value_up = 0, name = _('Engine Start Switch Two Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_APU_GEN, up = elec_commands.Switch_APU_GEN, cockpit_device_id = devices.ELECTRIC, value_down = 1, value_up = 0.5, name = _('APU Generator Switch RESET/ON Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_APU_GEN, up = elec_commands.Switch_APU_GEN, cockpit_device_id = devices.ELECTRIC, value_down = 0, value_up = 0.5, name = _('APU Generator Switch OFF/ON Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_DC_TEST, up = elec_commands.Switch_DC_TEST, cockpit_device_id = devices.ELECTRIC, value_down = 1, value_up = 0.5, name = _('DC Test Switch STBY/OFF Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = elec_commands.Switch_DC_TEST, up = elec_commands.Switch_DC_TEST, cockpit_device_id = devices.ELECTRIC, value_down = 0, value_up = 0.5, name = _('DC Test Switch MAIN/OFF Three Position'), category = { _('Toggle Switches'), _('Electrical Panel')}},
{down = misc_commands.Switch_VRS_Mode, up = misc_commands.Switch_VRS_Mode, cockpit_device_id = devices.NAVFLIR, value_down = 0, value_up = 1, name = _('Video Recorder System Mode Switch AUTO/RUN Two Position'), category = { _('Toggle Switches'), _('Miscellaneous Switch Panel')}},
{down = misc_commands.Switch_VRS_Output, up = misc_commands.Switch_VRS_Output, cockpit_device_id = devices.NAVFLIR, value_down = 0, value_up = 1, name = _('Video Recorder System Display Selector Switch MPCD/HUD Two Position'), category = { _('Toggle Switches'), _('Miscellaneous Switch Panel')}},
{down = misc_commands.Switch_FLIR_Power, up = misc_commands.Switch_FLIR_Power, cockpit_device_id = devices.NAVFLIR, value_down = 1, value_up = 0, name = _('FLIR Power Switch Two Position'), category = { _('Toggle Switches'), _('Miscellaneous Switch Panel')}},
{down = misc_commands.Switch_PR_HT_Mode, up = misc_commands.Switch_PR_HT_Mode, cockpit_device_id = devices.FLIGHTINSTRUMENTS, value_down = 1, value_up = 0, name = _('Probe Heat Mode Switch HT/AUTO Two Position'), category = { _('Toggle Switches'), _('Miscellaneous Switch Panel')}},
{down = smc_commands.Switch_IR_COOL, up = smc_commands.Switch_IR_COOL, cockpit_device_id = devices.SMC,value_down = 1, value_up = 0, name = _('Ground IR Cool Switch Two Position'), category = { _('Toggle Switches'), _('Armament Control')}},
{down = fcs_commands.Switch_FLAP_PWR, up = fcs_commands.Switch_FLAP_PWR, cockpit_device_id = devices.VREST, value_down = 1, value_up = 0.5, name = _('Flaps Power Switch RESET/ON Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = fcs_commands.Switch_FLAP_PWR, up = fcs_commands.Switch_FLAP_PWR, cockpit_device_id = devices.VREST, value_down = 0, value_up = 0.5, name = _('Flaps Power Switch OFF/ON Three Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = fcs_commands.Switch_FLAP_PWR, up = fcs_commands.Switch_FLAP_PWR, cockpit_device_id = devices.VREST, value_down = 0.5, value_up = 0, name = _('Flaps Power Switch ON/OFF Two Position'), category = { _('Toggle Switches'), _('VSTOL Controls'), _('Landing Gear/Flaps Control Panel')}},
{down = fcs_commands.Switch_RPS_YAW, up = fcs_commands.Switch_RPS_YAW, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 1, value_up = 0.5, name = _('RPS/YAW Trim Switch TEST/ON Three Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_RPS_YAW, up = fcs_commands.Switch_RPS_YAW, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 0, value_up = 0.5, name = _('RPS/YAW Trim Switch OFF/ON Three Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},
{down = fcs_commands.Switch_RPS_YAW, up = fcs_commands.Switch_RPS_YAW, cockpit_device_id = devices.FLIGHTCONTROLS, value_down = 0.5, value_up = 0, name = _('RPS/YAW Trim Switch ON/OFF Two Position'), category = { _('Toggle Switches'), _('Stability Augmentation & Autopilot')}},

 

Manual Release Control Knob

 

{down = smc_commands.Knob_Bomb_Fuze,  cockpit_device_id = devices.SMC, value_down = 0.0, name = _('Manual Release Control NORM'), category = _('Armament Control')},
{down = smc_commands.Knob_Bomb_Fuze,  cockpit_device_id = devices.SMC, value_down = 0.33, name = _('Manual Release Control N/T'), category = _('Armament Control')},
{down = smc_commands.Knob_Bomb_Fuze,  cockpit_device_id = devices.SMC, value_down = 0.66, name = _('Manual Release Control N'), category = _('Armament Control')},
{down = smc_commands.Knob_Bomb_Fuze,  cockpit_device_id = devices.SMC, value_down = 0.99, name = _('Manual Release Control T'), category = _('Armament Control')},

 

Radio Panel

 

	{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = -0.2, name = _('V/UHF RSC Mode ZRO'), category = _('Radio Panel')},
{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = 0.0, name = _('V/UHF RSC Mode OFF'), category = _('Radio Panel')},
{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = 0.2, name = _('V/UHF RSC Mode TEST'), category = _('Radio Panel')},
{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = 0.4, name = _('V/UHF RSC Mode TR+G'), category = _('Radio Panel')},
{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = 0.6, name = _('V/UHF RSC Mode TR'), category = _('Radio Panel')},
{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = 0.8, name = _('V/UHF RSC Mode ADF'), category = _('Radio Panel')},
{down = radio_commands.Switch_OP_MODE,  cockpit_device_id = devices.RSC, value_down = 1.0, name = _('V/UHF RSC Mode CHNG PRST'), category = _('Radio Panel')},

{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 0.0, name = _('V/UHF RSC Frequency Mode AJ/M '), category = _('Radio Panel')},
{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 0.15, name = _('V/UHF RSC Frequency Mode AJ'), category = _('Radio Panel')},
{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 0.30, name = _('V/UHF RSC Frequency Mode MAR'), category = _('Radio Panel')},
{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 0.45, name = _('V/UHF RSC Frequency Mode PRST'), category = _('Radio Panel')},
{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 0.60, name = _('V/UHF RSC Frequency Mode MAN'), category = _('Radio Panel')},
{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 0.75, name = _('V/UHF RSC Frequency Mode 243'), category = _('Radio Panel')},
{down = radio_commands.Switch_FREQ_MODE,  cockpit_device_id = devices.RSC, value_down = 1.0, name = _('V/UHF RSC Frequency Mode 121'), category = _('Radio Panel')},

JSGME https://drive.google.com/file/d/17bvF17DFoyLwBvGGbvCrbUgsWj0yK1Jy/view

Link to comment
Share on other sites

All the clickable switches are defined in the clickabledata.lua, it's usually in the module directory under cockpit or cockpit\scripts

 

Using this line as an example:

 

elements["PTN_288"] = multiposition_switch_limited(_("HUD Symbology Reject Switch"), devices.HUDCONTROL, hud_commands.RejectSwitch, 288, 3, 0.50, true, 0)

 

multiposition_switch, so it has more than two positions. 3, 0.5 means it has three positions with 0.5 increments.

 

Not all modules do this the same way, the Mi8 instead has: 0.5, {0.0,1.0})

I've also seen a few without these values in which case -1,0,1 usually works.

Two position switches tend to be 1,0

 

--

 

So to turn it into a keybind using the normal structure you'd start with defining the down and up commands.

Down is the command executed when the physical switch is in the closed/pressed position, up is off/released.

 

down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch,

 

This makes both states interact with the same cockpit switch.

 

--

 

Next defining the cockpit device.

 

cockpit_device_id = devices.HUDCONTROL,

 

This is like a device category that the switch is in, presumably to simplify keeping track of it all.

 

--

 

Now defining the down and up states using the increments we got from the clickabledata which tells the module where you want the switch to go when the physical switch is on or off.

 

value_down = 1, value_ up = 0.5,

 

Value 1 in this case being the switch thrown to the top/bottom position and releasing the physical switch commands it to move to the center 0.5 position.

It's not always clear how the switches are oriented in the cockpit so you'll have to test it and make sure it actually goes the right direction in game, if it doesn't then just swap the values or rename the binds.

 

--

 

Since this is a three position switch we need to make a second keybind exactly the same way but with different values, in this case:

 

value_down = 0, value_up 0.5,

 

--

 

For the name and category it's a simple:

 

name = _('COMMAND NAME'), category = _('CATEGORY NAME'),

 

For multiple categories: category = { _('CATEGORY NAME 1'), _('CATEGORY NAME 2')},

 

--

 

To assemble the whole thing:

 

{down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 1, value_ up = 0.5, name = _('COMMAND NAME 1'), category = {  _('CATEGORY NAME 1'),  _('CATEGORY NAME 2')}},

For the second keybind just change the numerical values appropriately and name accordingly.

 

{down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 0, value_ up = 0.5, name = _('COMMAND NAME 2'), category = {  _('CATEGORY NAME 1'),  _('CATEGORY NAME 2')}},

 

Hopefully this makes at least a little bit of sense.

  • Like 1
Link to comment
Share on other sites

Vladinsky- One more question if you don't mind. I understand the command setting up button presses from your instructions below. However, how do you handle other types of switches? For instance, the brightness knob. It uses a different up/down command that seems to be specifically defined for that switch and I couldn't find its definitiona anywhere. Thoughts?

 

Ex.

{pressed = iCommandHUDBrightnessUp, up = iCommandHUDTest_up, name = _('HUD On - Brightness Increase'), category = _('HUD Control')},

 

 

All the clickable switches are defined in the clickabledata.lua, it's usually in the module directory under cockpit or cockpit\scripts

 

Using this line as an example:

 

elements["PTN_288"] = multiposition_switch_limited(_("HUD Symbology Reject Switch"), devices.HUDCONTROL, hud_commands.RejectSwitch, 288, 3, 0.50, true, 0)

 

multiposition_switch, so it has more than two positions. 3, 0.5 means it has three positions with 0.5 increments.

 

Not all modules do this the same way, the Mi8 instead has: 0.5, {0.0,1.0})

I've also seen a few without these values in which case -1,0,1 usually works.

Two position switches tend to be 1,0

 

--

 

So to turn it into a keybind using the normal structure you'd start with defining the down and up commands.

Down is the command executed when the physical switch is in the closed/pressed position, up is off/released.

 

down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch,

 

This makes both states interact with the same cockpit switch.

 

--

 

Next defining the cockpit device.

 

cockpit_device_id = devices.HUDCONTROL,

 

This is like a device category that the switch is in, presumably to simplify keeping track of it all.

 

--

 

Now defining the down and up states using the increments we got from the clickabledata which tells the module where you want the switch to go when the physical switch is on or off.

 

value_down = 1, value_ up = 0.5,

 

Value 1 in this case being the switch thrown to the top/bottom position and releasing the physical switch commands it to move to the center 0.5 position.

It's not always clear how the switches are oriented in the cockpit so you'll have to test it and make sure it actually goes the right direction in game, if it doesn't then just swap the values or rename the binds.

 

--

 

Since this is a three position switch we need to make a second keybind exactly the same way but with different values, in this case:

 

value_down = 0, value_up 0.5,

 

--

 

For the name and category it's a simple:

 

name = _('COMMAND NAME'), category = _('CATEGORY NAME'),

 

For multiple categories: category = { _('CATEGORY NAME 1'), _('CATEGORY NAME 2')},

 

--

 

To assemble the whole thing:

 

{down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 1, value_ up = 0.5, name = _('COMMAND NAME 1'), category = {  _('CATEGORY NAME 1'),  _('CATEGORY NAME 2')}},

For the second keybind just change the numerical values appropriately and name accordingly.

 

{down = hud_commands.RejectSwitch, up = hud_commands.RejectSwitch, cockpit_device_id = devices.HUDCONTROL, value_down = 0, value_ up = 0.5, name = _('COMMAND NAME 2'), category = {  _('CATEGORY NAME 1'),  _('CATEGORY NAME 2')}},

 

Hopefully this makes at least a little bit of sense.

Link to comment
Share on other sites

Vladinsky- One more question if you don't mind. I understand the command setting up button presses from your instructions below. However, how do you handle other types of switches? For instance, the brightness knob. It uses a different up/down command that seems to be specifically defined for that switch and I couldn't find its definitiona anywhere. Thoughts?

 

Ex.

{pressed = iCommandHUDBrightnessUp, up = iCommandHUDTest_up, name = _('HUD On - Brightness Increase'), category = _('HUD Control')},

What kind of switch do you wish to control it with? You can make it work with a toggle switch or an axis if you'd like.

 

 

I use this one to turn the HUD to full brightness when my switch is on and turns it off when the switch is off.

 

{down = 3289, up = 3289, cockpit_device_id = 22, value_down = 1, value_up = 0,              name = _('ALT HUD Power'),    category = _('HUD Control')},

If you'd like to bind it to an axis you could use this.

 

{action = 3289, cockpit_device_id = 22, name = _('HUD Power Knob')},

Intel 9600K@4.9GHz, Asus Z390, 32GB DDR4 2400MHz, EVGA GTX 1070, Custom Water Cooling, 970 EVO 500GB NVMe, 2TB of Mechanical Storage

 

34" UltraWide 3440x1440 Curved Monitor, 21" MFD monitor, TIR5

 

My Pit Build, VKB Gunfighter Pro w/WH Grip, TMWH Throttle, MFG Crosswinds W/Combat Pedals, Cougar MFDs, Custom A-10C panels, Custom Helo Collective, SimShaker with Transducer

Link to comment
Share on other sites

@Zeus67

 

As far as the Interior lighting panel is concerned, will this only be written to support Axis for Potentiometers or will there be key bindings to increase/decrease the position for use of Rotary encoders?

Win 10 Pro - Intel I7 12700k@4.9ghz water cooled - ASUS TUF Z690 -EVGA GTX 1080 Ti SC2 Hybrid - EVGA 1000W PSU - 32GB 3200 G-Skill XMP- Reverb G2 -Custom mip and side panels - Leo Bodnar  BBI32x2, BBI64x3 - DSD 64 - TM Warthog HOTAS - TM Cougar MFD's x 3 - TM TPR pedals

Link to comment
Share on other sites

Anyone got the CMBT thrust button mapping oneliner?

Is it even modeled in yet?

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Link to comment
Share on other sites

Similiar to what Baldawg is looking. A keybind button press to increase/decrease the knobs (mostly has to do with brightness, but also include the com1/com2 volume, etc.).

 

What kind of switch do you wish to control it with? You can make it work with a toggle switch or an axis if you'd like.

 

 

I use this one to turn the HUD to full brightness when my switch is on and turns it off when the switch is off.

 

{down = 3289, up = 3289, cockpit_device_id = 22, value_down = 1, value_up = 0,              name = _('ALT HUD Power'),    category = _('HUD Control')},

If you'd like to bind it to an axis you could use this.

 

{action = 3289, cockpit_device_id = 22, name = _('HUD Power Knob')},

Link to comment
Share on other sites

I've noticed that the refueling probe 2 position does not seem to trigger the fueling ready lights for some reason - not sure if this is a bug with the module or what.

 

If I use the "fuel probe in/out toggle" instead of the 2 position, I get the green "ready" on the readout in the top left of the canopy when the probe is out.

Probably because your binding is putting the switch into the "press" position instead of the "out" position. Value down should be 0.5, not 1.

Intel 9600K@4.9GHz, Asus Z390, 32GB DDR4 2400MHz, EVGA GTX 1070, Custom Water Cooling, 970 EVO 500GB NVMe, 2TB of Mechanical Storage

 

34" UltraWide 3440x1440 Curved Monitor, 21" MFD monitor, TIR5

 

My Pit Build, VKB Gunfighter Pro w/WH Grip, TMWH Throttle, MFG Crosswinds W/Combat Pedals, Cougar MFDs, Custom A-10C panels, Custom Helo Collective, SimShaker with Transducer

Link to comment
Share on other sites

Similiar to what Baldawg is looking. A keybind button press to increase/decrease the knobs (mostly has to do with brightness, but also include the com1/com2 volume, etc.).

 

I've been messing around with this for a while today and I can't find a way that works. I suspect RAZBAM needs to add/change some stuff before it's possible.

Link to comment
Share on other sites

Thanks Vladinsky! Appreicate you checking. Hopefully Zeus reads this read and add the controls scheme in.

 

I'm using the Elgato Stream Deck and really want to keybind everything so I don't have to use the mouse.

 

I've been messing around with this for a while today and I can't find a way that works. I suspect RAZBAM needs to add/change some stuff before it's possible.
Link to comment
Share on other sites

I will include the abstractions in a separate lua file.

The simpit builders will only have to uncomment a do_file instruction in default.lua

 

Thanks for your interaction, Zeus. If I could make a recommendation, it is to include discrete switch state commands (e.g. keypress for on and a separate keypress for off) as well as the toggle/cycle functions you already have and the 2/3 position switch functions in this thread. The discrete keypresses allow for more flexibility for programmable controllers.

Link to comment
Share on other sites

Thanks for your interaction, Zeus. If I could make a recommendation, it is to include discrete switch state commands (e.g. keypress for on and a separate keypress for off) as well as the toggle/cycle functions you already have and the 2/3 position switch functions in this thread. The discrete keypresses allow for more flexibility for programmable controllers.

 

 

+1

 

Vladinsky did you try to implement the Comm 1 Comm2 channel knobs or just the Volume knobs. Id like to get those working since my squadron is on mission stand down to learn the harrier. We use SRS and being able to switch frequencies in VR without having to use the mouse would be great. we are going from tower to a marshall freq to the tanker then to a field carrier landing practice contacting paddles.

Win 10 Pro - Intel I7 12700k@4.9ghz water cooled - ASUS TUF Z690 -EVGA GTX 1080 Ti SC2 Hybrid - EVGA 1000W PSU - 32GB 3200 G-Skill XMP- Reverb G2 -Custom mip and side panels - Leo Bodnar  BBI32x2, BBI64x3 - DSD 64 - TM Warthog HOTAS - TM Cougar MFD's x 3 - TM TPR pedals

Link to comment
Share on other sites

Vladinsky did you try to implement the Comm 1 Comm2 channel knobs or just the Volume knobs. Id like to get those working since my squadron is on mission stand down to learn the harrier. We use SRS and being able to switch frequencies in VR without having to use the mouse would be great. we are going from tower to a marshall freq to the tanker then to a field carrier landing practice contacting paddles.

 

It was the Comm ones, I think the volume ones are defined as an axis so one could probably make discrete position or toggle switch binds for those but increase/decrease is beyond me.

Link to comment
Share on other sites

Hi PVI,

 

What is

"MUST BEFORE INSTALLING AND ACTIVATING THE MOD '_My Buttons AV8BNA v0.5' !!!!!! Otherwise the profile does not work!"

I used google translate to read your install and I can't seem to follow.

 

Thanks.

Win 10 · i9900K@stock · 1080ti· ASUS Z390-A · SSD · 64Gb · TM Warthog · CV1 · Quest 2

Link to comment
Share on other sites

For the TM Warthog users out there, if you'd prefer not to modify default.lua (which can be overwritten by updates), you can copy the existing default.lua file to Throttle - HOTAS Warthog.lua and then add your changes for the three-position switches. This file should not be modified by updates unless RAZBAM adds that file in a future update.

Link to comment
Share on other sites

Deezle- I've been searching around a lot, but couldn't find the answer to this. Where did you get the "3289" command from?

 

Thanks!

 

 

What kind of switch do you wish to control it with? You can make it work with a toggle switch or an axis if you'd like.

 

 

I use this one to turn the HUD to full brightness when my switch is on and turns it off when the switch is off.

 

{down = 3289, up = 3289, cockpit_device_id = 22, value_down = 1, value_up = 0,              name = _('ALT HUD Power'),    category = _('HUD Control')},

If you'd like to bind it to an axis you could use this.

 

{action = 3289, cockpit_device_id = 22, name = _('HUD Power Knob')},

Link to comment
Share on other sites

Deezle- I've been searching around a lot, but couldn't find the answer to this. Where did you get the "3289" command from?

 

Not Deezle, but command_defs.lua has action items and their numbering.

 

In this example, the AV8B's command_defs are at \Mods\aircraft\AV8BNA\Cockpit.

 

...
start_command   = 3000
...
DisplayBRTKnob		= start_command + 289;

Shoot to Kill.

Play to Have Fun.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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