On my fifth flight today, something very strange happened while flying loiter mode. My copter started to drift from side to side as if trying to make a large circle, and I had to fight it hard to retain control. I have checked the logs carefully and I can't find an explanation. The large circles were captured nicely by the GPS, and apparently commanded by the flight controller (check Roll/DesRoll and Pitch/DesPitch) so I don't think this was a GPS, attitude estimation or other problem, though I could be mistaken. It also doesn't look like a mechanical issue either because none of the motor commands ever reached 100%. I'm at a loss to explain what happened - it's the first time I've seen loiter misbehaving like this, and I've done about 30 ArduCopter flights so far.
I'm attaching the dataflash log. I'm using the Pixhawk with the 3DR GPS. I'm running the ArduCopter master branch, updated on the 7th June at this commit: https://github.com/diydrones/ardupilot/commit/105382bf215043313de3e...
Brief summary of the flight:
Any insights much appreciated! Thanks :)
Is your board still attached to the frame/vibration dampening system? I've had problems like this when a corner has come unattached.
Yes, all four corners are still attached to the vibration dampening mount.
The compass is fine.
I eventually figured I had a classic case of "the leans". I've switched to EKF now, so far so good.
Is that a hydroelectric dam and if so I wonder if something there could have your compass throwing a fit?
It's a bridge. That could well have contributed to the TBE-like effect, though the underlying cause was a bad attitude estimate from the DCM algorithm, I think.