설정 튜닝
This commit is contained in:
parent
a4bd4bc22f
commit
e1fc8d9dc2
4
main.go
4
main.go
|
@ -132,8 +132,8 @@ func CpuTempetureMonitoring(info *Processor, sampleDuration time.Duration, notif
|
|||
func CpuTempetureScraper(processorCount int, notifier <-chan TempetureChange, errorChan chan<- error, ctx context.Context, waiter *sync.WaitGroup) {
|
||||
defer waiter.Done()
|
||||
var (
|
||||
P, I, D = 1.5, 0.4, 2.0
|
||||
SetPoint = 40.0
|
||||
P, I, D = 1.5, 0.4, 1.0
|
||||
SetPoint = 35.0
|
||||
SampleTime = time.Second
|
||||
maxNoob, minNoob = 0x64, 0x4
|
||||
WindupGuard = float64(maxNoob - minNoob)
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// 실제 CPU온도환경 모델링
|
||||
func test_pid(P float64, I float64, D float64, L int) {
|
||||
pid := pid.New(P, I, D)
|
||||
pid.SetSetPoint(40.0)
|
||||
pid.SetSetPoint(37.0)
|
||||
pid.SetSampleTime(time.Second)
|
||||
pid.SetWindupGuard(96.0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue