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)
|
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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -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
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user