From c24e0103e2afb632ed52aaba341e3680e862595b Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Tue, 29 Mar 2022 19:47:22 +0200 Subject: [PATCH] test default value --- pkg/actuator/steering.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/actuator/steering.go b/pkg/actuator/steering.go index cfd3574..9f8e7be 100644 --- a/pkg/actuator/steering.go +++ b/pkg/actuator/steering.go @@ -30,7 +30,7 @@ func (s *Steering) SetPulse(pulse int) { func (s *Steering) SetPercentValue(p float32) { // map absolute angle to angle that vehicle can implement. - pulse := s.centerPWM + pulse := 0 if p > 0 { pulse = util.MapRange(float64(p), 0, RightAngle, float64(s.centerPWM), float64(s.rightPWM)) } else if p < 0 {