LibrePilot Forum

General Category => General Discussion => Topic started by: FlyGuy on January 12, 2016, 08:35:59 pm

Title: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: FlyGuy on January 12, 2016, 08:35:59 pm
First, I would like to thank the members of the LibrePilot project for picking up the OpenPilot ball and running with it. I’m sure I can speak for others when I say I was extremely disappointed with the support of OpenPilot GCS especially when the wiki and support site was suddenly shut down without notice. Even the forums were closed to new members so we could not ask questions on setup and equipment issues. I searched the internet for months trying to find solutions to my issues and was on the verge of chucking the OP flight controller and starting over when I finally found the LibrePilot project. So thank you again for taking over and providing this much needed user support.

This brings me to my post. I have been struggling since October after purchasing a OpenPilot revolution flight controller and u-blox NEO-M8N GPS to get my Tarot TL-250A to perform Altitude Hold, Altitude Vario and Position Hold. My setup has been tuned for manual flight and flies well in manual mode. I have searched the internet for solutions and have gotten the Altitude Hold and Altitude Vario to work but it could use some fine tuning recommendations. The main issue I am having is with the GPS. I’ve configured the GPS, it has recognized up to 12 satellites and I have green alarms across the board (with the exception of the alarms associated with autonomous flight). I have configured the arming feature and the Revo will arm (the PFD display indicates armed and AUTOPILOT. The computer audibly says “armed” and the motors will spin on throttle up). When I disconnect the Revo from the GCS and try to arm the FC, I don’t get any armed LED indication on the FC and the motors will NOT spin on throttle up. Can someone PLEASE HELP!  I’ve been stuck on this for over a month and am unable to figure it out. Also if someone could recommend settings to enable a more stable flight during Altitude Hold and Altitude Vario I would appreciate any info on both topics.

Thank you for any help you can provide!
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: f5soh on January 12, 2016, 10:40:07 pm
Hi, welcome.

You need to find witch alarm locks the arming.
How did you set the arming setting ? Witch setting ?
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: TheOtherCliff on January 13, 2016, 12:06:27 am
I would add that it helps to have telemetry for this and it is nice to watch the GPS trail when doing waypoint flight.

Also, I assume you are running LibrePilot v15.09

Mag is a hard thing to get right via USB and changes when the USB plug is close or not.  One guess has it that your mag is no longer green with USB unplugged.  I would suggest that you recalibrate your mag:
- keep it away from all metal and computers and house wiring as much as possible while calibrating.  No washing machines, no water heaters, no cars, computers as far away as possible.
- I've done it with a 3m/10ft USB cable and a remote mouse, but it's not optimal and shhhh don't tell anyone :)
- be aware that the calibration is recording all the time, so do not think that you can set it down on a metal cabinet between saves.
- before starting calibration, hold it up, away from stuff, click, rotate, click, rotate, etc. keep it about in the same place in space.

Minis and high powered quads are notorious for GPS mode problems when using the onboard mag.  A high powered mini may not be possible with onboard mag.  But you haven't got that far yet.  Those problems only happen when the motors are under high current flight loading and the too close wiring of a mini messes up the on board mag.  Do you have all your high current (battery to PDB, PDB to ESC, ESC to motor) cables twisted properly?  That won't keep you from arming, but it will cause bad problems if you try to fly it in any GPS mode.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: FlyGuy on January 14, 2016, 04:13:04 pm
I use the pitch down setting to arm the revo. I will check the flashing LEDs on the revo and get back with the findings.

Thanks for your response and help!
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: FlyGuy on January 20, 2016, 08:35:58 pm
Still no luck determining why the revo will arm when connected to GCS but once you remove power (USB and flight battery) and then power up (reboot) the revo will not arm. Checking all alarms (green) and led status lights (before removing power). When not configured for GPS, I can determine the status of the board by the led flashes. When revo configured for GPS the leds are always the same (alternating red and blue). BTW, what do the flashing bars in the Data window mean? Does it mean the associated item is receiving data?

Been working on this for a month! About ready to look into buying a different flight controller!

Thanks again for any help you can provide.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: TheOtherCliff on January 23, 2016, 04:19:40 am
I'm confused.  Your issue

Can you arm with the sticks if you disable GPS, and use just Attitude mode on all positions of your flight switch?

I'm not recommending that you try it, but if you have, what does it do if you arm with GCS connected, and then disconnect GCS and fly?

