VR-Flight-Simulator icon indicating copy to clipboard operation
VR-Flight-Simulator copied to clipboard

Dataref Indexes?

Open bendanville opened this issue 3 years ago • 0 comments

Hey man, I realise it's been a long time since you posted this but do you remember how you worked out the numerical indexes for datarefs? I am wanting to build an educational tool with unity and xplane :) Thankyou for your attention!

speed = System.BitConverter.ToSingle(udpInput, index); pitch = System.BitConverter.ToSingle (udpInput, index + 36); roll = -System.BitConverter.ToSingle (udpInput, index + 40); heading = System.BitConverter.ToSingle (udpInput, index + 44); altitude = System.BitConverter.ToSingle (udpInput, index + 80);

bendanville avatar Feb 18 '22 05:02 bendanville