very very stupid mistake LMAO
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m50s
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m50s
This commit is contained in:
parent
b48f00b798
commit
9bee9f93a2
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2573,7 +2573,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tesla-charge-controller"
|
||||
version = "1.0.17"
|
||||
version = "1.0.18"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"chrono",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tesla-charge-controller"
|
||||
version = "1.0.17"
|
||||
version = "1.0.18"
|
||||
edition = "2021"
|
||||
license = "MITNFA"
|
||||
description = "Controls Tesla charge rate based on solar charge data"
|
||||
|
|
|
@ -107,7 +107,7 @@ impl PidLoop {
|
|||
charge_state: &ChargeState,
|
||||
delta_time: f64,
|
||||
) -> Option<i64> {
|
||||
let error = pl_state.target_voltage - pl_state.battery_voltage;
|
||||
let error = pl_state.battery_voltage - pl_state.target_voltage;
|
||||
let derivative = (error - self.previous_error) / delta_time;
|
||||
let config = access_config();
|
||||
let extra_offsets = if pl_state.internal_load_current > 1. {
|
||||
|
|
Loading…
Reference in a new issue