lnls-dig / rffe-fw

Repository containing RFFE controller firmware
1 stars 0 forks source link

PID saturates after changing Kc parameter #4

Open lerwys opened 8 years ago

lerwys commented 8 years ago

Problem: When changing the Kc parameter via BSMP, the PID gets saturated

Possible solution: Add mutex between recv (), bsmp_process_packet (), send () to avoid race conditions. Also, we are using a blocking recv (). To effectively using a mutex () here, we would have to change the blocking recv () to use a non-blocking interface, such as select () or poll ().