I have to ask, has anyone succeeded to build a quad with Librepilot and GPS which actually are able to fly?

I have twisted the wires (esc-pdb/esc-motors), mount a 10*10 cm MU-metal plate between esc, lipo and the revo flight controller and still it fly and behave like crazy.

I think I will try to use it without PGS and wait for the new release of librepilot.

hwh

  • *
  • 1018
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #1 on: February 26, 2016, 09:36:15 pm »
I have to ask, has anyone succeeded to build a quad with Librepilot and GPS which actually are able to fly?

I have twisted the wires (esc-pdb/esc-motors), mount a 10*10 cm MU-metal plate between esc, lipo and the revo flight controller and still it fly and behave like crazy.

I think I will try to use it without PGS and wait for the new release of librepilot.

Almost everyone has.  A new release won't make any difference, if the vehicle is too bad to fly now, it won't be any better with a new release.

You haven't mentioned what "behave like crazy" is nor what the quad is, how it's wired, your settings, or any other details so it's a little hard to help you.

If you put a 10x10 mu metal plate on the vehicle you may have distorted the earth's magnetic field too much for the mag to work correctly.  And GPS modes are heavily dependent on the mag sensor.

Mateusz

  • *
  • 808
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #2 on: February 26, 2016, 09:59:38 pm »
If you put a 10x10 mu metal plate on the vehicle you may have distorted the earth's magnetic field too much for the mag to work correctly.  And GPS modes are heavily dependent on the mag sensor.
I don't know why people do that. It may actually cause more harm than good.

Most problems people have are related to magnetometer. Magnetometer is not only used to determine orientation in yaw, but also to show whether aircraft is up side down. You should calibrate magnetometer not putting it on the ground and far from metallic objects (except for aircraft itself), but exactly how it would  fly including battery. Someone should help you telling how to rotate it, and you should use OPLink. You may also try calibrating it in another place. Also be aware that magnetometer is recording continuously and not  just when you press a button (dont put it on a car temporary while in the middle of calibration). Before saving after finished calibration you should put it back horizontally. When it comes to GPS, you should avoid flying near buildings, as multipath reflections from walls may confuse GPS adding to distance. Also you should let GPS sit with battery connected and clear sky for 10-15min to update almanac before first flight. If sats are not up to date it may be getting poor quality signal. But mostly problem is a mag. If your mag is not aligned with accel or you moved it after calibration, it does not agree with accelerometer, your model might be vibrating and you might see sin-like behaviour in attitude scopes. That means EKF (INS31) receives contradicting data from mag and accel and it's not flyable.
You should use GPS with mag on a mast, to have it away from electronics that can generate magnetic fields, like high power wires or switching components such as ESCs or BEC. Also antennas such as video, telemetry etc.. may interfere with GPS. For me I get much better and quicker sats when I disconnect by video transmitter temporarily when updating almanac before first flight.
Also it's good to do full erase (to be sure no configuration artefacts are in external memory) when updating firmware, and start whole full calibration (all sensors) process from scratch to be sure everything is right and export your uavs.

Otherwise, what can I say, it works for many people, you may not even know what you did wrong, and when you start from scratch carefuly you might get better results.

Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #3 on: February 27, 2016, 10:19:34 am »
Perhaps I will give it another try some other day. I have spent to many hours to build and tweek the flight controller. Usually I think it's fun but the last hours I think it is frustrating. When I build with APM2.6 it was only to put it together, load firmware, do some basic configuration and then it will fly. A couple of month ago I choosed between Pixhawk and Revo. Perhaps Revo has potential but I will put it away for a while.

My reason to ask this question were to actually hear if someone succeeded to build a autonmous multirotor based on librepilot 15:09. When I search for "maiden fligt revo librepilot" I only had a few hits but when I, for example wrote the same for cleanflight I had several hundreds... But I'm glad I'm beeing wrong about it and some day I give the revo another try.

Mateusz

  • *
  • 808
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #4 on: February 27, 2016, 11:03:56 am »
Perhaps I will give it another try some other day. I have spent to many hours to build and tweek the flight controller. Usually I think it's fun but the last hours I think it is frustrating. When I build with APM2.6 it was only to put it together, load firmware, do some basic configuration and then it will fly. A couple of month ago I choosed between Pixhawk and Revo. Perhaps Revo has potential but I will put it away for a while.

