diff --git a/main.go b/main.go index 94fff83..b4e9cdb 100644 --- a/main.go +++ b/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) diff --git a/test/test.go b/test/test.go index f47b4ba..e6a0454 100644 --- a/test/test.go +++ b/test/test.go @@ -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)