From 5b5de073113774a4e0084183e9dcdb3b4b8b9f0f Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Fri, 25 Feb 2022 19:16:59 +0100 Subject: [PATCH] add debug logs --- pkg/actuator/steering.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/actuator/steering.go b/pkg/actuator/steering.go index 5d9c395..cfd3574 100644 --- a/pkg/actuator/steering.go +++ b/pkg/actuator/steering.go @@ -36,6 +36,7 @@ func (s *Steering) SetPercentValue(p float32) { } else if p < 0 { pulse = util.MapRange(float64(p), LeftAngle, 0, float64(s.leftPWM), float64(s.centerPWM)) } + zap.S().Debugf("convert steering %v to %v", p, pulse) s.SetPulse(pulse) }