You can't really tell if APM does something better or not, unless you find out the source of your problem. You maybe have very specific problem and switching just about everything (heart of your aircraft) may fix it, but that does not necessarily mean there was something wrong with the firmware in the first place. Could be faulty hardware, could be your setup, vibrations etc... many factors, and if you change everything you might get it working, but you will still not know why. All those factors can happen with any flight controller or setup. I am very confident with LP firmware as it just works. Also Revo was initially closed-hardware (one factory with top component quality) and was around for many years, it's very mature now and stable, very unlikely to have any firmware bugs. It just worked for many years for many people :) and if there will be bug discovered for sure not one that prevents someone from flying :)

Does it work with OpenPilot firmware ?

My reason to ask this question were to actually hear if someone succeeded to build a autonmous multirotor based on librepilot 15:09. When I search for "maiden fligt revo librepilot" I only had a few hits but when I, for example wrote the same for cleanflight I had several hundreds... But I'm glad I'm beeing wrong about it and some day I give the revo another try.

I am not sure if Cleanflight is not older than OpenPilot, it's based on MultiWii which was first firmware designed for Arduinos, then rewritten. You are very likely to get many hits just because of that.
They are at least as old as OpenPilot. If you google for OpenPilot which LP is based on, you will see much more hits, but because its so much older project.
LP just had it's first release beginning of this year, so there are not many movies around yet. Some people still use OpenPilot.

Mateusz

  • *
  • 808
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #5 on: February 27, 2016, 02:45:29 pm »
I had a look at your photos and a few comments

  • I recognize the mast you have, if it's the one with just single screw attaching it to the frame, it is likely to rotate invalidating your calibration. There are many better masts which have two screws that attach pole firmly to the frame preventing any rotation.
  • You use rubber bumpers below FC, my experience with exactly these type of bumpers is wobbly flight, I would rather try to mount the case directly with double sided tape flat to the frame. I use nylon screws on smaller builds.
  • The thick foam like double sided tape attaching the shining plate to the frame also looks wobbly and may shake in flight. Try to mount flight controller as stiff and firmly as possible to the frame.
  • Lots of unnecessary weight from long cables, bullet connectors may disconnect in flight. I usually cut, solder and cover the cable in shrink-tube.

Is it F450mm like frame ? I have Flame Wheel (white and red arms) 450mm diagonal flying perfectly. Does your fly ok in other sensor fusion without GPS (Complementary) ? Does it fly well with OpenPilot ? I suggest you start with Complementary and once it flies well in that mode then you can try with GPS (enable INS).

If your aircraft flies bad in Complementary, then it won't fly better with GPS, and you must get Complementary mode right first.

hwh

  • *
  • 1018
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #6 on: February 27, 2016, 05:08:28 pm »
P...When I search for "maiden fligt revo librepilot" I only had a few hits but when I, for example wrote the same for cleanflight I had several hundreds...

All of LibrePilot's "maiden flights" were made under the old project name, OpenPilot.   A google search for "openpilot maiden revo flight" comes up with 15,200 hits.  I think the maiden flight for autonomous flight was back in 2011?  My favorite was the 20km Autonomous Fixed Wing Revo Flight in August 2013.  Unfortunately someone has password protected the video of that flight on the OpenPilot site. With the current regulations in the US I don't think we could legally do that long (a little over 12.4 miles round trip) a flight here.
« Last Edit: February 27, 2016, 05:20:41 pm by hwh »

jbarchuk

  • ***
  • 129
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #7 on: February 27, 2016, 10:28:49 pm »
With the current regulations in the US I don't think we could legally do that long (a little over 12.4 miles round trip) a flight here.

Slightly off topic... There are vids of long range autonomous flight that use a pace car with a driver in control of the car plus a passenger in control and always in LOS of the aircraft. I think that'd be legal, though IANAAL (I Am Not An Aviation Lawyer. :) )

jbarchuk

  • ***
  • 129
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #8 on: February 27, 2016, 10:32:58 pm »
I have to ask, has anyone succeeded to build a quad with Librepilot and GPS which actually are able to fly?
Here's a brand new thread with success. If the info right there doesn't help you could also write to the poster to ask for more detailed info. https://forum.librepilot.org/index.php?topic=943

Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #9 on: February 28, 2016, 11:19:04 am »
Thanks guys!

