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
3fdb5f4dda
commit
5c98678632
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Antennas:
|
|||
self.pwm2.ChangeDutyCycle(7)
|
||||
self.pwm2_set = True
|
||||
|
||||
elif -1 <= value <= 1:
|
||||
elif value >= 0.1:
|
||||
angle = self.map_input_to_angle(value * sign)
|
||||
|
||||
duty = 2 + (angle / 18) # Convert angle to duty cycle (1ms-2ms)
|
||||
|
|
Loading…
Reference in a new issue