Closed jhoppenstedt closed 1 week ago
The problem is, as far as I know, not on the INAV firmware but actually the Flight controller MCU itself. I see the behavior very differently on different FCs even of the same model. The MCU is leaking noise on the signal pads during the bootup process, causing this movement. When the Servo recenter, this is when INAV actually initializes the signal pads. There is nothing we can do about it.
My conclusion is that the servo behaviour probably relates to instable voltages. It might also be a combination of voltage and model/manufacturer.
That's my conclusion also. The easiest way to deal with it is often to move the servo to a different pad. You can leave a ghost servo configured on S3 - one that doesn't physically exist.
As the processor is powering up, INAV isn't running yet, so there is nothing INAV can do about it.
Thank you for the thoughts! I'am now using S4 and S6 ports which don't seem to have that issue
Current Behavior
I have a fixed wing configuration with 1 motor (M1) and 2 CS-929MG analog servos (S3, S4). When connecting the battery, the servo connected to S3 initializes and rotates ~90 degrees before returning to the "home" position where it was before powering on. The one connected to S4 just slightly wiggles. Switching servos also keeps the behaviour in relation to the port.
That 90° rotation will let the connected rod collide with the wing cutout though.
I also observed that the S3 servo will just wiggle sligtly on power-on, if the FC is already connected to USB (5V) before connecting the battery. My conclusion is that the servo behaviour probably relates to instable voltages. It might also be a combination of voltage and model/manufacturer.
Steps to Reproduce
Expected behavior
I would expect the FC firmware to wait with peripheral init until voltage stabalizes.
Suggested solution(s)
Another idea would be adding a radio control mapping allowing to disable the servo output (like "servo arming") that allows me to enable them after the FC powered up.
Additional context
iNav Config Pastebin