Skip to content

Commit

Permalink
Fix pca
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendJan committed Jan 24, 2024
1 parent 44dcc7d commit 4672b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ class PCA_Servo:
def __init__(self, servo_name, servo_obj, pca_update_func):
self.pin = servo_obj["pin"]
self.name = servo_name
self.pca_update_func = pca_update_func
self.pca_update_func = pca_update_func["set_pwm"]
self.min_pulse = 544
if "min_pulse" in servo_obj:
self.min_pulse = servo_obj["min_pulse"]
Expand Down Expand Up @@ -1111,7 +1111,7 @@ def set_servo_angle_service(self, req):

class PCA_Motor(Motor):
def __init__(self, motor_name, motor_obj, pca_update_func):
self.pca_update_func = pca_update_func
self.pca_update_func = pca_update_func["set_pwm"]
self.pin_A = motor_obj["pin_A"]
self.pin_B = motor_obj["pin_B"]
self.name = motor_name
Expand Down

0 comments on commit 4672b55

Please sign in to comment.