To arm with GPS flight modes, you must use INS13 in Configuration -> Attitude -> Settings -> AttitudeEstimation
You must also set HomeLocation.  Easy way is to right click on the map and do Set Home Position (use 0 for the WGS84 popup if you don't know it).
You should arm and take off in Attitude mode and switch to some GPS mode when in the air.

Is your telemetry set up in some non standard way like OSD maybe (remove it and disable it for a test)?  Your hardware page should be stock, except for the GPS setup and RC receiver setup.

What RC receiver input type are you using? PWM?  SBus, ??

And you shouldn't be using Custom mixer.  That requires extra stuff that I am not familiar with.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: agileheliuk on January 25, 2016, 02:35:59 am
Sorry guys new here. I get a similar problem. When I enable GPS INS13 it knocks out all my gyro? and wont arm. I have managed to get it to get the gyro back up after a while sitting outside and it can see satellites ok. but then the gyro seems all over the place. and it will not arm.
I have tried different software, different PC, reflashed it... no joy. if I disable the GPS INS13 it works fine, I get GPS sat data ok. so a bit puzzeled there.  I have tryied different arm settings all the same.
 I Did try Tua Labs at first after following a link that said to use that as Open Pilot was dead, then I found out about Librapilot.. started using that. but had issues trying to get the firmware back.  I used the Resurrection firmware and it seems ok. (I did not do the SM pin short though!) but now instead of the nice red stamp in the firmware page I get a yellow triangle, I went back to OP GCS and flashed it in there and I get the nice red good stamp. but as soon as I go back to Librapilot, it wants me to upgrade the fw. and I get the yellow triangle again..... also in the settings page. under data - GPSExtendedStatus - Firmwaretag = lots of little box's?  no numbers or letters. is this correct?
Title: Help! Help! Revo w/GPS cannot be configured for level flight
Post by: FlyGuy on February 01, 2016, 05:33:52 pm
I am having difficulty getting my Tarot TL250A w/revo to take off level when it is configured for GPS (INS13). When the revo is configure for non-GPS flight (Basic Complimentary) it takes off level and flies fine in manual, altitude hold and altitude vario. When configured for GPS (I finally got the mag and accelerometer calibrated and I have a green alarm board), I try to take off in manual mode, motors 3 and 4 lift the back of quad so I cannot achieve level take off. I attempt to adjust the trim but still cannot get a level take off. I’ve attempted to manually compensate but still cannot reach level flight. I’ve recalibrated the neutral for the motors in GCS several times but still have the same issue.

I’ve attached 2 .uav files one is configured for GPS and the other is not.

Could someone please take a look at these and let me know if they see anything that would cause this flight problem?

The following is the equipment used for this build:
Frame: Tarot TL250A
FC: OpenPilot Revolution
Motors: Emax 1806 motors
ESC: Emax Simonk 12A
GPS: Ublox M8N
Transmitter/Receiver: Turnigy 9X

Thank you and I would appreciate any help anyone can provide.
Title: Can't Get Revo To Work w/GPS! Recommend Different Flight Controller
Post by: FlyGuy on February 03, 2016, 07:08:14 pm
I can’t get my OpenPilot Revo to work in GPS mode with Ublox M8N to achieve Position Hold or Velocity Roam. The Revo works fine in Basic (Complimentary) but not configured for GPS. GPS functionality is why I bought the Revo in the first place. I have been working on different settings/configurations and calibrations for over a month and cannot get it to even fly as well as the Basic configuration. I have come to the conclusion that either the Revo is defective (not willing to risk purchasing another clone) or some functionality just did not work to begin with. I have submitted multiple questions and files for review to the forum for help but no one has been able to help me solved my issues. With that said, I think it is time to move on and find a flight controller that will give me the GPS functionality I looking for. Does anyone have experience with a good reliable GPS flight controller they could recommend?
I commend the LibrePilot group for resurrecting the support of OpenPilot products after the original OpenPilot support was abruptly shut off.
Thank you for any information or recommendations you can pass along.
Title: Re: Help! Help! Revo w/GPS cannot be configured for level flight
Post by: f5soh on February 03, 2016, 07:49:55 pm
Some remarks:
- Why remove the default deadband that applies to sticks ?
- Motors should have the same neutral because calibrated same time.
- Do some tuning, i doubt the default PI value fit exactly your setup. (you only modified the "D" term value) = try Easytune
- Never change the trims in your radio.

I think the main issue is the Mag that can't work in a small setup like a 250 sized quad.
How is the Mag alarm while you start motors ?

If you don't have Oplink, connect by USB.
Maintain firmly your quad, put some throttle and look how is the Mag alarm.


Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: FlyGuy on February 03, 2016, 07:59:42 pm
I finally was able to get the Revo to arm when not connected to the computer. First, you have to set the home location and then calibrate the accelerometer, magnetometer, board level and gryo. I did not perform the thermal calibration. I am able to arm the quad but am having difficulty getting my Tarot TL250A w/revo to take off level when it is configured for GPS (INS13). When the revo is configure for non-GPS flight (Basic Complimentary) it takes off level and flies fine in manual, altitude hold and altitude vario. When configured for GPS, I try to take off in manual mode, motors 3 and 4 lift the back of quad so much I cannot achieve level take off. I attempted to adjust the trim setting but still cannot get a level take off. I’ve attempted to manually compensate but still cannot reach level flight. I’ve recalibrated the neutral for the motors in GCS several times but still have the same issue.

I’ve attached 2 .uav files one is configured for GPS and the other is not.

Could someone please take a look at these and let me know if they see anything that would cause this flight problem? I starting to think the Revo is defective and will start looking for a different flight controller.

The following is the equipment used for this build:
Frame: Tarot TL250A
FC: OpenPilot Revolution
Motors: Emax 1806 motors
ESC: Emax Simonk 12A
GPS: Ublox M8N
Transmitter/Receiver: Turnigy 9X

Thank you and I would appreciate any help anyone can provide.
Title: Re: Help! Help! Revo w/GPS cannot be configured for level flight
Post by: FlyGuy on February 03, 2016, 08:14:16 pm
Thank you for responding.

- I did not intentionally remove the default deadband for the sticks. Used Vehicle setup wizard. How do I restore defaults?
- Motor start and spin consistently at different values. That is why the neutral numbers are different.
- Not familiar with Easytune. Where can I find this? Is it part of the LibrePilot GCS software?
- Changing the radio trims was the last ditch effort to level out flight.

The Mag alarm flashes between orange and green when applying throttle to the motors.

Thanks again for your response. Was about to give up and start looking for a different model flight controller.
Title: Re: Help! Help! Revo w/GPS cannot be configured for level flight
Post by: f5soh on February 03, 2016, 08:38:19 pm
Quote
The Mag alarm flashes between orange and green when applying throttle to the motors.
With props mounted ?

EasyTune is part of LibrePilot.
https://librepilot.atlassian.net/wiki/display/LPDOC/TxPID



Title: Re: Help! Help! Revo w/GPS cannot be configured for level flight
Post by: FlyGuy on February 03, 2016, 08:48:28 pm
Mag alarm flashes between orange and green with props unmounted. Will monitor with props mounted and let you know.

Thanks for the EasyTune link. I just knew it as TxPID. I will enable it and check it out.
Title: Re: Help! Help! Revo w/GPS cannot be configured for level flight
Post by: f5soh on February 03, 2016, 08:57:48 pm
No props, no current.
No current, no magnetic fields.

The bad thing is you may need props attached for better flight :)
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: f5soh on February 03, 2016, 09:07:25 pm
I wonder how many threads you need for your issue ?
Please keep simple, no need to start a new thread.

