增加调试功能,以及yaw补偿
This commit is contained in:
1 parent
267a659242
commit
957c535bda
257 files changed
+239436
-692
No files matched your search
@@ -12,6 +12,7 @@
|
||||
#include "shoot.h"
|
||||
#include "c_comm.h"
|
||||
#include "dr16.h"
|
||||
#include "robot_param.h" /* 必须包含:GIMBAL_BENCH_RAMMER_TUNE 等开关定义在此 */
|
||||
|
||||
/* shoot_task(云台板,2ms):摩擦轮/拨弹控制
|
||||
* 发射机构上电状态来自底盘 0x019(ctoc_shooter_power) */
|
||||
@@ -25,6 +26,15 @@ void shoot_task(void const * argument)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
#if GIMBAL_BENCH_RAMMER_TUNE
|
||||
/* ---- 台架调试工况:单机拨弹 ----------------------------------------
|
||||
* 只有 M2006(拨弹)+DT7 时使用:旁路 cmd_robot.online / gimbal_motor_offline /
|
||||
* ctoc_chassis_fault 全部门控,直接由 DT7 驱动拨弹盘。
|
||||
* 控制方式同整车遥控器模式:S1 上=使能、拨轮下=发射、拨轮上=退弹、中位=停;
|
||||
* 退弹由 shoot_bench_step() 内部做 转角/电流/超时 保护。 */
|
||||
shoot_bench_step();
|
||||
shoot_bench_send();
|
||||
#else
|
||||
if (cmd_robot.online && !gimbal_motor_offline() && !ctoc_chassis_fault())
|
||||
{
|
||||
shoot_control(cmd_robot.friction_on, cmd_robot.fire, cmd_robot.eject,
|
||||
@@ -35,6 +45,7 @@ void shoot_task(void const * argument)
|
||||
{
|
||||
shoot_output_zero();
|
||||
}
|
||||
#endif
|
||||
|
||||
monitor_heartbeat(HB_SHOOT);
|
||||
vTaskDelayUntil(&last_wake, pdMS_TO_TICKS(2));
|
||||
|
||||
Reference in new issue
Block a user