Jump to content

FA-18C Standby Pressure Altimeter


towsim

Recommended Posts

Dear Modders,

I need help for the remote control of the pressure setting turn button. What I tried up to now:

 

Export.lua:

From devices.lua (included via ‘dofile’) I found the AAU-52/A as index 26

Altimeter = GetDevice(26)

 

From my DLL (included via: warrior = require(‘spinWarrior’) I get the step value to the variable ‘val’, which works reliable.

val = warrior.AltimeterSetting()

val can be a positive or negative step value, depending on the turn direction.

 

In command_defs.lua I found the only AAU-52/A command as 3000. Therefore, I make the next call in export.lua, text line 51:

Altimeter:performClickableAction(3000,val)

 

At this point, LUA detected an error in the call. I inspected the DCS log file and found the entry

Export.lua"]:51: attempt to index upvalue 'Altimeter' (a number value)

 

In another project with the A10, this procedure sequence worked very well.

 

Does anybody know, how to get this turn button under control?

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • Recently Browsing   0 members

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