Skip to content

Commit

Permalink
adjust control timings
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Jun 28, 2020
1 parent a56b1b3 commit a461bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/control_pid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void pidController::simpleHysteresis() {
}

if (pidInput < (setpoint - 0.4)) {
if (onTime >= 3000) {
if (onTime >= 4000) {
b->heater.off();
} else if (offTime >= 5000) {
b->heater.on();
Expand All @@ -88,7 +88,7 @@ void pidController::simpleHysteresis() {
}

if (pidInput < setpoint) {
if (onTime >= 2000) {
if (onTime >= 3000) {
b->heater.off();
} else if (offTime >= 10000) {
b->heater.on();
Expand Down

0 comments on commit a461bbb

Please sign in to comment.