fix(steering): reverse direction

This commit is contained in:
Cyrille Nofficial
2022-06-16 15:24:56 +02:00
parent f046bead37
commit 0d183e0f0b
3 changed files with 13 additions and 13 deletions

View File

@@ -128,6 +128,7 @@ func main() {
dev,
throttleChannel,
actuator.PWM(throttleMinPWM), actuator.PWM(throttleMaxPWM), actuator.PWM(throttleStoppedPWM),
-1., 1.,
freq,
zap.S().With("actuator", "throttle"),
)
@@ -139,6 +140,7 @@ func main() {
dev,
steeringChannel,
actuator.PWM(steeringLeftPWM), actuator.PWM(steeringRightPWM), actuator.PWM(steeringCenterPWM),
1., -1.,
freq,
zap.S().With("actuator", "steering"),
)