Questions regarding 2.1 GPS

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Questions regarding 2.1 GPS

Post by jevermeister »

Hi,

I am using an OSD now and noticed that the GPS data freezes and and the whole GPS is unusable.

I wonder, what happens if the number of sats drop below 5.

Is the GPS not updating anymore?

Nils

It took my GPS very long to get a fix, is it because of the dense weather or the low temp? It was faster the last time I tried it...

Thjanks in advance

Nils

User avatar
EOSBandi
Posts: 802
Joined: Sun Jun 19, 2011 11:32 am
Location: Budapest, Hungary
Contact:

Re: Questions regarding 2.1 GPS

Post by EOSBandi »

jevermeister wrote:Hi,

I am using an OSD now and noticed that the GPS data freezes and and the whole GPS is unusable.

I wonder, what happens if the number of sats drop below 5.

Is the GPS not updating anymore?

Nils

It took my GPS very long to get a fix, is it because of the dense weather or the low temp? It was faster the last time I tried it...

Thjanks in advance

Nils


Below 5 stats GPS navigation will stop, since it won't be accurate enought to use it for navigation.... I'm planning a mod (recommended by crashlander) which still enables RTH with 4 sats, but inhibits poshold...
Dense cloud cover indeed interfere with GPS... :(

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

Hi,
thank you for answering Andras.
But will the coordinates be updated if I fell below 5 sats?
Nils

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

I have a question also, if RTH or Position holding is not desired, is it possible to have a pass-through mode? In other words, just read the GPS and make the information available in the MSP Protocol?

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

that was my question. will the data in msp still be updated if below 5 sats?

User avatar
EOSBandi
Posts: 802
Joined: Sun Jun 19, 2011 11:32 am
Location: Budapest, Hungary
Contact:

Re: Questions regarding 2.1 GPS

Post by EOSBandi »

With serial GPS you will got constant updates, with I2C GPS not. (this will change with the next release of I2C-gps-nav

carlonb
Posts: 210
Joined: Sun Apr 03, 2011 6:29 pm

Re: Questions regarding 2.1 GPS

Post by carlonb »

EOSBandi wrote:With serial GPS you will got constant updates, with I2C GPS not. (this will change with the next release of I2C-gps-nav

Hi Eos,
As you are thinking about a new release of your I2C_GPS_NAV, please can take a look about a strange issue that some friends of mine has with their OSD ?
They told me that using a Mobidrone OSD or Rushduino OSD with I2C GPS the Home Arrow (Direction to home) is exactly reverted of 180 degree.
They use the same OSD as me, but I'm using serial GPS and all it's ok.
One more think, I modified this line of your code in I2C_GPS_NAV.ino in order to have cm/sec:

Code: Select all

 
//************* GPGSA FRAME parsing
          case GPRMC_FRAME:
          switch(param)
          {
           //case 7: i2c_dataset.ground_speed = (atof(string)*0.5144444)*10;      //convert to m/s*100
           case 7: i2c_dataset.ground_speed = (atof(string)/0.5144444)*1000*100/3600;      //convert to cm/s my mod
           break;

What do you think ?
Thanks in advance.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

Hmm. I use serial GPS.I believe my data freezes ehen below 5 sats...

Nils

User avatar
EOSBandi
Posts: 802
Joined: Sun Jun 19, 2011 11:32 am
Location: Budapest, Hungary
Contact:

Re: Questions regarding 2.1 GPS

Post by EOSBandi »

jevermeister wrote:Hmm. I use serial GPS.I believe my data freezes ehen below 5 sats...

Nils

I cannot see anything in the code which prevents the updating of gps coordinates with a serual gps as long as you have gps fix.... even with 4 sats

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

I think the problem is related to the Mega Serial ports usage at the same time. Trying to track down the bug now. When I have GPS, GUI and the ODS all running simultaneously, the GPS seems to lock up and the GUI is slow to start.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

yeah richard.that seems to bw the right explanation. Sometimes it seems to wotk again... I think I will update to i2c gps. i2c osd would be nice too...

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

jevermeister wrote:yeah richard.that seems to bw the right explanation. Sometimes it seems to wotk again... I think I will update to i2c gps. i2c osd would be nice too...


I think the best solution is to find out what is wrong with the Serials. I had it working perfectly with the pre-2.1, I will need to back track and see where things changed.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

okay I will have a look at it too. wonder why the osd works perfect...

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

jevermeister wrote:okay I will have a look at it too. wonder why the osd works perfect...


No, I am not stating the OSD works perfectly, what I am saying is, I did a Serial version for the per-release of the 2.1 and that worked perfectly at the time.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

Here is the link to the post: viewtopic.php?f=8&t=1516&hilit=mega+serial&start=50#p13929

I stopped updating it because on one seemed interested at the time.

I THINK (need to verify) which ever serial port gains control over the processor, it does not release control for the processor to service the other requests.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

My OSD works normal in both cases. sometimes the gps data works even works. can I do something to help you finding it?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

jevermeister wrote:My OSD works normal in both cases. sometimes the gps data works even works. can I do something to help you finding it?


I will make an attempt this evening to go through the code and hopefully, have something to test tomorrow.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

kewl. looking forward.
remember:I use stock 2.1. No dev etc..

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

jevermeister wrote:kewl. looking forward.
remember:I use stock 2.1. No dev etc..


It appears to be fixed in R1293.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

Hmm,
I wonder when and how this has been fixed...
I remember, I read something about multiple serial ports at the same time :-/

Nils

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

It works for me, I have GPS on 2, PPM on 1, modiDrone on 3 and the GUI on 0. And now that I think about it, I may be able to use the Define PPM on Throttle freeing up one of the serial ports. Hmmm

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: Questions regarding 2.1 GPS

Post by jevermeister »

with post1293 or stock 2.1?`

I use the same setup mobidrone/ppm/sergps

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Questions regarding 2.1 GPS

Post by copterrichie »

The most recent development, I believe I am using R1292 but R1293 should be the same.

Post Reply