sentry_gimbal_hzz/application/robot.c

41 lines
691 B
C
Raw Normal View History

#include "bsp_init.h"
#include "robot.h"
#include "robot_def.h"
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
#include "chassis.h"
#endif
#if defined(ONE_BOARD) || defined(GIMBAL_BOARD)
#include "gimbal.h"
#include "shoot.h"
#include "robot_cmd.h"
#endif
void RobotInit()
{
BSPInit();
#if defined(ONE_BOARD) || defined(GIMBAL_BOARD)
2023-01-01 17:32:22 +08:00
RobotCMDInit();
GimbalInit();
ShootInit();
#endif
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
ChassisInit();
#endif
}
void RobotTask()
{
#if defined(ONE_BOARD) || defined(GIMBAL_BOARD)
2022-12-19 17:15:42 +08:00
RobotCMDTask();
GimbalTask();
ShootTask();
#endif
#if defined(ONE_BOARD) || defined(CHASSIS_BOARD)
ChassisTask();
#endif
}