This commit is contained in:
Robofish 2026-03-18 02:23:22 +08:00
parent ec3d36ff08
commit 480e41e68a
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ extern Chassis_t chassis;
void Cap_Control(CAN_SuperCapRXDataTypeDef *cap, const Referee_ForCap_t *referee) void Cap_Control(CAN_SuperCapRXDataTypeDef *cap, const Referee_ForCap_t *referee)
{ {
if (CAN_SuperCapRXData.SuperCapEnergy<=5)chassis.power_limit = referee->chassis_power_limit ; if (CAN_SuperCapRXData.SuperCapEnergy<=100)chassis.power_limit = referee->chassis_power_limit ;
else chassis.power_limit = -1; else chassis.power_limit = -1;
/* /*

View File

@ -641,9 +641,9 @@ int8_t CMD_Arbitrate(CMD_t *ctx) {
// if (ctx->input.rc.sw[0] == CMD_SW_DOWN) { // if (ctx->input.rc.sw[0] == CMD_SW_DOWN) {
// ctx->output.gimbal.source = CMD_SRC_NUC; // ctx->output.gimbal.source = CMD_SRC_NUC;
// ctx->output.shoot.source = CMD_SRC_NUC; // ctx->output.shoot.source = CMD_SRC_NUC;
// #if CMD_ENABLE_MODULE_REFUI #if CMD_ENABLE_MODULE_REFUI
// ctx->output.refui.source = CMD_SRC_NUC; ctx->output.refui.source = CMD_SRC_NUC;
// #endif #endif
// } // }
// } // }
// } // }