add debug logs

This commit is contained in:
Cyrille Nofficial 2022-02-25 19:16:59 +01:00
parent a17b818962
commit 5b5de07311

View File

@ -36,6 +36,7 @@ func (s *Steering) SetPercentValue(p float32) {
} else if p < 0 { } else if p < 0 {
pulse = util.MapRange(float64(p), LeftAngle, 0, float64(s.leftPWM), float64(s.centerPWM)) 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) s.SetPulse(pulse)
} }