I can access a variable that is a single number like this:
var planeLat = VarGet("A:PLANE LATITUDE" ,"Radians")
but I'm not sure how to access a structure, for example
var eyePointPos = VarGet("A:EYEPOINT POSITION" , "feet");
Where SDK says EYEPOINT POSITION is "SIMCONNECT_DATA_XYZ structure, feet"
When I try to access the retrieved value with :
document.getElementById('debug1').innerHTML = eyePointPos;
It returns "0"
With
document.getElementById('debug1').innerHTML = eyePointPos[0];
hoping to get the "X" value, it returns "undefined"
Maybe I can't store the return value from VarGet("A:EYEPOINT POSITION" , "feet") in a Javascript variable and access the X/Y/Z values?