修改反馈给自主计算机速度指令为50ms
This commit is contained in:
@@ -498,8 +498,7 @@ void ethernetSendAll(void *signal_id)
|
|||||||
}
|
}
|
||||||
un_computer_output.bit_data.crc = (uint8_t)crc_temp;
|
un_computer_output.bit_data.crc = (uint8_t)crc_temp;
|
||||||
|
|
||||||
UdpSendToData(UDPCB_1,(uint8_t *)(&un_computer_output.arr[0]), 11, (uint8_t *)ðernet_parameter.computer_ip[0], COMMUNICATION_PORT);
|
UdpSendToData(UDPCB_1,(uint8_t *)(&un_computer_output.arr[0]), 11, (uint8_t *)ðernet_parameter.computer_ip[0], COMMUNICATION_PORT);
|
||||||
UdpSendToData(UDPCB_4,(uint8_t *)(&un_computer_output.arr[0]), 11, (uint8_t *)ðernet_parameter.computer_ip[0], COMMUNICATION_PORT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -520,7 +519,7 @@ static void ethernetInterfaceTimerProcess(void *signal_id)
|
|||||||
|
|
||||||
ethernetTimerProcess();//<2F><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
ethernetTimerProcess();//<2F><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>
|
||||||
|
|
||||||
timerStart(ðernet_timer_interface, 100,1); //100ms<6D><73><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
timerStart(ðernet_timer_interface, 50,1); //100ms<6D><73><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||||
|
|
||||||
// printf("ethernetInterface spend time:%d\n",getCurrentTime() - time_boot);//<2F><><EFBFBD><EFBFBD>app<70><70><EFBFBD>˶ʱ<E0B3A4><CAB1>
|
// printf("ethernetInterface spend time:%d\n",getCurrentTime() - time_boot);//<2F><><EFBFBD><EFBFBD>app<70><70><EFBFBD>˶ʱ<E0B3A4><CAB1>
|
||||||
}
|
}
|
||||||
@@ -664,7 +663,7 @@ void ethernetInterfaceInit(void)
|
|||||||
subscribe(&request_send, OnParamSend);
|
subscribe(&request_send, OnParamSend);
|
||||||
|
|
||||||
|
|
||||||
timerStart(ðernet_timer_interface, 100,1); //100ms<6D><73><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
timerStart(ðernet_timer_interface, 50,1); //100ms<6D><73><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||||
timerStart(ðernet_timer_interface1, 10,1); //10ms<6D><73><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
timerStart(ðernet_timer_interface1, 10,1); //10ms<6D><73><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||||
|
|
||||||
printf( "ethernetInterface: initial OK %d\n",getCurrentTime());
|
printf( "ethernetInterface: initial OK %d\n",getCurrentTime());
|
||||||
|
|||||||
Reference in New Issue
Block a user