/** function to be called periodically */
void bd_manage_from_speed_cmd(struct blocking_detection * bd,
int32_t speed, int32_t cmd)
/** function to be called periodically */
void bd_manage_from_speed_cmd(struct blocking_detection * bd,
int32_t speed, int32_t cmd)
* has the same sign than i */
if ((uint32_t)ABS(i) > bd->i_thres &&
(bd->speed_thres == 0 || ABS(speed) < bd->speed_thres) &&
* has the same sign than i */
if ((uint32_t)ABS(i) > bd->i_thres &&
(bd->speed_thres == 0 || ABS(speed) < bd->speed_thres) &&
if (bd->cpt == bd->cpt_thres - 1)
WARNING(E_BLOCKING_DETECTION_MANAGER,
"BLOCKING cmd=%ld, speed=%ld i=%ld",
if (bd->cpt == bd->cpt_thres - 1)
WARNING(E_BLOCKING_DETECTION_MANAGER,
"BLOCKING cmd=%ld, speed=%ld i=%ld",