Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Home and Direct to
#3
The commands being passed in air manager are the same in the PDF provided with the TDS software. 

I have no other add on planes. I have tried just using a standard xplane plane with the TDS popped out. none of them will work with the bezel in air manager. As far as I can tell the TDS plugin will not receive any commands from air manager. 

I have the legacy option checked. 




this is the code from air manager for the generic TDS 650xi.

-- Variables --
device_id_prop = user_prop_add_integer("Device ID", 1, 2, 2, "Set the device ID")
local device_id = tostring(user_prop_get(device_id_prop))


-- Add background image
img_add_fullscreen("background.png")


-- Add buttons
btn_home = button_add("btn_home.png", "btn_home_pressed.png", 1457, 183, 126, 100, function()
    msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_HomeKEY)")
    xpl_command("TDS/GTNXI/HOME_" .. device_id)
end,
function()
    msfs_rpn("0 (>L:TDSGTNXI650U" .. device_id .. "_HomeKEY)")
end)
btn_direct = button_add("btn_direct.png", "btn_direct_pressed.png", 1457, 323, 126, 100, function()
    msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_DTOKEY)")
    xpl_command("TDS/GTNXI/DTO _" .. device_id)
end,
function()
    msfs_rpn("0 (>L:TDSGTNXI650U" .. device_id .. "_DTOKEY)")
end)


-- Add dial top
dial_top = dial_add("rotary_black.png", 0, 4, 152, 152, function(direction)
    if direction == 1 then
        msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_LKnobInc)")
        xpl_command("TDS/GTNXI/VOL_CW_" .. device_id)
    elseif direction == -1 then
        msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_LKnobDec)")
        xpl_command("TDS/GTNXI/VOL_CCW_" .. device_id)
    end
end)
img_add("rotary.png", 33, 37, 86, 86)


-- Add dial bottom
dial_bottom_outer = dial_add("xl_rotary_black.png", 1419, 465, 200, 200, function(direction)
    if direction == 1 then
        msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_RKnobOuterInc)")
    elseif direction == -1 then
        msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_RKnobOuterDec)")
    end
end)
img_add("xl_rotary.png", 1451, 497, 136, 136)
img_add("rotary_shadow.png", 1446, 512, 146, 146)

dial_bottom_inner = dial_add("inner_rotary_black.png", 1470, 516, 98, 98, function(direction)
    if direction == 1 then
        msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_RKnobInnerInc)")
        xpl_command("TDS/GTNXI/FMS_OUTER_CW_" .. device_id)
    elseif direction == -1 then
        msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_RKnobInnerDec)")
        xpl_command("TDS/GTNXI/FMS_OUTER_CCW_" .. device_id)
    end
end)
mouse_setting(dial_bottom_inner, "CURSOR_LEFT", "ctr_cursor_ccw.png")
mouse_setting(dial_bottom_inner, "CURSOR_RIGHT", "ctr_cursor_cw.png")
img_add("inner_rotary.png", 1470, 516, 98, 98)


-- Add rotary push functions
push_top = button_add(nil, "click.png", 56, 60, 40, 40, function()
    msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_LKnobCRSR)")
    xpl_command("TDS/GTNXI/VOL_PUSH_" .. device_id)
end,
function()
    msfs_rpn("0 (>L:TDSGTNXI650U" .. device_id .. "_LKnobCRSR)")
end)
push_bottom = button_add(nil, "click.png", 1499, 545, 40, 40, function()
    msfs_rpn("1 (>L:TDSGTNXI650U" .. device_id .. "_RKnobCRSR) ")
    xpl_command("TDS/GTNXI/FMS_PUSH_" .. device_id)
end,
function()
    msfs_rpn("0 (>L:TDSGTNXI650U" .. device_id .. "_RKnobCRSR) ")
end)


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Home and Direct to - by cinrac@gmail.com - 06-16-2026, 02:31 AM
RE: Home and Direct to - by adminOwner2 - 06-16-2026, 07:02 AM
RE: Home and Direct to - by cinrac@gmail.com - 06-18-2026, 04:36 AM
RE: Home and Direct to - by adminOwner2 - 06-18-2026, 07:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)