[simpits-tech] CIM programming to FSUIPC Offsets?

David C. Allen allendc at qwest.net
Tue Jul 22 14:03:03 PDT 2008


>Do you mean code for the AC360 gauges?  Not yet - I had forgotten to order
>interconnect hardware when I first got them and I place the part order
>yesterday.

I think Leo drives his gauges with a 0 to 5vdc signal, and his gauge 
converts that voltage to angular position.

So I am using just the 0 to 5vdc analog out

>It'll go something like this though:
>
>Airspeed = CIM:GetNumericValue("AIRSPEED")
>NeedlePos = CIM:Scale(InMin, InMax, OutMin, OutMax, Airspeed)
>CIM:SetGauge("AIRSPEED", NeedlePos)
>
>GetNumericValue() would look up the value that matches the name "AIRSPEED"
>in whatever sim you're using and return it.

How do you define the name "AIRSPEED" to FSUIPC offsets 02BC

"02BC   4       IAS: Indicated Air Speed, as knots * 128 "

David 



More information about the Simpits-tech mailing list