Subversion Repositories NaviCtrl

Rev

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

Rev 159 Rev 160
Line 432... Line 432...
432
 
432
 
433
                        case 'x'://  Read Waypoint from List
433
                        case 'x'://  Read Waypoint from List
434
                                UART1_Request_ReadWaypoint = SerialMsg.pData[0];
434
                                UART1_Request_ReadWaypoint = SerialMsg.pData[0];
Line 435... Line 435...
435
                                break;
435
                                break;
436
 
436
 
437
                        case 'p':// Set/Get NC-Parameter
437
                        case 'j':// Set/Get NC-Parameter
438
                                switch(SerialMsg.pData[0])
438
                                switch(SerialMsg.pData[0])
439
                                {
439
                                {
Line 582... Line 582...
582
        {
582
        {
583
                s16 ParamValue;
583
                s16 ParamValue;
584
                NCParams_GetValue(UART1_Request_ParameterId, &ParamValue);
584
                NCParams_GetValue(UART1_Request_ParameterId, &ParamValue);
585
                //sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue);
585
                //sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue);
586
                //UART1_PutString(text);
586
                //UART1_PutString(text);
587
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'P', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request
587
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'J', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request
588
                UART1_Request_Parameter = FALSE;
588
                UART1_Request_Parameter = FALSE;
589
        }
589
        }
590
        else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE))
590
        else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE))
591
        {
591
        {
592
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'Z', NC_ADDRESS, 1, &Echo, sizeof(Echo)); // answer the echo request
592
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'Z', NC_ADDRESS, 1, &Echo, sizeof(Echo)); // answer the echo request