Hi
thanks to this post I manage to program my pit of F18 with the SIOC.
But I can not program the ON / OFF / ON switch
because the structure of the F18 is not the same:
clickabledata.lua
elements["pnt_331"]= springloaded_3_pos_tumb2(_("Fire and Bleed Air Test Switch, (RMB) TEST A/(LMB) TEST B"), devices.ENGINES_INTERFACE, engines_commands.FireTestBSw, engines_commands.FireTestASw, 331)
clickable_def.lua
function springloaded_3_pos_tumb2(hint_,device_,command1_,command2_,arg_,animation_speed_,val1_,val2_,val3_)
local element = springloaded_3_pos_tumb(hint_,device_,command1_,command2_,arg_,animation_speed_,val1_,val2_,val3_)
element.sound = {{SOUND_SW1_OFF, SOUND_SW1}, {SOUND_SW1, SOUND_SW1_OFF}}
return element
end
commands_def.lua
count = start_command
engines_commands =
{
APU_ControlSw = counter();
EngineCrankLSw = counter();
EngineCrankRSw = counter();
LAMADDecouplerHandle = counter();
RAMADDecouplerHandle = counter();
--
FireTestASw = counter();
FireTestBSw = counter();
--
FireExtghDischSw = counter();
APU_FireSw = counter();
LENG_FireSw = counter();
RENG_FireSw = counter();
LENG_FireSwCover = counter();
RENG_FireSwCover = counter();
--
AntiIceSw = counter();
-- input commands
EngineCrankLSw_EXT = counter();
EngineCrankRSw_EXT = counter();
APU_FireSw_ITER = counter();
LENG_FireSw_ITER = counter();
RENG_FireSw_ITER = counter();
LENG_FireSwCover_ITER = counter();
RENG_FireSwCover_ITER = counter();
AntiIceSw_ITER = counter();
APU_ControlSw_TM_WARTHOG = counter();
}
devices.lua
devices["ENGINES_INTERFACE"]= counter()--12 -- Cockpit interface to aircraft engines
I don't understand how can i do for this switch with SIOC and exportsupport.lua!!!