mirror of
https://github.com/apirrone/Open_Duck_Mini_Runtime.git
synced 2025-09-02 03:04:02 +00:00
trying to fix antennas twitching
This commit is contained in:
parent
5c98678632
commit
2578393add
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue