Rev 285 | Rev 295 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 285 | Rev 291 | ||
---|---|---|---|
Line 400... | Line 400... | ||
400 | UART1_Request_ErrorMessage = TRUE; |
400 | UART1_Request_ErrorMessage = TRUE; |
401 | break; |
401 | break; |
Line 402... | Line 402... | ||
402 | 402 | ||
403 | case 's':// new target position |
403 | case 's':// new target position |
404 | pPoint = (Point_t*)SerialMsg.pData; |
- | |
405 | BeepTime = 300; |
404 | pPoint = (Point_t*)SerialMsg.pData; |
406 | if(pPoint->Position.Status == NEWDATA) |
405 | if(pPoint->Position.Status == NEWDATA) |
- | 406 | { |
|
- | 407 | if(pPoint->Type == POINT_TYPE_POI) |
|
407 | { |
408 | { |
408 | PointList_Clear(); // empty List |
409 | PointList_Clear(); // empty List |
- | 410 | pPoint->Index = 1; // must be one after empty list |
|
- | 411 | POICount = 0; |
|
- | 412 | PointList_Append(pPoint); |
|
- | 413 | PointCount = 2; |
|
- | 414 | BeepTime = 50; |
|
- | 415 | } |
|
- | 416 | else |
|
- | 417 | if(pPoint->Type == POINT_TYPE_WP) |
|
- | 418 | { |
|
- | 419 | PointList_Clear(); // empty List |
|
- | 420 | PointCount = 1; |
|
- | 421 | pPoint->Index = 2; // No. 1 could be the POI |
|
- | 422 | WPCount = 0; |
|
- | 423 | PointList_Append(pPoint); |
|
- | 424 | PointCount = 2; |
|
- | 425 | BeepTime = 50; |
|
- | 426 | GPS_pWaypoint = PointList_WPBegin(); |
|
- | 427 | } |
|
- | 428 | else |
|
- | 429 | if(pPoint->Type == POINT_TYPE_BOTH) |
|
- | 430 | { |
|
- | 431 | PointList_Clear(); // empty List |
|
- | 432 | pPoint->Index = 1; |
|
- | 433 | pPoint->Type = POINT_TYPE_POI; |
|
- | 434 | PointList_Append(pPoint); |
|
- | 435 | pPoint->Index = 2; |
|
409 | pPoint->Index = 1; // must be one after empty list |
436 | pPoint->Type = POINT_TYPE_WP; |
- | 437 | PointList_Append(pPoint); |
|
- | 438 | BeepTime = 50; |
|
- | 439 | GPS_pWaypoint = PointList_WPBegin(); |
|
- | 440 | } |
|
- | 441 | else |
|
- | 442 | { |
|
410 | PointList_Append(pPoint); |
443 | PointList_Clear(); // empty List |
- | 444 | GPS_pWaypoint = PointList_WPBegin(); |
|
411 | GPS_pWaypoint = PointList_WPBegin(); |
445 | } |
412 | } |
446 | } |
Line 413... | Line 447... | ||
413 | break; |
447 | break; |
414 | 448 |