trying to fix antennas twitching

This commit is contained in:
apirrone 2025-05-05 14:29:46 +02:00
parent 5c98678632
commit 2578393add

View file

@ -39,7 +39,7 @@ class Antennas:
:param servo: 1 for the first servo, 2 for the second servo :param servo: 1 for the first servo, 2 for the second servo
:param value: A float between -1 and 1 :param value: A float between -1 and 1
""" """
print("servo {servo} : {value}")
if value < 0.1: if value < 0.1:
if servo == 1 and not self.pwm1_set: if servo == 1 and not self.pwm1_set:
self.pwm1.ChangeDutyCycle(7) self.pwm1.ChangeDutyCycle(7)