LibrePilot Forum

General Category => General Discussion => Topic started by: kennyevo on March 08, 2016, 09:38:59 pm

Title: Revo shaking horizon
Post by: kennyevo on March 08, 2016, 09:38:59 pm
Hi!

I've built a diatone whitesheep quad with a Revo using ublox gps, I've balanced the quad, but it still goes backwards after takeoff. In the telemetry I see that the horizon is shaking up and down even if the quad sits still on the table.

I calibrated everything again and again with no luck.

Any ideas are welcome!
Title: Re: Revo shaking horizon
Post by: Mateusz on March 08, 2016, 09:46:43 pm
Any ideas are welcome!

Are you using external magnetometer on a mast far from power wires/esc ? Calibrated outdoors with help of oplink far from metalic objects, and it is always green in the place you fly ?
Title: Re: Revo shaking horizon
Post by: kennyevo on March 08, 2016, 10:20:02 pm
I've calibrated outdoors, everything was green.

I don't know if it uses the gps' magnetometer, I'll disble the gps tomorrow and we'll see if anything changes.

The gps is mounted on top of a gps mount, so it's quite far from everything.
Title: Re: Revo shaking horizon
Post by: f5soh on March 08, 2016, 10:25:22 pm
Are you using INS13 ?
How are the MAG alarms while flying ?
Title: Re: Revo shaking horizon
Post by: kennyevo on March 08, 2016, 10:56:02 pm
Are you using INS13 ?
How are the MAG alarms while flying ?

Yep I'm using ins13, don't know about mag alarms, my old laptop is wired, but will record the telemetry tomorrow :)
Title: Re: Revo shaking horizon
Post by: kennyevo on March 09, 2016, 12:50:46 pm
Hm, how can I replay a log file in the GCS?
Title: Re: Revo shaking horizon
Post by: @marc on March 09, 2016, 01:00:04 pm
Disconnect you FC, and select Logfile from the dropdown list.

(https://forum.librepilot.org/index.php?action=dlattach;topic=1035.0;attach=1867;image)
Title: Re: Revo shaking horizon
Post by: kennyevo on March 09, 2016, 01:24:49 pm
Hm, it doesn't seem to work, maybe my log is corrupted :/

Here's my log: https://drive.google.com/file/d/0B_2MdV3di_UMcEFVYUpRMDUybGc/view?usp=sharing (https://drive.google.com/file/d/0B_2MdV3di_UMcEFVYUpRMDUybGc/view?usp=sharing)

is it possible that it was caused by the foam below the FC? It looks like it's a little tilted, but the calibration should eliminate this problem, right?
Title: Re: Revo shaking horizon
Post by: kennyevo on March 09, 2016, 01:42:58 pm
Okay, tried it wouthout the gps, without any calibration it's much better, it now goes forward after takeoff, but I think that's just because I did not recalibrate the things.
Is it possible that my gps causes all my problems? It's a UbloxNeo-6M, it was packed with the revo.
Title: Re: Revo shaking horizon
Post by: f5soh on March 09, 2016, 02:44:16 pm
Most of the time after arming, your Mag alarm is solid Red and that looks normal using a onboard mag on a small frame.

INS13 retrieve all sensor measurements and compute data for Attitude estimation.
https://librepilot.atlassian.net/wiki/display/LPDOC/INS13+-+GPS+Navigation

You can assume the attitude estimation can't be ok with a Red mag alarm or when GPS is indoor (position and velocity jumps due to bad rx).
A small jitter while the frame is steady looks normal.

Do you still use the OP15.05 release or you miss Oplink firmware update ?
Title: Re: Revo shaking horizon
Post by: kennyevo on March 09, 2016, 03:16:08 pm
Oops, I did not update my oplink :D

While using the gps, it looks like the quad is a little nose down and right, even if placed on the ground and leveled to be totally horizontal :S
Title: Re: Revo shaking horizon
Post by: f5soh on March 09, 2016, 03:22:51 pm
As a test for your Accel calibration (Attitude > Accelerometers calibration), you can go to UavoBrowser > RevoSettings and change the FusionAlgorithm to INS13Indoor

It uses a fake GPS data so you can use INS13 indoor and allow to check Accels.

You can try Comp+Mag+GPS that should show the same level like basic algorithm.
Title: Re: Revo shaking horizon
Post by: kennyevo on March 10, 2016, 10:36:47 am
My gps doesn't have a mag, so I think it's using the Revo's mag, is it possible that the cables interfering with the magnetometer? (motor output)

One noob question: I need only one red and black wire coming back from the escs, that's powering the revo, right?
Title: Re: Revo shaking horizon
Post by: Mateusz on March 10, 2016, 11:49:43 am
My gps doesn't have a mag, so I think it's using the Revo's mag, is it possible that the cables interfering with the magnetometer? (motor output)

One noob question: I need only one red and black wire coming back from the escs, that's powering the revo, right?

If you don't have external magnetometer then it is using one on Revo. It's build dependent but very likely this won't work to get stable INS31.
Please have a look here https://forum.librepilot.org/index.php?topic=995.msg7204#msg7204
Title: Re: Revo shaking horizon
Post by: kennyevo on March 10, 2016, 02:39:43 pm
So the best option would be to buy an external mag or a better gps with external mag?

Could you tell me what type should I buy that's compatible with the revo?
Thanks :)
Title: Re: Revo shaking horizon
Post by: kennyevo on March 10, 2016, 04:23:38 pm
With only the complementary stabilization the quad is super steady, if it takes the mag in the calculation it messes up everything :S
So no gps assisted flight mode till I get an external mag :D

One more off question: Can I set up the oplink to control the quad with an fs-i6 tx? If yes, how? :D
Title: Re: Revo shaking horizon
Post by: kennyevo on March 11, 2016, 10:54:55 pm
Oplink vehicle control works perfectly with fs-i6, the upper left pin is the ppm out on the trainer port, and had to connect the 5v to the battery tray, the trainer port has only 3.3v