Subversion Repositories FlightCtrl

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1775 - 1
Navigation language def:
2
 
3
Som funktion af t:
4
- Pos.
5
- Hoejde
6
- Synsretning (X-akse antaget vandret?) (som: Fast, lineaer, as-takeoff, at-position, look-forward)
7
- Evt. naeseretning (som: Fast, lineaer, follow-look, as-takeoff, head-at, tail-at, point-forward)
8
 
9
- Positionsfunktion interpoleret mellem waypoints
10
- Hoejde det samme
11
- Retninger det samme
12
 
13
- For hvert waypoint:
14
  Position
15
  Hoejde
16
  Standtid
17
  Se-retning??? (i hvert optional)
18
 
19
- Valgmuligheder for positions-interpolation: Rette linier, curvefitting af en eller flere slags...
20
 
21
<flight>
22
  <waypoint lon="...." lat="...." height="...." />
23
  <leg pos-interpolation="linear" />
24
  <waypoint lon="...." lat="...." height="...." head="270" />
25
  <leg pos-interpolation="linear" head="linear" />
26
  <waypoint lon="...." lat="...." height="...." head="180" />
27
</flight>
28
 
29
class Waypoint {
30
      Coordinates pos;
31
      int height;
32
      int heading;
33
}
34
 
35
function linear-height(Waypoint w1, Waypoint w2, float x) {
36
      return w1.height + (w2.height - w1.height) * x;
37
}
38
 
39
Fancy udgave:
40
 
41
<waypoint>
42
  <lat></lat>
43
  <lon></lon>
44
  <height></height>
45
</waypoint>
46
<leg>
47
  <height>linear(w_o, w_t)</height>
48
</leg>
49
 
50
 
51
 
52
2 interpreters: 1 til Google Maps ell l og 1 til navi-ctrl.