Subversion Repositories NaviCtrl

Rev

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

Rev 64 Rev 65
Line 531... Line 531...
531
                {
531
                {
532
                        case 'e': // request for the text of the error status
532
                        case 'e': // request for the text of the error status
533
                                Request_ErrorMessage = TRUE;
533
                                Request_ErrorMessage = TRUE;
534
                                break;
534
                                break;
Line 535... Line -...
535
 
-
 
536
                        case 'o': // request for navigation information
-
 
537
                                NaviData_Interval = (u32) pRxData[0] * 10;
-
 
538
                                if(NaviData_Interval > 0) Request_NaviData = TRUE;
-
 
539
                                break;
-
 
540
 
535
 
541
                        case 's'://  new target position
536
                        case 's'://  new target position
542
                                pWaypoint = (Waypoint_t*)&pRxData[0];
537
                                pWaypoint = (Waypoint_t*)&pRxData[0];
543
                                BeepTime = 300;
538
                                BeepTime = 300;
544
                                if(pWaypoint->Position.Status == NEWDATA)
539
                                if(pWaypoint->Position.Status == NEWDATA)
Line 590... Line 585...
590
 
585
 
591
                        default:
586
                        default:
592
                                // unsupported command recieved
587
                                // unsupported command recieved
593
                                break;
588
                                break;
594
                } // case NC_ADDRESS
-
 
-
 
589
                } // case NC_ADDRESS
Line 595... Line 590...
595
 
590
                // "break;" is missing here to fall thru to the common commands
Line 596... Line 591...
596
 
591
 
597
                default:  // and any other Slave Address
592
                default:  // and any other Slave Address