-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plane: Stage servo wiggles one after another #27275
Conversation
Looks like we need to update the auto test to check for the new behavior:
|
good to merge once autotest fixed |
Just ran into this problem and stumbled upon issue. With having a faster loop rate you could scale this calculation dynamically such the movement over total time (4 seconds) integrity is maintained.
} SCHED_LOOP_RATE is hard-coded in above example but to further proof you could make the call to the scheduler like other parts of software already do: scheduler.get_loop_rate_hz() to retrieve... |
@IamPete1 id like to help with updating the autotest if possible - from what i recall it was testing to see if all control surfaces were moving at the same time (we're staging things one after the other intentionally now). Do you have any specific spots in the code i can look at off the top of your head to help me get started? |
The check is here: ardupilot/Tools/autotest/arduplane.py Lines 5771 to 5782 in f2f1ac3
|
Ping @ohitstarik - still chasing this one? Note that this code may have changed - we've merged https://github.com/ArduPilot/ardupilot/pull/27985/files which does servo-wiggling |
hey @peterbarker , yes i just let this slip by. that's a good feature added. I'll look through the code - it doesnt seem immediately effecting of the changes here. Appreciate the heads up. Just to make sure, are you saying that the problem was fixed in that PR or just that the wiggle mechanism may have changed + might effect this PR? |
I don't think it has been fixed. From my point of view the C++ here is good to merge, we just need to fix the auto test. |
Hold on let me get these to pass checks first |
c52bb43
to
a69a3b1
Compare
4219ee3
to
a8d37c6
Compare
8faa453
to
be16750
Compare
This PR implements the fix proposed in issue #25851
The current code to wiggle the servos in mission waypoint option "Altitude_wait" currently does not wiggle left elevon, and none of the VTAIL Servos. This is due to the output mixers summing out to zero from the respective roll/pitch/yaw commands.
This fix stages the wiggles one after the other so nothing sums out to zero.
I waited to submit this PR until i got around to testing it at least with SITL.
Here's the test: https://www.youtube.com/watch?v=ryS6fTMAQS0