All posts from 3 threads, now in a same thread. Thanks.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: FlyGuy on February 03, 2016, 09:51:03 pm
Sorry, last thread started looking for a different flight controller recommendation.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: TheOtherCliff on February 04, 2016, 11:11:31 pm
INS13 uses the mag for more than just compass heading and so quad must be built correctly and calibrated correctly.  INS13 uses mag all the time, not just in GPS flight modes.  The mag is also used to know what direction is down so if it is incorrect, it will not fly level and will do other bad things too!

While you are building you must twist together all your high current wire pairs/triplets:  Battery to PDB, PDB to ESC, ESC to motor.  You must use a good PDB that is designed for use with mags.  Even after that, if you have a small or powerful quad, the magnetic fields may still be too strong to fly.  You can arm because mags are green when there is no power, but when you add power, the mags go orange or red.

One solution is to use an aux (external) mag.  Now days they are usually built into the GPS unit.  For 15.09 the only supported aux mag is the one on the OP GPS V9.  For our next LP release, we will have support for different GPS/mag units and thus have more aux mag options.

If your mag ever goes orange or red just because you go to increase throttle, you have a mag problem that must be fixed.  It doesn't do it as bad when facing some compass directions, but you still have the problem if it does it at all.  :(  And these tests must be performed with props on because that is when there is a large load for the motors and thus a large current flowing in the wires.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: onecooler on March 29, 2016, 12:13:19 pm
I am able to arm the quad but am having difficulty getting my Tarot TL250A w/revo to take off level when it is configured for GPS (INS13). When the revo is configure for non-GPS flight (Basic Complimentary) it takes off level and flies fine in manual, altitude hold and altitude vario.

