Jself Posted February 19, 2020 Share Posted February 19, 2020 I've built some custom button boxes and would like to get some additional axes added for the tomcat. I was able to get the wing sweep lever working with the help of the bindings request thread in the bugs sub forum. I tried to use the same logic for the volume panel but can't seem to get it to work. Here is whats in the clickable.lua for sidewinder volume for an example: -- Pilot TONE VOLUME panel elements["PNT_2039"] = default_axis(_("Sidewinder Volume"), devices.ICS, device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_args.RADIO_ICS_Vol_Sidewinder, 0, 0.1, false, false) Here what I tried to add to the default.lua in the joystick folder : {action=device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_device_id=devices.RADIO_ICS_Vol_Sidewinder, name=_('Sidewinder Volume')}, It adds it to the axis list and lets me assign it but once in the game it does not adjust the volume knob and I get an error message in the top right corner of the screen saying "Unhandled Proxy Command 3397 val=nil" when the knob reaches 100%. Any help would be much appreciated Link to comment Share on other sites More sharing options...
Clorydric Posted February 19, 2020 Share Posted February 19, 2020 (edited) I think your cockpit ID is wrong... Try this : {action = device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_device_id=devices.ICS, name = _("ICS Sidewinder Volume")}, You'll probably have to set your axis as slider and play with invert/deadzone/saturation. Last time I tried, only 50% of the axis was usable. If you want more axis (haven't tested all commands, some may not work) : {action = device_commands.AHRS_LatCorrection, cockpit_device_id=devices.AHRS, name = _("X_Compass LAT Correction")}, {action = device_commands.RADIO_UHF_BRT_Pilot, cockpit_device_id=devices.ARC159, name = _("X_UHF ARC-159 Display Brightness Pilot")}, {action = device_commands.RADIO_UHF_VOL_Pilot, cockpit_device_id=devices.ARC159, name = _("X_UHF ARC-159 Volume Pilot")}, {action = device_commands.RADIO_UHF_VOL_RIO, cockpit_device_id=devices.ARC159, name = _("X_UHF ARC-159 Volume RIO")}, {action = device_commands.RADIO_UHF_Remote_DISP_BRT_Pilot, cockpit_device_id=devices.ARC159, name = _("X_UHF Radio Remote Display Brightness Pilot")}, {action = device_commands.RADIO_UHF_Remote_DISP_BRT_RIO, cockpit_device_id=devices.ARC159, name = _("X_UHF Radio Remote Display Brightness RIO")}, {action = device_commands.RADIO_VHF_BRT_RIO, cockpit_device_id=devices.ARC182, name = _("X_VHF ARC-182 Display Brightness RIO")}, {action = device_commands.RADIO_VHF_VOL_PILOT, cockpit_device_id=devices.ARC182, name = _("X_VHF ARC-182 Volume Pilot")}, {action = device_commands.RADIO_VHF_VOL_RIO, cockpit_device_id=devices.ARC182, name = _("X_VHF ARC-182 Volume RIO")}, {action = device_commands.RADIO_VHF_Remote_DISP_BRT_Pilot, cockpit_device_id=devices.ARC182, name = _("X_VHF Remote Display Brightness Pilot")}, {action = device_commands.ALTIMETER_Knob, cockpit_device_id=devices.BAROALTIMETER, name = _("X_Altimeter Pressure Setting Pilot")}, {action = device_commands.RIOALTIMETER_Knob, cockpit_device_id=devices.BAROALTIMETER, name = _("X_Altimeter Pressure Setting RIO")}, {action = device_commands.CLOCK_Wind, cockpit_device_id=devices.CLOCK, name = _("X_Clock Wind Pilot")}, {action = device_commands.RIO_CLOCK_Wind, cockpit_device_id=devices.CLOCK, name = _("X_Clock Wind RIO")}, {action = device_commands.WINGSWEEP_EmergencySweepLever, cockpit_device_id=devices.WINGSWEEP, name = _("X_Emergency Wing Sweep Handle")}, {action = device_commands.FLAPS_Lever, cockpit_device_id=devices.FLAPS, name = _("X_Flaps Lever")}, {action = device_commands.FUELSYSTEM_Bingo_Knob, cockpit_device_id=devices.FUELSYSTEM, name = _("X_BINGO Fuel Level Knob")}, {action = device_commands.HSD_Knob_Brightness, cockpit_device_id=devices.HSD, name = _("X_HSD Brightness")}, {action = device_commands.HSD_Knob_Course, cockpit_device_id=devices.HSD, name = _("X_HSD Selected Course")}, {action = device_commands.HSD_Knob_Course, cockpit_device_id=devices.HSD, name = _("X_HSD Selected Course")}, {action = device_commands.HSD_Knob_Heading, cockpit_device_id=devices.HSD, name = _("X_HSD Selected Heading")}, {action = device_commands.VDIG_HUD_bright, cockpit_device_id=devices.HUD, name = _("X_HUD Brightness")}, {action = device_commands.DISP_HUD_pitch_bright, cockpit_device_id=devices.HUD, name = _("X_HUD Pitch Ladder Brightness")}, {action = device_commands.VDIG_HUD_trim, cockpit_device_id=devices.HUD, name = _("X_HUD Trim")}, {action = device_commands.RADIO_ICS_Vol_ALR67_Pilot, cockpit_device_id=devices.ICS, name = _("X_AN/ALR-67 Volume Pilot")}, {action = device_commands.RWR_ALR67_Volume, cockpit_device_id=devices.ICS, name = _("X_AN/ALR-67 Volume RIO")}, {action = device_commands.RWR_Brightness_Pilot, cockpit_device_id=devices.RWR, name = _("X_AN/ALR-67 Display Brightness Pilot")}, {action = device_commands.RWR_Brightness_RIO, cockpit_device_id=devices.RWR, name = _("X_AN/ALR-67 Display Brightness RIO")}, {action = device_commands.CMDS_Chaff_Counter_Control, cockpit_device_id=devices.COUNTERMEASURES, name = _("X_AN/ALE-37 Chaff Counter")}, {action = device_commands.CMDS_Flare_Counter_Control, cockpit_device_id=devices.COUNTERMEASURES, name = _("X_AN/ALE-37 Flare Counter")}, {action = device_commands.CMDS_Jammer_Counter_Control, cockpit_device_id=devices.COUNTERMEASURES, name = _("X_AN/ALE-37 Jammer Counter")}, {action = device_commands.DECM_Vol_Knob, cockpit_device_id=devices.DECM, name = _("X_DECM ALQ-100 Volume")}, {action = device_commands.ECMD_Knob_Brightness, cockpit_device_id=devices.ECMD, name = _("X_ECMD Brightness")}, {action = device_commands.RADIO_ICS_Vol_Sidewinder, cockpit_device_id=devices.ICS, name = _("X_ICS Sidewinder Volume")}, {action = device_commands.RADIO_ICS_Vol_Pilot, cockpit_device_id=devices.ICS, name = _("X_ICS Volume Pilot")}, {action = device_commands.RADIO_ICS_Vol_RIO, cockpit_device_id=devices.ICS, name = _("X_ICS Volume RIO")}, {action = device_commands.RADAR_DDD_bright, cockpit_device_id=devices.RADAR, name = _("X_DDD_Brightness")}, {action = device_commands.RADAR_DDD_pulse_vid, cockpit_device_id=devices.RADAR, name = _("X_DDD_Pulse video")}, {action = device_commands.RADAR_PD_thresh_clutter, cockpit_device_id=devices.RADAR, name = _("X_Radar PD threshold clutter")}, {action = device_commands.TACAN_Knob_Vol_Pilot, cockpit_device_id=devices.TACAN, name = _("X_TACAN Volume Pilot")}, {action = device_commands.TACAN_Knob_Vol_RIO, cockpit_device_id=devices.TACAN, name = _("X_TACAN Volume RIO")}, {action = device_commands.TID_bright, cockpit_device_id=devices.TID, name = _("X_TID Brightness")}, {action = device_commands.TID_contrast, cockpit_device_id=devices.TID, name = _("X_TID Contrast")}, {action = device_commands.VDIG_VSDI_bright, cockpit_device_id=devices.VDI, name = _("X_VDI Screen Brightness")}, {action = device_commands.VDIG_VDI_contrast, cockpit_device_id=devices.VDI, name = _("X_VDI Screen Contrast")}, {action = device_commands.VDIG_VSDI_trim, cockpit_device_id=devices.VDI, name = _("X_VDI Screen Trim")}, {action = device_commands.WEAP_Gun_Ammo_adjust, cockpit_device_id=devices.WEAPONS, name = _("X_Gun Ammunition Counter Adjustment")}, {action = device_commands.WEAP_Gun_Elevation, cockpit_device_id=devices.WEAPONS, name = _("X_Gun Elevation Lead Adjustment")}, Edited February 19, 2020 by Clorydric Intel 9900KF @ 5.1GHz / RTX 2080S OC @ 1.93GHz / ASUS Prime Z390-A / 2x16Gb DDR4 @ 3333 CL16 / Corsair TX850M / Samsung NVME 970 EVO+ / TM warthog Thr. / VKB Gunfighter mkIII + MCG / MFG Crosswind mk3 / Valve Index Link to comment Share on other sites More sharing options...
Jself Posted February 20, 2020 Author Share Posted February 20, 2020 Awesome... thank you, that worked great!! Link to comment Share on other sites More sharing options...
Skebengwa Posted December 27, 2021 Share Posted December 27, 2021 Jself, would you mind sharing your F14 code? I'm busy trying to do exactly what you were doing. Regards, Skeb Link to comment Share on other sites More sharing options...
Recommended Posts