VR-Flight-Simulator
VR-Flight-Simulator copied to clipboard
Dataref Indexes?
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);