I made a new calibration and when I was done and put the quadcopter one the floor, the  horizont gyro told me it was about 15 degrees left (or right) and pointing a bit up. I have done exactly as the video descibe for calibrating the FC. Perhaps I have some hardware problem? It seems I are the only one with problem, all other people hace success with revo/libre combo?

I hade a APM on the same frame before I  upgraded it to Revo and with APM it flew almost perfect.
I have thought about change from Libre to cleanflight or betaflight and see if it is any diffrence. I have not yet test with OpenPilot.

jbarchuk: My GPS works perfect it is a UBLOX M8N, just plug and play.

Mateusz: Thank you for your comments. I will give it a try to remove the rubber bumbers and put the FC directly on the plate. The GPS antenna doesn't move a bit :-). It has four screws on the bottom plate. I think it is a 450' frame with 12'' props, 3S lipo 5000mAh, 25-30amp Esc (simonK). It oscillate when I don't use GPS but when I made the new calibration I give up again. :-)

Thank you all for the comments, it encourage me not to completly give up revon but I will order a PixHawk soon and try it instead of the Revo.

Mateusz

  • *
  • 808
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #10 on: February 28, 2016, 02:47:34 pm »
I made a new calibration and when I was done and put the quadcopter one the floor, the  horizont gyro told me it was about 15 degrees left (or right) and pointing a bit up. I have done exactly as the video descibe for calibrating the FC. Perhaps I have some hardware problem? It seems I are the only one with problem, all other people hace success with revo/libre combo?
....

Mateusz: Thank you for your comments. I will give it a try to remove the rubber bumbers and put the FC directly on the plate. The GPS antenna doesn't move a bit :-). It has four screws on the bottom plate. I think it is a 450' frame with 12'' props, 3S lipo 5000mAh, 25-30amp Esc (simonK). It oscillate when I don't use GPS but when I made the new calibration I give up again. :-)

Hi again,

What do you mean by horizon gyro ? Gyro always drifts, that's why accel and gyro must be combined. Usually gyro is more precise but noisy and dirfts. Accel is less accurate but does not drift. You should be able to fly first with "Complementary" attitude estimation algorithm. (See attached screenshot 1). In that mode only Accel+Gyro is used.
After calibration, saving powering off/on you should see something similar. (See screenshot 2 how it should look like).
Where gyro scopes are noisy, accel gives negative z and flat curve and top right corner is what is estimated so your attitude scopes should also show more or less flat lines. If that is not the case, something is definitely wrong.

If your flight controller is dancing or vibrating while you fly, you will also confuse sensors, that's why it's better to mount flight controller directly on the plate, flat, rigid and stiff.
If you still have problems, please revert to OpenPilot, if it does not work there, try contacting your seller where you bought Revo. Firmware is definitely fine, so it's either user error or faulty hardware.

Please make a movie how it flies and post it.

suzali

  • *
  • 41
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #11 on: February 28, 2016, 08:01:40 pm »
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  ???

Mateusz

  • *
  • 808
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #12 on: February 28, 2016, 09:05:26 pm »
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.

hwh

  • *
  • 1018
Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #13 on: February 28, 2016, 10:40:17 pm »
...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. 
If your gps is reporting to the FC that it's only using 3 sats then the FC won't use the info, the default LP settings are to wait for the gps to be using 7 sats before it relies on the data.  That's set on the system tab in settings - gpssettings.  If I'm working indoors I'll often temporarily set the number of sats lower and minimum DOP higher while I'm working.  I wouldn't fly with flaky settings like that but indoors even a full size gps has problems getting and maintaining a lock.

The number of sats your gps is using has nothing to do with LP.  Nor does the time it takes to get a 3D fix, that's all in the gps itself.

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.

There is no "3D-fix" led on a gps, the led is actually "timepulse" and by default it outputs 1 pulse per second as soon at the gps has enough of a marginal fix to read time from the satellites.  That's way before it has a good enough lock to navigate by.

Re: I give up librepilot and revo with GPS and wait for the new firmware
« Reply #14 on: February 29, 2016, 12:02:47 am »
I think I probably could have it flying rather good in Complementary mode if I tweak the PIDs.
The flight controller and the thin mu-metal plate is tight togheter with the frame but I didn't removed the rubber dampers. I really don't Think thats the issue.

I gave up and ordered a complete kit based on Pixhawk 2.4.6. I think I will give it a try. I put the Revo away for a while :-)
I already have two quadcopters flying really good with APM 2.6 and now it's time to check Pixhawk out :-)