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
Does upgrading 3.7 to 3.8, downgrading back to 3.7, and upgrading back to 3.8 lose servo REV values? #6522
Comments
I'll take a look. |
Any idea if it was a hardware bug giving bad sensor input, or an ardupilot bug? |
hi Marc, really glad you posted this with the same aircraft as #6510. It allows me to compare manual flight to the RC and SERVO settings. Unless you change your transmitter settings you will also need to change RC1_REVERSED and RC2_REVERSED both to 1. |
It also looks like the trims in your transmitter are very different from the RC trims in ArduPilot. For example, it looks like your transmitter RC trim is 1393, but RC2_TRIM is 1500. |
@tridge thanks for the look. Ok, this is perplexing since I've had this flying for a while without issues and things weren't reversed or it wouldn't have flown without issues for close to a year. Then again, unless mission planner did something bad (with my help, or not), look at this diff from my settings between 3.7 and 3.8. I just had a look at an old and newer parameter file, and found this. |
The main reason why I suspect the downgrade as being the issue is:
|
And just to make sure my memory isn't wonky, in #6261 @peterbarker and @WickedShell asked me for GPS init logs on 3.7 vs 3.8. I did indeed downgrade my bixler from 3.8 back to 3.7 to get those GPS logs, and then back up to 3.8. |
I'm sort of glad it was reversal, as that is better than it being a insta-crash bug!
the upgrade code for the parameters from 3.7 to 3.8 is very complex, so there may be scenarios where it gets it wrong. It does do the right thing for most cases, but really all I can do is stress the need for careful ground tests when people upgrade.
it happens to everyone sometime! |
So, the release notes should have a warning that people recheck their RC* settings after upgrade given the new SERVO* variables that were added, and a bigger warning that if they downgrade back to 3.7, their RC settings will likely be wrong, up to inverted servos and crashes. |
The reversed setting shouldn't be affected in any way, we went with a new index (given the new name and values), so 3.8 doesn't override or change the setting in 3.7. Now, like @tridge said it is possible something is wrong in the upgrade code - but that is hard to look at without a defined set of steps. I completely agree that release notes should have a warning about people checking their parameters. Can we close this? Given this was an unfortunate configuration error I think there is nothing left to do. |
@OXINARF we can close this as long as you get my point that the bug is likely on a 3.8 to 3.7 downgrade. The upgrade works fine from what I can tell, the downgrade is what I'm pretty certain caused my issue. |
Hi, I tried the downgrade from 3.8 to 3.7.1 and I'm having the same issue with servos. I'm using bbbmini and this is the steps I made. Regards |
Just an update. |
This is a doc problem, opened an item on the wiki to track the warning: ArduPilot/ardupilot_wiki#999 |
@magicrub after filing #6510 , I fixed up the aircraft from that crash, did a full 3 axis recalibration,
I then actuated FBWA on the ground, made sure that the plane was keeping itself level.
I think I also tried auto to see whether the aircraft actuated the ailerons and the elevator to have the proper takeoff pitch.
It did, but I didn't trust it enough to do another auto takeoff since I hadn't heard back on my previous bug mentioned above.
So, I took off in manual and flew in manual for a while, everything was fine.
My plan was to do another autotune and I switched from manu to autotune.
The moment I did that the aircraft pitched over, I was not fast enough and hit RTL instead of disabling ATUN, but probably by then recovery would have been very hard given that it when full throttle straight into the ground, nose first.
The aircraft if of course destroyed beyond repair, and sadly some of the avionics were also damaged, the cameras shattered and even the airspeed sensor, broken :(
Video:
https://youtu.be/EDe0IbeDjVE?t=2m27s
00000048_bix2_autotune_crash.bin.gz
In hindsight, I guess I could have tried FBWA first before AUTOTUNE, but the loss of attitude from AUTOTUNE was so violent that even if I were prepared for it and had my aircraft again, I'm not sure if I could recover the 2nd time either.
I suppose next time I'll AUTOTUNE FPV from 300m altitude, but it's not my prefered way of doing it obviously.
Was this a bad bug in AP, or did the pixfalcon fail in some way and cause this to happen?
More importantly, why did everything look fine on the ground when I tried FBWA before takeoff?
The text was updated successfully, but these errors were encountered: