Jump to content

Export.lua help for Control Loader (FFB) Software


Recommended Posts

Posted

Hi,

 

 

Am looking to add DCS support to my control loader (ffb) software and have made some progress. I'm able to read telemetry (airspeed, AoA etc) and write commands back (control axis positions) via Export.lua however am having issues with some other data and commands...

 

 

I need to be able to identify when A/P becomes active and then when it is disengaged. I then need to be able to cancel the virtual offset that DCS A/P introduces - it appears similar to the effect of trimming which also introduces a position offset to the controls - so I was looking to the various trim commands to handle this.

 

 

However...

 

 

1. The LoGetMCPState() call doesn't seem to return any data for the "AutopilotOn" element. The key is there but value always false

 

 

2. I can't get any of the trim related Commands to have any effect..

 

 

for example - none of these seems to have an effect

 

LoSetCommand(97) -- plane trim cancel

LoSetCommand(1106) -- PlaneEmerTrimNeutral 1106

LoSetCommand(2023, 0.0) -- PlaneTrimRollAbs

LoSetCommand(2020, 0.0) -- PlaneTrimRoll 2020

 

 

I'm using v2.5.3 and the basic Su-25T aircraft for testing.

 

 

Any suggestions? Are there known issues with these commands?

 

 

 

I could be using the commands incorrectly - but even simple calls made in LuaExportBeforeNextFrame() don't appear to have any effect on the trim when calls to set axis position for example do work.

 

 

Thanks...

  • Recently Browsing   0 members

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