Hi!

I had exactly the same issue when I was running the latest released LibrePilot 15.09. With INS13 I could hardly take of and quad was really unstable. Using any GPS  assisted mode would cause a right-away crash. I had the same thoughts and was looking on Naze32+ that has found its place on my shelf long ago. But since it was winter and I had a lot of time for experiments I have built software from "next" branch and installed it. After that, things have changed significantly. My quad is very stable and all GPS functionality work just fine.
I believe that all gurus here (that are usually respond in this forum) are running not released software that was improved a lot (thank you guys - you are awesome!), and are not really aware of existence of such problems (it may happen that this problem exist only with some clones of revo boards and 15.09 sw).
My advice to try LP next before you switch to different FC. (It is really awesome!)

Best regards,
-K.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: Mateusz on March 29, 2016, 01:21:13 pm
I believe that all gurus here (that are usually respond in this forum) are running not released software that was improved a lot (thank you guys - you are awesome!), and are not really aware of existence of such problems (it may happen that this problem exist only with some clones of revo boards and 15.09 sw).
My advice to try LP next before you switch to different FC. (It is really awesome!)

It's in human nature to look for patterns, but often people draw mistakenly conclusions from those patterns trying to explain something, while in fact the real cause is completely different. Same happens with changing firmware, or hardware to completely new one. You change everything so it's likely you changed something on the way you don't know about. I am not excluding any possibility of the cause, but saying it may not necessarily be firmware problem.

Does going back to the old firmware with the same procedure/similar config causes issues ?

Another thing is that LP uses 3D magnetometer. This usually causes most headache to people. What that means is that LP measures magnetic field at all three x,y and z axis and uses all that information. While some other software may use only 2D magnetometer and use only two axis, ignoring third measurement. Having more data helps EKF to give more accurate estimates, than just using fewer data. However, despite the EKF (aka INS31) is designed to deal with noise by taking best of all sensors and blending them, it can not handle completely noisy, contradicting or not consistent data.
 
Often people fly in Complementary and think that enabling INS31 just adds GPS. That is not correct. Complementary uses Accel+Gyro, while INS31 uses all sensors available on the aircraft.
If any of those sensors produces totally wrong data either because of noise or bad mag rotation (in case of auxmag) that are not in agreement with the rest of sensors, then fusion algorithm won't be able to give reliable results.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: onecooler on March 29, 2016, 03:26:50 pm
Does going back to the old firmware with the same procedure/similar config causes issues ?
Yes, it might turn out that it will work - I have not tested this yet. But setup is the same - I can reproduce it with my eyes closed. That is why it gave me certain level of confidence that this might be a firmware problem. I have some basic knowledge of LQE and I understand what happens when you turn INS13 on. However since my theory has never been tested, let's consider it as ONE of MANY possible root causes.
Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: Mateusz on March 29, 2016, 06:00:36 pm
Does going back to the old firmware with the same procedure/similar config causes issues ?
Yes, it might turn out that it will work - I have not tested this yet. But setup is the same - I can reproduce it with my eyes closed. That is why it gave me certain level of confidence that this might be a firmware problem. I have some basic knowledge of LQE and I understand what happens when you turn INS13 on. However since my theory has never been tested, let's consider it as ONE of MANY possible root causes.

If you have time and spare build, it would be awesome if you could reproduce a problem, by testing 15.09 and next firmware back and forth with the same config. I don't want to discourage you by the fact that it worked for me and others, but if you would find the cause of your problem that is not a user error, that would be really great to know. Maybe devs could roll out a minor fix release for those who can't build next ? I am serious here, it would be really helpful for others.

Title: Re: HELP!! - Revo w/GPS will not arm when disconnect from GCS
Post by: onecooler on March 29, 2016, 10:14:01 pm
If you have time and spare build, it would be awesome if you could reproduce a problem, by testing 15.09 and next firmware back and forth with the same config.
Mateusz,
The main problem is as always - time. I will try to do the test this weekend. (I do not promise but will try to find time ;))

Best,
-K.