Subversion Repositories NaviCtrl

Rev

Rev 163 | Rev 171 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 163 Rev 165
Line 421... Line 421...
421
                                if(pWaypoint->Position.Status == INVALID)
421
                                        if(pWaypoint->Position.Status == INVALID)
422
                                {  // clear WP List
422
                                        {  // clear WP List
423
                                        WPList_Clear();
423
                                                WPList_Clear();
424
                                        oldIndex = 0x00;
424
                                                oldIndex = 0x00;
425
                                        GPS_pWaypoint = WPList_Begin();
425
                                                GPS_pWaypoint = WPList_Begin();
426
                                        //UART1_PutString("\r\nClear WP List\r\n");
-
 
427
                                        UART1_Request_NewWaypoint = TRUE;
426
                                                UART1_Request_NewWaypoint = TRUE;
428
                                }
427
                                        }
429
                                else if (pWaypoint->Position.Status == NEWDATA)
428
                                        else if (pWaypoint->Position.Status == NEWDATA)
430
                                {  // app current WP to the list
429
                                        {  // app current WP to the list
431
                                         sprintf(text, "\r\nAdd WP: Index= %d, oldIndex = %d\r\n", pWaypoint->Index, oldIndex);
-
 
432
                                         UART1_PutString(text);
-
 
433
                                         
-
 
434
                                         if (pWaypoint->Index == oldIndex + 1)
430
                                                 if (pWaypoint->Index == oldIndex + 1)
435
                                        {
431
                                                {
436
                                          WPList_Append(pWaypoint);
432
                                                        WPList_Append(pWaypoint);
437
                                          BeepTime = 500;
433
                                                        BeepTime = 500;
438
                                          oldIndex = pWaypoint->Index;
434
                                                        oldIndex = pWaypoint->Index;
439
                                          UART1_Request_NewWaypoint = TRUE;
435
                                                        UART1_Request_NewWaypoint = TRUE;
440
                                         }
436
                                                }
441
                                         
-
 
442
                                   
-
 
443
                                }
437
                                        }
444
                           }
438
                                }
445
                                break;
439
                                break;
Line 446... Line 440...
446
 
440