Subversion Repositories NaviCtrl

Rev

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

Rev 295 Rev 296
Line 404... Line 404...
404
                                pPoint = (Point_t*)SerialMsg.pData;
404
                                pPoint = (Point_t*)SerialMsg.pData;
405
                                if(pPoint->Position.Status == NEWDATA)
405
                                if(pPoint->Position.Status == NEWDATA)
406
                                {
406
                                {
407
                                        //PointList_Clear(); // flush the list  
407
                                        //PointList_Clear(); // flush the list  
408
                                        pPoint->Index = 1; // must be one after empty list
408
                                        pPoint->Index = 1; // must be one after empty list
409
                                        PointList_SetAt(pPoint); // 
409
                                        PointList_SetAt(pPoint);
-
 
410
                                        if(FC.StatusFlags & FC_STATUS_FLY) PointList_WPActive(TRUE);
410
                                        GPS_pWaypoint = PointList_WPBegin(); // updates POI index
411
                                        GPS_pWaypoint = PointList_WPBegin(); // updates POI index
411
                                        BeepTime = 50;
412
                                        BeepTime = 50;
412
                                }
413
                                }
413
                                break;
414
                                break;
Line 452... Line 453...
452
                                                UART1_Request_WritePoint = 0; // return new point count 
453
                                                UART1_Request_WritePoint = 0; // return new point count 
453
                                        }
454
                                        }
454
                                        else
455
                                        else
455
                                        {  // update WP in list at index
456
                                        {  // update WP in list at index
456
                                                UART1_Request_WritePoint = PointList_SetAt(pPoint);
457
                                                UART1_Request_WritePoint = PointList_SetAt(pPoint);
-
 
458
                                                if(FC.StatusFlags & FC_STATUS_FLY) PointList_WPActive(TRUE);
457
                                                if(UART1_Request_WritePoint == pPoint->Index)
459
                                                if(UART1_Request_WritePoint == pPoint->Index)
458
                                                {
460
                                                {
459
                                                        BeepTime = 500;
461
                                                        BeepTime = 500;
460
                                                }
462
                                                }
461
                                        }
463
                                        }