Page 1 of 1

GPS Hold

Posted: Thu Oct 11, 2012 5:38 am
by flyandi
I finally managed to get the i2c-nav-board to work and now have GPS .. yeah ..

so now I tried GPS hold today and it didn't seem to work.

Do I get this right? GPS Hold basically saves the current position when activated and stays at the current location.. so everytime I move it automatically saves the pos once it's stopped and trys to establish location.

Does anyone know how good that is? I tested only for a bit today and it seems that it doesn't hold at all - turned off the quad drifts with the wind, however with GPS turned on it seems it drifts even more.

Here is what I did in the config:

#define I2C_GP
#define MAG_DECLINIATION 0.35f // San Marcos, CA

everything else is default

I also made the patches to the GPS code as described here: http://www.rcgroups.com/forums/showthread.php?t=1724694

Maybe I am missing something :-)

Thanks,

Andy

Re: GPS Hold

Posted: Wed Oct 24, 2012 4:59 am
by Dave66
flyandi wrote:
Here is what I did in the config:

#define I2C_GP
#define MAG_DECLINIATION 0.35f // San Marcos, Ca


Uncomment your type of GPS sensor (UBLOX, NTK, etc). Uncomment //#define AP_MODE 10 , this will reset position hold every time you release the sticks to neutral position.

You cannot just add degs to min and get a correct decliniation, you have to convert the degs to min then add them together. San Marcos, Ca 12degs 9' east

12 degs x 60 to convert degs to min = 720, then add remaining min, 720+9=729 total min, now multiply by (1/60), so 729x0.01667=12.15. I would enter 12.15f in the sketch.

You can confirm this by using the example of Budapest Hungary given in the sketch. This may not solve your problem, look up posts by pm1, he is the GPS expert.