I don't get any useful GPS / MAG values either.
Tried almost everything. At least I think, I did.
Am pretty familiar with librepilot by now. Got my 450 Heli flying perfect with a CC3d and a revo.
But...
...I'm trying to set up a new revo using GPS and onboard MAG on the desk, no esc or wiring disturbing the setup. Have all the above described problems too!
I'm using Beitian-880 GPS because I discovered these GPS are phenomenal fast when starting and usually have a fix indoors within a minute. On my desk I usually have 12 to 15 satellites in view. These are values i collected when working with apm and pixhawk or the u-blox software.
Attached and configured to Revo with LP the GPS needs beteen 0,75 and 2,5 hours to get a 3d-fix. Even when it shows for example 12 satellites in GC-GPS-Display it states sats used: 3.
When I finally have a 3d-lock and the gps status goes to green usually the levelling of the board goes crazy, tilts or flips by 20 or more degrees. If I move the revo, the gps in GCS immediately goes red and shows no fix, the control led on the GPS itself shows stable 3D-fix.
I don't know what do, but wait for a new release. Hoping
btw. It's not the hardware, as I have all components two times and changed everything from cable to revo.
@micaelkarlsson: you are not alone
suzali, as far as I understood he wrote "It oscillate when I don't use GPS".
It would be good to confirm that you got your aircraft flying in Complementary mode and you only have problems with GPS+Mag ? Complementary does not use Mag or GPS. INS31 requires both Mag and GPS correctly functioning. So to start with most critical things
- Mag should be calibrated outdoors, not on desk. Far from metalic elements, using oplink. Mag is calibrated correctly if it remains green all the time, when you are outdoors. Switching orange/green is not acceptable.
- OP GPS v9 unit is rotated at 0 deg and works fine by default, other GPS units may need rotating mag by 180 deg to match with accelerometer, depends how mag is located in your GPS unit. Misaligned mag with accel will lead to oscilations.
- Built-in mag is not recommended.
- GPS must be used outdoors, and only outdoors preferably far from buildings. Multipath reflections from walls can result in measurements that once show position of 10m in one direction or the other. Also GPS must be given ~15min of completely clear sky to update its almanac. This is because most units use super capacitor which lasts 5-6 hours when charged. It's not a GPS in your phone which uses WiFi and cellular network to increase precision or fetch sats. Many people don't know this.
You must be aware that it takes only 1s for a lock when both Mag and GPS become green, but this might be by accident and you wont be able to fly indoors with INS31.
When you do calibration outdoors, and get stable (not switching) Mag and GPS you should see in Scopes steady straight lines in attitude.
If you don't get stable signal there, then something is wrong, but the least thing in the very long chain is the firmware.