Xplane move aircraft

Status
Not open for further replies.
The Xplane support lets you write to any datarefs. You could try writing to 4 float variables for these datarefs:

sim/flightmodel/position/latitude
sim/flightmodel/position/longitude
sim/flightmodel/position/elevation
sim/flightmodel/position/y_agl

To make a button do this, I highly recommend using the Bounce library. Look at File > Examples > Teensy > USB_FlightSim > NavFrequency for an example that uses Bounce to read buttons.

Hopefully this should be as simple as just writing numbers to those 4 variables when button.fallingEdge() is true. You'll need to know the coordinates for Edinburgh. ;)
 
Paul.

Thanks for taking the time to respond, I understood the lat and lon dataref to be read only certainly nothing appears to happen when I try writing to them
 
Status
Not open for further replies.
Back
Top