mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
增加了文档,修改通信协议,更新了平衡底盘的VMC映射和五连杆解算,修复了双板通信数据结构步对齐的错误
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
|
||||
#include "chassis.h"
|
||||
#include "referee.h"
|
||||
#endif
|
||||
|
||||
#if defined(ONE_BOARD) || defined(GIMBAL_BOARD)
|
||||
@@ -19,6 +18,11 @@
|
||||
#include "robot_cmd.h"
|
||||
#endif
|
||||
|
||||
#ifdef BALANCE_BAORD
|
||||
#include "balance.h"
|
||||
#endif // BALANCE_BOARD
|
||||
|
||||
|
||||
void RobotInit()
|
||||
{
|
||||
// 关闭中断,防止在初始化过程中发生中断
|
||||
@@ -35,9 +39,13 @@ void RobotInit()
|
||||
#endif
|
||||
|
||||
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
|
||||
// Referee_Interactive_init();
|
||||
ChassisInit();
|
||||
#endif
|
||||
|
||||
#ifdef BALANCE_BAORD
|
||||
BalanceInit();
|
||||
#endif // BALANCE_BA
|
||||
|
||||
// 初始化完成,开启中断
|
||||
__enable_irq();
|
||||
}
|
||||
@@ -52,6 +60,9 @@ void RobotTask()
|
||||
|
||||
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
|
||||
ChassisTask();
|
||||
// Referee_Interactive_task();
|
||||
#endif
|
||||
|
||||
#ifdef BALANCE_BAORD
|
||||
BalanceTask();
|
||||
#endif // BALANCE_BA
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user