Expose waypoint heading/course to Nasal.
This commit is contained in:
parent
aa3333cd31
commit
a1169e4f75
1 changed files with 2 additions and 0 deletions
|
@ -443,6 +443,8 @@ static const char* waypointCommonGetMember(naContext c, Waypt* wpt, const char*
|
|||
} else {
|
||||
*out = stringToNasal(c, wpt->flag(WPT_OVERFLIGHT) ? "flyOver" : "flyBy");
|
||||
}
|
||||
} else if (!strcmp(fieldName, "heading_course")) {
|
||||
*out = naNum(wpt->headingRadialDeg());
|
||||
} else {
|
||||
return NULL; // member not found
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue