Skip to content

Commit

Permalink
fixed param goof
Browse files Browse the repository at this point in the history
  • Loading branch information
Mf-ff99 committed Aug 11, 2023
1 parent c7a8c2b commit 2658aac
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ function add_estimator(i)
params[i] = {}
params[i]['IDX'] = bind_add_param(id .. "IDX", pidx+0, 0)
params[i]['NCELL'] = bind_add_param(id .. "NCELL", pidx+1, 12)
params[i]['C1'] = bind_add_param(id .. "C1", pidx+2, 123.770)
params[i]['C2'] = bind_add_param(id .. "C2", pidx+3, 3.682)
params[i]['C1'] = bind_add_param(id .. "C1", pidx+2, 127.046)
params[i]['C2'] = bind_add_param(id .. "C2", pidx+3, 3.709)
end

local count = math.floor(BATT_SOC_COUNT:get())
Expand Down Expand Up @@ -229,13 +229,11 @@ end
hasBeenArmed = 0

function update()
local now_ms = millis()
if arming:is_armed() then
last_armed_ms = now_ms
hasBeenArmed = 1
return update, 1000
end
-- don't update for 10s after disarm, to get logging of charge recovery
-- don't update if the machine has been armed
if hasBeenArmed == 1 then
return update, 1000
end
Expand Down

0 comments on commit 2658aac

Please sign in to comment.