fix cap
This commit is contained in:
parent
ec3d36ff08
commit
480e41e68a
@ -27,7 +27,7 @@ extern Chassis_t chassis;
|
||||
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;
|
||||
|
||||
/*
|
||||
|
||||
@ -641,9 +641,9 @@ int8_t CMD_Arbitrate(CMD_t *ctx) {
|
||||
// if (ctx->input.rc.sw[0] == CMD_SW_DOWN) {
|
||||
// ctx->output.gimbal.source = CMD_SRC_NUC;
|
||||
// ctx->output.shoot.source = CMD_SRC_NUC;
|
||||
// #if CMD_ENABLE_MODULE_REFUI
|
||||
// ctx->output.refui.source = CMD_SRC_NUC;
|
||||
// #endif
|
||||
#if CMD_ENABLE_MODULE_REFUI
|
||||
ctx->output.refui.source = CMD_SRC_NUC;
|
||||
#endif
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user