Skip to content

Commit

Permalink
try sync the timer pwm to ac
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-bit committed Apr 18, 2023
1 parent 7e2e4c2 commit 3811aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ lib_deps =
powerbroker2/SerialTransfer@^3.1.3
https://github.com/denyssene/SimpleKalmanFilter.git
https://github.com/Seithan/EasyNextionLibrary.git#4bd06b2a428da3cfd17f54dfd654ff2da6867ddb
https://github.com/zer0-bit/PSM.Library.git#a1820f8f3b90973ce7629d8aed8ed133fc0bec37
https://github.com/zer0-bit/PSM.Library.git#7528194d9db46d9be81807e9851be4c758ef4256
https://github.com/banoz/HX711.git#cf81533c54abe259ef61d457d7db6eef94f6ea25
https://github.com/kc9zda/NCP5623.git
build_flags =
Expand Down
1 change: 1 addition & 0 deletions src/peripherals/pump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ constexpr std::array<float, 7> pressureInefficiencyCoefficient {{
// - max pump clicks(dependant on region power grid spec)
// - pump clicks at 0 pressure in the system
void pumpInit(const int powerLineFrequency, const float pumpFlowAtZero) {
pump.freq = powerLineFrequency;
maxPumpClicksPerSecond = powerLineFrequency;
flowPerClickAtZeroBar = pumpFlowAtZero;
fpc_multiplier = 60.f / (float)maxPumpClicksPerSecond;
Expand Down

0 comments on commit 3811aa7

Please sign in to comment.