Go to most recent revision | Blame | Last modification | View Log | RSS feed
Navigation language def:
Som funktion af t:
- Pos.
- Hoejde
- Synsretning (X-akse antaget vandret?) (som: Fast, lineaer, as-takeoff, at-position, look-forward)
- Evt. naeseretning (som: Fast, lineaer, follow-look, as-takeoff, head-at, tail-at, point-forward)
- Positionsfunktion interpoleret mellem waypoints
- Hoejde det samme
- Retninger det samme
- For hvert waypoint:
Position
Hoejde
Standtid
Se-retning??? (i hvert optional)
- Valgmuligheder for positions-interpolation: Rette linier, curvefitting af en eller flere slags...
<flight>
<waypoint lon="...." lat="...." height="...." />
<leg pos-interpolation="linear" />
<waypoint lon="...." lat="...." height="...." head="270" />
<leg pos-interpolation="linear" head="linear" />
<waypoint lon="...." lat="...." height="...." head="180" />
</flight>
class Waypoint {
Coordinates pos;
int height;
int heading;
}
function linear-height(Waypoint w1, Waypoint w2, float x) {
return w1.height + (w2.height - w1.height) * x;
}
Fancy udgave:
<waypoint>
<lat></lat>
<lon></lon>
<height></height>
</waypoint>
<leg>
<height>linear(w_o, w_t)</height>
</leg>
2 interpreters: 1 til Google Maps ell l og 1 til navi-ctrl.