From: Joseph Coffland Date: Fri, 16 Feb 2018 04:50:59 +0000 (-0800) Subject: Load limit duty cycle w/ lockout X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=e609c638477ae95fbf7d143a8b164f282871d911;p=bbctrl-firmware Load limit duty cycle w/ lockout --- diff --git a/src/pwr/main.c b/src/pwr/main.c index 27061ef..e525688 100644 --- a/src/pwr/main.c +++ b/src/pwr/main.c @@ -180,7 +180,7 @@ static void measure_nominal_voltage() { static void check_load(load_t *load) { bool overtemp = CURRENT_OVERTEMP * 100 < regs[load->reg]; if (overtemp && !load->lockout) { - load->lockout = 42; // About 200 ms + load->lockout = 210; // About 1s if (load->limit < LOAD_LIMIT_TICKS) load->limit++; }