I'm having troubles with drifting of the attitude values. It's very noticeable in the PFD. My setup is TWOG, Ryan Mechatronics CHIMU, XTend, UBlox (Leah 5H I think). The CHIMU is connected using SPI. I've put the airframe file and three flight logs here:
. The drifting occurs when still on the ground. It's difficult to describe, but I'll try: the PFD responds to movements in the IMU, but there is a constant, gradual drifting. It makes the plane appear upside down at times when it's right side up. See the logs for more details. The ReadMe.txt file at the link includes more details.
So I did a test where I changed condition of the if statement from gps.fix == GPS_FIX_3D to 0 == 1 so that the update would not be made. And in the test, the PFD behaved as if the gps was not connected. So it seems as if Stephen was correct.
Anybody have an idea what this issue is and how to fix it?
Also, when the GPS was not connected, the IMU would constantly drift such that the PFD was level. So if the IMU starts level, then you tilt it 45 degrees, the PFD would show that. But if you hold the IMU at 45 degrees, within 10-20 seconds the PFD would show level again. This behavior is also very noticeable in the real time plotter - you can see the angles always decay exponentially to zero. Does anybody have an idea why this is and if it's a feature, or something I need to fix? When I connect the CHIMU to it's my computer and use the CHIMU control panel, I don't see this behaviour.