Subversion Repositories Projects

Rev

Rev 265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 265 Rev 266
Line 45... Line 45...
45
 
45
 
Line 46... Line 46...
46
    public long flying_start=-1;
46
    public long flying_start=-1;
47
   
47
   
-
 
48
    public int heading_start=0;
Line -... Line 49...
-
 
49
    public int last_heading=0;
-
 
50
    public int max_speed=0;
-
 
51
 
-
 
52
 
-
 
53
    public long speed_sum=0;
-
 
54
    public int speed_cnt=1;
-
 
55
 
-
 
56
    public int max_alt=0;
-
 
57
 
-
 
58
    public int avg_speed()
-
 
59
    {
-
 
60
        return (int)(speed_sum/speed_cnt);
-
 
61
    }
-
 
62
    public void process_speed(int speed)
-
 
63
    {
-
 
64
        if (speed>max_speed)
-
 
65
            max_speed=speed;
-
 
66
        speed_sum+=speed;
-
 
67
        speed_cnt++;
-
 
68
    }
-
 
69
 
-
 
70
    public void process_alt(int alt)
-
 
71
    {
-
 
72
        if (alt>max_alt)
48
    public int heading_start=0;
73
            max_alt=alt;
49
    public int last_heading=0;
74
 
50
 
75
    }
Line 51... Line 76...
51
    public void process_mkflags(int flags)
76
    public void process_mkflags(int flags)