From 2bc1458eb7a44e6a76e957fb923d76b51c23850d Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Thu, 19 May 2022 17:58:25 +0200 Subject: [PATCH] fix: bad pin config for throttle controller --- pca9685/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pca9685/cli.py b/pca9685/cli.py index 57cd1e3..025f094 100644 --- a/pca9685/cli.py +++ b/pca9685/cli.py @@ -120,7 +120,7 @@ def execute_from_command_line(): client = init_mqtt_steering_client(steering_controller=steering, broker_host=broker_host, user=user, password=password, client_id=client_id, steering_topic=topic) elif args["throttle"]: - throttle_pin = donkeycar.parts.pins.pwm_pin_by_id("PCA9685.0:40.7") + throttle_pin = donkeycar.parts.pins.pwm_pin_by_id(pin_id) controller = actuator.PulseController(throttle_pin) throttle = actuator.PWMThrottle(controller=controller, max_pulse=int(args["--max-pulse"]), min_pulse=int(args["--min-pulse"]), zero_pulse=int(args["--zero-pulse"]))