2021-04-20, 03:31 PM
Just checked the code and the servo.gain is certainly not simply a multiplication factor for the gains, as suggested earlier; it has something to do with the speed of the servo. Yet, it seems to have a reflection on the gain settings. I know I ran into radically different gains when I upgraded tinypilot and motor.ino last year, and attributed the different gain settings to that. But I think it must have happened when I scrolled through the pypilot_client gui with the mouse. I know one thing: I'm not going to change it now, because pypilot runs better than ever. Just came back from a 200NM trip, at least 30 hours on pypilot.
Code:
servo.py: speed *= self.gain.value # apply gain