Skip to content

Commit

Permalink
1.0.3, nav points
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardolardi committed Oct 25, 2020
1 parent 6a6172e commit 19fcaa7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ function startPolling() {
["GPS FLIGHT PLAN WP COUNT", "number"],
["GPS FLIGHT PLAN WP INDEX", "number"],
["GPS WP NEXT LAT", "degrees"],
["GPS WP NEXT LON", "degrees"]
["GPS WP NEXT LON", "degrees"],
["GPS WP DISTANCE", "meters"],
["GPS WP TRUE REQ HDG", "radians"]

], (response) => {
data = {
lat: response["Plane Latitude"],
Expand All @@ -122,7 +125,9 @@ function startPolling() {
speed: response["AIRSPEED INDICATED"],
wpCount: response["GPS FLIGHT PLAN WP COUNT"],
wpNextLat: response["GPS WP NEXT LAT"],
wpNextLon: response["GPS WP NEXT LON"]
wpNextLon: response["GPS WP NEXT LON"],
wpDistance: response["GPS WP DISTANCE"],
wpHead: response["GPS WP TRUE REQ HDG"]
};
log.log(data);
}, 0, 4, 1);
Expand Down

0 comments on commit 19fcaa7

Please sign in to comment.