From e1fc8d9dc2ffdd97302c4592550f3619af4ae6e5 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Thu, 7 Sep 2017 02:00:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=A0=95=20=ED=8A=9C=EB=8B=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- test/test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)