Skip to content

Commit

Permalink
use PID controller by default
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Sep 23, 2024
1 parent 3b07b17 commit e440807
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ func initializeObjects(pers persistence.Persistence) map[fans.Fan]controller.Fan
)
}
} else {
controlLoop = control_loop.NewDirectControlLoop(nil)
controlLoop = control_loop.NewPidControlLoop(
0.03,
0.002,
0.0005,
)
}

fanController := controller.NewFanController(pers, fan, controlLoop, updateRate)
Expand Down

0 comments on commit e440807

Please sign in to comment.