Is there a way to convert the number result from the Get Sensor Compass Heading function into text e.g. N, NE, E, S, SE , W etc?
I don't know what kind of number the function returns. Here's a way to convert a clockwise angle given in degrees:
Div ( Mod ( angle + 22.5 ; 360 ) ; 45 ) ;
"N" ; "NE" ; "E" ; "SE" ; "S" ; "SW" ; "W" ; "NW"
Couldn't you just do a simple calculation to determine the textual heading? Depending on how many textual directions you want (just 8? 16?), if the heading is between X and Y, the textual direction is Z. This could be a case statement with a case for each direction you want to return. I think the only issue would be determining which direction you return if the heading is exactly the middle between two.
Retrieving data ...