add debug logs
This commit is contained in:
parent
a17b818962
commit
5b5de07311
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user