inav icon indicating copy to clipboard operation
inav copied to clipboard

Poshold not holds position after movement

Open skaman82 opened this issue 10 years ago • 11 comments

Tested the latest release some days ago and have noticed something in POSHOLD mode. For filming its best to fly in poshold mode and the quad should stick to its position if the sticks are released - just like a phantom. The problem I noticed, is that if I enable poshold and move the quad 1-3 meters and release the sticks, it always wants to return to its old position. If I move the quad for longer time and more distance, it stays there.

Does anyone had the same experience?

skaman82 avatar Jun 14 '16 15:06 skaman82

@skaman82 This is odd. Do you have blackbox recording of the issue?

digitalentity avatar Jun 14 '16 18:06 digitalentity

Sadly no, the fc is in a closed plastic Walkera QX350 bodyshell, so it is difficult to hook up a openlog to it.

Am 14.06.2016 um 20:15 schrieb Konstantin Sharlaimov [email protected]:

@skaman82 This is odd. Do you have blackbox recording of the issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

skaman82 avatar Jun 14 '16 18:06 skaman82

Not good. Maybe somebody can reproduce the issue and post logs...

digitalentity avatar Jun 14 '16 18:06 digitalentity

Mmh,.. it seems like the Inav code always take the last position where you centered your sticks. So if you´re flying fast and center back your sticks to mid, the Quad have much speed left. The code will break the Quad and fly back to the position you centered your sticks. So in case you do some aggressive and short pitch on POSHold, your Quad will go for 1-3m, break and go back to that position you centered back to mid, which is nearly on that positon you start. Maybe this helps? ;) Btw: The POSHold is really aggressive, sometimes it would be great to have more like a smooth breaking. It´s nearly impossible to do a quiet and smooth break in POSHold at the moment.

kronosol avatar Jun 20 '16 00:06 kronosol

@kronosol Not true, inav tries to calculate stopping distance when sticks are centered and sets the poshold there. Tune with nav_pos_i

@skaman82 This sounds more like a tuning issue to me, try a higher nav_pos_i, up to 200 if needed, that determines how long the stopping distance should be. Also try nav_user_control_mode = CRUISE, that way your stick controls speed instead of bank angle, and it feels much better, smoother and more accurate control imho.

theArchLadder avatar Jun 26 '16 09:06 theArchLadder

@theArchLadder Hey sorry lost an eye on this issue here. But thanks for your tipp with the cruise mode on PosHold. I´ve tested it today and I was like "whaaaat", so much better behavior of the Quad. I´m really wondering why cruise mode isn´t default setting...? :(

kronosol avatar Jul 14 '16 18:07 kronosol

@kronosol See #351

theArchLadder avatar Jul 14 '16 19:07 theArchLadder

just tested the CRUISE mode. It is in fact a lot smoother and I like it much more then ATTI. But the cruise mode is a bit slow. I was able to move the quad only 10km/h max. Ist there a variable to speed it up just a little? Is it nav_manual_speed?

skaman82 avatar Jul 17 '16 15:07 skaman82

@skaman82 Yes but it also seems to be limited by nav_max_speed. Try and raise both of them to like 900 (3x default) and it should be faster.

@digitalentity Is it a bug or a feature?

theArchLadder avatar Jul 17 '16 16:07 theArchLadder

I´ve set nav_manual_speed = 2000 and nav_max_speed = 500, flys save but only around 2-4m/s max. Also there is a issue with yaw. @digitalentity @theArchLadder Maybe increasing nav_manual_speed also effects on yaw rate? If I enable Cruise Mode I can turn on yaw more like 360°/s on full stick deflaction, which seems crazy high. If I do the same with nav_manual_speed = 500 speed on yaw is normal like on ATTI mode.. Interesting: If I enable RTH with nav_max_speed = 500 it´s even faster than Cruise Mode with nav_manual_speed = 2000.

kronosol avatar Jul 17 '16 21:07 kronosol

@skaman82 is the issue still relevant?

digitalentity avatar Aug 29 '16 13:08 digitalentity