mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
合并后
This commit is contained in:
@@ -39,11 +39,11 @@ void RobotInit()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
|
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
|
||||||
ChassisInit();
|
// ChassisInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BALANCE_BAORD
|
#ifdef BALANCE_BAORD
|
||||||
BalanceInit();
|
// BalanceInit();
|
||||||
#endif // BALANCE_BA
|
#endif // BALANCE_BA
|
||||||
|
|
||||||
// 初始化完成,开启中断
|
// 初始化完成,开启中断
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ void RefereeSend()
|
|||||||
{
|
{
|
||||||
USARTSend(referee_usart_instance, (uint8_t *)(&referee_tx_buffer.buffer), referee_tx_buffer.pos,USART_TRANSFER_DMA);
|
USARTSend(referee_usart_instance, (uint8_t *)(&referee_tx_buffer.buffer), referee_tx_buffer.pos,USART_TRANSFER_DMA);
|
||||||
referee_tx_buffer.pos=0;
|
referee_tx_buffer.pos=0;
|
||||||
/* syhtodo DMA请求过快会导致数据发送丢失,考虑数据尽可能打成一个整包以及队列发送,并且发送函数添加缓冲区 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user