inav icon indicating copy to clipboard operation
inav copied to clipboard

Self-leveling is not disabled after transition point in HORIZON mode

Open gurkenfolie opened this issue 10 years ago • 14 comments

I recently flashed official 1.2 release, now i have the problem that when i do pitch rolls/flips, the quad behaves strange, it doesnt turn correctly as it did with 1.1., it does a strange movement which is hard to describe (it rolls a little bit during pitch flip). Please take a look at my bb log, i can provide further logs if necessary. i dont know why it behaves so strange... in acro mode everything works as it should. tried this on naze32 rev6 and spracing f3, same results. rollback to inav 1.1 solved the issue. tried it with 1.2 RCimnotsure and 1.2 stable.

the last log is pitch flip only.

SEQLOG00.TXT dump.txt

Also in horizon mode the quad levels really fast after 360 flips/rolls (but the quad should still turn as i want correlating with stick input). i set transtion to 10, so i can fly almost acro. worked with 1.1 like a charm.

gurkenfolie avatar Sep 15 '16 14:09 gurkenfolie

@gurkenfolie 1.2 adopted OpenPilot's Rattitude logic for Horizon mode. Looks like it's not behaving correctly when transition is low (like 10% in your case) and self-leveling is not completely disabled.

I'll make a change, hopefully today, and would greatly appreciate if you test it (at the moment I'm traveling w/o my quadcopter).

digitalentity avatar Sep 16 '16 05:09 digitalentity

@gurkenfolie please check this hex - it now makes sure that beyond set transition point you have no self-leveling whatsoever. inav_1.2.1_NAZE.hex.gz

digitalentity avatar Sep 16 '16 05:09 digitalentity

Same issue?

From Rcgroups: AmiSMB: "Issue explained: With iNav 1.2 in Horizon mode I can roll 100% left or right and the quad only rolls to around 45 degrees left or right without doing a full rotation which it did with Cleanflight and Betaflight. No GPS modes enabled. In the blackbox log you can see on flight 2 at between 10s and 20s I try full left and full right roll."

Follow link for cli dump and blackbox http://www.rcgroups.com/forums/showpost.php?p=35736770&postcount=8180

oleost avatar Sep 16 '16 09:09 oleost

I have found the same issue where full pitch or roll input does not allow the craft to flip. I have posted in RCGroups with the setup and logs which can be found by clicking here

AmiSMB avatar Sep 16 '16 09:09 AmiSMB

Very strange. Horizon flips and rolls work for me, with default PIDs (iirc). On all frames, bit ugly on the big tri. Have done on all versions, somewhat indistinguishable from clean/betaflight. Rate is 550 deg/sec on the big frames and probably higher on the 250. I'll confirm these later. Later : 700 deg/ sec on the 250mm frame.

stronnag avatar Sep 16 '16 10:09 stronnag

It was probably ok with LEVEL D (Horizon threshold) at high value (i.e. default 75) with relatively high rates and at full stick deflection. However at low setting of LEVEL D and RC stick not reaching full range of 1000-2000 values one may be experiencing a bug with self-leveling not being completely disabled.

Possible effects:

  • not being able to do flips/roll at all - self-leveling will prevent that from happening
  • drift on roll/pitch axis when performing a flip/roll.

digitalentity avatar Sep 16 '16 12:09 digitalentity

I flew the new horizon-mode-changes branch today, with my "brute force and ignorance" it seems (LOS) "mainly harmess" in that horizon mode rolls and flips were as awesome as before.

This build exhibits yet more mag problems (complete failure to hold heading in PH mode). Unfortunately for me, I'd neglected to clear out the SPIFLASH prior to flying, rendering an hour of structured testing across multiple builds nugatory. So I'll have the tedium of doing it again before generating a new issue against 1.2.1.

stronnag avatar Sep 16 '16 17:09 stronnag

Good! Thanks for testing. We really need to look into mag issues.

digitalentity avatar Sep 16 '16 18:09 digitalentity

yes, sorry for no logs but some interesting videos in #611. You make, I break it.

stronnag avatar Sep 16 '16 18:09 stronnag

thx DE, can you give me a hex for spracing f3? otherwise i would have to change the FC...

gurkenfolie avatar Sep 16 '16 22:09 gurkenfolie

SPRF3 hex http://seyrsnys.myzen.co.uk/inav_737c7d0/inav_1.2.1_SPRACINGF3.hex

stronnag avatar Sep 17 '16 06:09 stronnag

thanks, i will try it ASAP

gurkenfolie avatar Sep 17 '16 07:09 gurkenfolie

build the newest inav version for spracingf3 , everything worked well except PH, it was toiletbowling for one circle when changing the position. after one circle it settled. (mag is calibrated...)

gurkenfolie avatar Sep 19 '16 17:09 gurkenfolie

@gurkenfolie HORIZON mode works, we can close this issue.

digitalentity avatar Sep 19 '16 18:09 digitalentity