Subversion Repositories NaviCtrl

Rev

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

Rev 516 Rev 517
Line 74... Line 74...
74
u8 WPIndex = 0;         // list index of GPS point representig the current WP, can be maximal WPCount
74
u8 WPIndex = 0;         // list index of GPS point representig the current WP, can be maximal WPCount
75
u8 POIIndex = 0;        // list index of GPS Point representing the current POI, can be maximal WPCount
75
u8 POIIndex = 0;        // list index of GPS Point representing the current POI, can be maximal WPCount
76
u8 WPCount = 0;         // number of waypoints
76
u8 WPCount = 0;         // number of waypoints
77
u8 PointCount = 0;      // number of points in the list can be maximal equal to MAX_LIST_LEN
77
u8 PointCount = 0;      // number of points in the list can be maximal equal to MAX_LIST_LEN
78
u8 POICount = 0;        // number of point of interest in the list
78
u8 POICount = 0;        // number of point of interest in the list
-
 
79
s16 HeadingOld = -1;
Line 79... Line 80...
79
 
80
 
Line 80... Line 81...
80
u8 WPActive = FALSE;
81
u8 WPActive = FALSE;
81
 
82
 
Line 93... Line 94...
93
    POICount = 0;
94
    POICount = 0;
94
        PointCount = 0; // no contents
95
        PointCount = 0; // no contents
95
        WPActive = FALSE;
96
        WPActive = FALSE;
96
        NaviData.WaypointNumber = WPCount;
97
        NaviData.WaypointNumber = WPCount;
97
        NaviData.WaypointIndex = 0;
98
        NaviData.WaypointIndex = 0;
98
 
99
       
99
        for(i = 0; i < MAX_LIST_LEN; i++)
100
        for(i = 0; i < MAX_LIST_LEN; i++)
100
        {
101
        {
101
                PointList[i].Position.Status = INVALID;
102
                PointList[i].Position.Status = INVALID;
102
                PointList[i].Position.Latitude = 0;
103
                PointList[i].Position.Latitude = 0;
103
                PointList[i].Position.Longitude = 0;
104
                PointList[i].Position.Longitude = 0;
Line 493... Line 494...
493
        u8 IsPointSection  = 0;
494
        u8 IsPointSection  = 0;
494
        u8 WPNumber = 0;
495
        u8 WPNumber = 0;
Line 495... Line 496...
495
 
496
 
496
        // clear point list first
497
        // clear point list first
497
        PointList_Clear();
-
 
-
 
498
        PointList_Clear();
498
 
499
        HeadingOld = -1; // updates the direction if the new direction is the same like last time
499
        UART1_PutString("\n\r Read ");
500
        UART1_PutString("\n\r Read ");
500
        UART1_PutString(filename);
501
        UART1_PutString(filename);
Line 501... Line 502...
501
        UART1_PutString("...");
502
        UART1_PutString("...");