I am trying to use a teensy 2.0 to modify weather variables as sort of an instructor console.
I seem to be having trouble with this dataref, specifically.
/sim/weather/wind_speed_kt[0] int 660+ yes kts >= 0 The wind speed in knots.
In the communications window it seems like it is writing to /sim/weather/wind_speed_kt (which is not the same and NOT writable) and the value is not changing.
In other words it seems to be ignoring the braces..
in setup I am defining it as
windSpeed = XPlaneRef("sim/weather/wind_speed_kt[0]");
A couple of notes.......
I can change the sim/weather/wind_speed_kt[0] value in the dataref editor and get the desired effect.
I have modifed a different dataref (via the teensy to test communications) "/sim/weather/visibility_reported_m" and get the desired affect.
It seems to be ignoring the [0] in the teensy to pc communications
any ideas?
I seem to be having trouble with this dataref, specifically.
/sim/weather/wind_speed_kt[0] int 660+ yes kts >= 0 The wind speed in knots.
In the communications window it seems like it is writing to /sim/weather/wind_speed_kt (which is not the same and NOT writable) and the value is not changing.
In other words it seems to be ignoring the braces..
in setup I am defining it as
windSpeed = XPlaneRef("sim/weather/wind_speed_kt[0]");
A couple of notes.......
I can change the sim/weather/wind_speed_kt[0] value in the dataref editor and get the desired effect.
I have modifed a different dataref (via the teensy to test communications) "/sim/weather/visibility_reported_m" and get the desired affect.
It seems to be ignoring the [0] in the teensy to pc communications
any ideas?