GPS integration

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
User avatar
mbrak
Posts: 136
Joined: Sat Dec 03, 2011 8:08 pm
Location: Germany, Lemgo

Re: GPS integration

Post by mbrak »

hi

just compiled the new r32 version.

got this:

Code: Select all

MultiWii:249: error: 'GPS_WP_RADIUS' was not declared in this scope

User avatar
mbrak
Posts: 136
Joined: Sat Dec 03, 2011 8:08 pm
Location: Germany, Lemgo

Re: GPS integration

Post by mbrak »

hi

fixed the problem above!

@eosbandi your 3 config.h files are different in many parts. only one file contains the 3 new filter options! please update. the file names original is not realy untouched from your config.

got some new errors:

Code: Select all

MultiWii.cpp: In function 'void GPS_NewData()':
GPS:155: error: 'LAT' was not declared in this scope
GPS:156: error: 'LON' was not declared in this scope
GPS:159: error: 'axis' was not declared in this scope
GPS:164: error: 'fraction3' was not declared in this scope
GPS:173: error: 'fraction3' was not declared in this scope
GPS:174: error: 'fraction3' was not declared in this scope

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

Re: GPS integration

Post by EOSBandi »

mbrak wrote:hi

fixed the problem above!

@eosbandi your 3 config.h files are different in many parts. only one file contains the 3 new filter options! please update. the file names original is not realy untouched from your config.

got some new errors:

Code: Select all

MultiWii.cpp: In function 'void GPS_NewData()':
GPS:155: error: 'LAT' was not declared in this scope
GPS:156: error: 'LON' was not declared in this scope
GPS:159: error: 'axis' was not declared in this scope
GPS:164: error: 'fraction3' was not declared in this scope
GPS:173: error: 'fraction3' was not declared in this scope
GPS:174: error: 'fraction3' was not declared in this scope


My fault, mixed up some files... r33 is out. serial gps is compiling now, and removed additional config.h files....

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: GPS integration

Post by nhadrian »

Hi all,

here is some test flight with r32. Detailed infos next to the video... :
http://www.youtube.com/watch?v=45pUfcLB ... e=youtu.be

and here is a return to home:
http://www.youtube.com/watch?v=_hNgIQN_k2c

BTW, this is my mini hexa config:
ImageImage

BR
Adrian

User avatar
mbrak
Posts: 136
Joined: Sat Dec 03, 2011 8:08 pm
Location: Germany, Lemgo

Re: GPS integration

Post by mbrak »

hi

just testet r33. works very good! compliment to you andras!!!

pos hold is a bit more exact imho. may the filter is working :)
rth is great!! have you changed something in the settings andras? the turning speed of the copter is very high to r27. i thing it looks a bit cooler if the copter turns more softly to the home point before flies in that direction an turns again :)

my problem with the acc trim is gone. no idea why or not :)



one question: you wrote that you fixed the lcd.ino together with howardb to show the gps data. how to activate that?

another question :) is there a faq how to tune the gps pids?

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

Re: GPS integration

Post by EOSBandi »

mbrak wrote:hi

just testet r33. works very good! compliment to you andras!!!

pos hold is a bit more exact imho. may the filter is working :)
rth is great!! have you changed something in the settings andras? the turning speed of the copter is very high to r27. i thing it looks a bit cooler if the copter turns more softly to the home point before flies in that direction an turns again :)

my problem with the acc trim is gone. no idea why or not :)



one question: you wrote that you fixed the lcd.ino together with howardb to show the gps data. how to activate that?

another question :) is there a faq how to tune the gps pids?


The turning speed is governed by the mag hold PID-s, I do nothing else just put the nav_bearing into the magHold. I think lowering the MAG P will slow down the turn rate...
I'm afraid there isn't any complete guide for PID tuning, I found helpful Jason Short's PID simulator, which is using the same algorithm that the current code use. You cannot take values from the simulator and enter them into your multiwii, but you can experiment with different settings, and learn what value does what.

Unfortunately I don't have LCD so I did not tested the code... I ordered some oled's from wide.hk but they are still on the way.
Regards,
Andras

User avatar
mbrak
Posts: 136
Joined: Sat Dec 03, 2011 8:08 pm
Location: Germany, Lemgo

Re: GPS integration

Post by mbrak »

hi

yes i changed the p-term of mag...... ok good to know that :)

was a bit frightened as i saw the copter turning so fast :) with the r27 and p-mag=4 it turns so soft. now p-mag is equal 10 because mag-hold works much better.

Vilhelmsson
Posts: 8
Joined: Sun May 20, 2012 7:09 am

Re: GPS integration

Post by Vilhelmsson »

Hi all, interesting, link pls

Anders, Sweden

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

Re: GPS integration

Post by EOSBandi »


Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

I found these if anyone is after a really cheap serial GPS bob; UK based

http://www.ebay.co.uk/itm/110881641365

Image

It has a funky firmware but you can update that following these instructions;

viewtopic.php?f=6&t=1682

Vilhelmsson
Posts: 8
Joined: Sun May 20, 2012 7:09 am

Re: GPS integration

Post by Vilhelmsson »

Hi again, tested r33 and my sbus is completely weird, funny it works with 2.0 and MichelM’s, cleaned Eprom hm, btw using PMB-648 GPS any issues ?

KR Anders Sweden

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

Re: GPS integration

Post by EOSBandi »

Test wirh a "vanilia" 20120504dev, i did not touched rc code at all.

User avatar
guru_florida
Posts: 45
Joined: Sat Mar 26, 2011 4:51 am

Re: GPS integration

Post by guru_florida »

Had a good flight test last night in a large parking lot. Both position hold and return to home worked great. No GPS PID changes here, just defaults. RTH saved me a few times since it was dark and I dont have lights on!

At one point a low flying large aircraft flew overhead - I thought, "hmm....I could fly right up to that jet, maybe get a WTF...then active RTH and have it fly back home." Then common sense hit me....
"Running into on-coming traffic is...counter productive!!!" - jim carry

Checkout a funny jim carry standup, skip to 4:35
http://www.youtube.com/watch?v=ubbB1kH5B9Y&lr=1

KeesvR
Posts: 194
Joined: Fri May 27, 2011 6:51 pm
Location: The Netherlands

Re: GPS integration

Post by KeesvR »

Hi EosBandi, could you include a text file with instructions. There have bin a lot of questions answered in this topic, but its not easy to find these back because this topic is growing fast.

As I read here you've made a lot of improvement, I hope I can find some time soon to test these things.

Thanks a lot for your hard work on this.

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

Re: GPS integration

Post by EOSBandi »

KeesvR wrote:Hi EosBandi, could you include a text file with instructions. There have bin a lot of questions answered in this topic, but its not easy to find these back because this topic is growing fast.

As I read here you've made a lot of improvement, I hope I can find some time soon to test these things.

Thanks a lot for your hard work on this.


I'm working on the documentation, at this moment... stay tuned.

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

Must be almost time for the MultiWii Mission Planner ;)

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

Re: GPS integration

Post by EOSBandi »

Vilhelmsson wrote:Hi again, tested r33 and my sbus is completely weird, funny it works with 2.0 and MichelM’s, cleaned Eprom hm, btw using PMB-648 GPS any issues ?

KR Anders Sweden


I do not recommend using such an old gps, 1Hz update rate and low sensitivity... you wont get satifactory results... I think an 5Hz update rate is a min, 10Hz with GPS_FILTER ON and 5Hz without GPS_FILTER
If you would like to test the PMB648 then definitely have to disable GPS_FILTER

Tazzy
Posts: 75
Joined: Sun Jun 19, 2011 4:45 pm
Location: Sweden

Re: GPS integration

Post by Tazzy »

Hello folks
Is there big difference in pid values between multiwii 2.0 and 20120504dev ?
I need to change the pids alot to get it fly stable in 20120504dev and have not manage to do that yet ;(
I have a pro 328 with genuine wiim+ and nk , BMP085, HMC5843 and a working i2c gps setup that works perfect in v2.0
Any suggestions ?

// Tazzy

User avatar
Gaijin
Posts: 82
Joined: Sat Jan 14, 2012 8:00 am

Re: GPS integration

Post by Gaijin »

Probably a stupid question but, If I'm using I2C GPS, should I comment out the serial GPS line in the sketch, also shouldn't the POS HOLD and RTH Boxes change colour when selected in the GUI?

I only ask as I don't feel that the two functions are working for me, The copter seems to drift of in the last direction (at least with r27 tested on sunday)

Unfortunately I can't check how many sats I have in the field without the Android App being updated but the light is going out on my Navigatron and I'm fairly confident in getting a lock from earlier GUI tests.

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

Re: GPS integration

Post by EOSBandi »

Gaijin wrote:Probably a stupid question but, If I'm using I2C GPS, should I comment out the serial GPS line in the sketch, also shouldn't the POS HOLD and RTH Boxes change colour when selected in the GUI?

I only ask as I don't feel that the two functions are working for me, The copter seems to drift of in the last direction (at least with r27 tested on sunday)

Unfortunately I can't check how many sats I have in the field without the Android App being updated but the light is going out on my Navigatron and I'm fairly confident in getting a lock from earlier GUI tests.


for i2c_gps
// #define GPS_SERIAL 2
// #define GPS_BAUD 115200

#define I2C_GPS

poshold and rth box should change color when 1. copter is armed, solid gps lock is achieved (numSat>=5).
You can check the blue led on the Navigatron, three short flashes in every second means solid 3d lock.

rbirdie001
Posts: 178
Joined: Fri Apr 01, 2011 10:32 pm
Location: Czech Republic, Prague

Re: GPS integration

Post by rbirdie001 »

Hi to all, especially EOSBandi,
few observations and questions after flashing r33.
I have tricopter with Crius SE board and I2C GPS (Mediatek 10Hz module on the arduino). Previously running MWC 2.0 and I2C GPS initial version (slightly modified to send GPS configuration strings) without problems.
I first flashed I2C module with the I2C version bundled with r33, just modified to my GPS (initial speed 38400, PMTK strings to 10Hz @ 115200), no change in it's config. This worked (at least on GUI) with MWC2.0, I got GPS fix blinking on FC and at least 4 SATS on GUI (just limited view from my balcony).
Then I flashed r33 into MWC FC (I'm not sure if I set everything OK in the config) and observed the following:
1) sensors values OK on the GUI, GPS box green like detected, but no GPS fix (could be limited view to sky, but I don't think so...) Will test tomorrow outside.
2) always I get 19 errors on I2C on the GUI - previously I got NEVER an error.
3) GUI application on my notebook (Win XP 32, with bluetooth) is starting very slowly (just empty white windows for the first 20 seconds after starting the application. (I had similar behaviour sometime in times of MWC1.6 and that was corrected by nuw rxtxserial.dll) Connection MWC to notebook via bluetooth.
Any ideas what to check? (Sorry, I'm not programmer, only an user... :) )
I'm attaching my config for the reference.
Big thanks to EOSBandi and all others for the big effort!!! :!:
Roman
EDIT: Bathroom idea at 1AM: I'm using twi library from the time of initial I2C GPS release some months ago - not upgraded now. Are there any recent changes? Will test to replace with r33 bundled version tomorrow.
Attachments
config.zip
My config fo r33. Is it correct?
(13.25 KiB) Downloaded 221 times
Last edited by rbirdie001 on Tue May 22, 2012 12:05 am, edited 2 times in total.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: GPS integration

Post by Alexinparis »

Hi,
This thread is moving so fast, with a lot of improvements !
I think it's time to merge something :)
To ease things integrating the serial part: I would like to gather all "non shared" variables and functions into the GPS.pde file, including the PI & PID classes (in order to optimize them and get rid later of C++ style ;) )

Digging a little into the algorithm code:
- lat & lon speed is the result of a computation.
I noticed NMEA RMC frame has 2 interesting variables: GPS_speed and GPS ground course.
I don't know if it's the result of an internal averaging or if it's the result of direct GPS computation (using Doppler resultant)
But don't you think we could use them to have a more accurate lat & lon speed ?

I noticed also there is the Magnetic Variation variable in the RMC frame, witch is equivalent to the magnetic declination according to wiki.
We could maybe use it if available instead of defining a static declination.

frog32
Posts: 55
Joined: Sun Nov 20, 2011 9:39 pm

Re: GPS integration

Post by frog32 »

as far as i knew, the speed should be calculated with the doppler shift. because a gps already has to compensate the doppler to be able receive any signals. without compensating the doppler you only receive the satellites which are near the zenith because then the movement of the satellite would be tangential. i hope the things that i remember from my mobile communication study are not too outdated.

marc

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

Re: GPS integration

Post by EOSBandi »

Alexinparis wrote:Hi,
This thread is moving so fast, with a lot of improvements !
I think it's time to merge something :)
To ease things integrating the serial part: I would like to gather all "non shared" variables and functions into the GPS.pde file, including the PI & PID classes (in order to optimize them and get rid later of C++ style ;) )

Digging a little into the algorithm code:
- lat & lon speed is the result of a computation.
I noticed NMEA RMC frame has 2 interesting variables: GPS_speed and GPS ground course.
I don't know if it's the result of an internal averaging or if it's the result of direct GPS computation (using Doppler resultant)
But don't you think we could use them to have a more accurate lat & lon speed ?

I noticed also there is the Magnetic Variation variable in the RMC frame, witch is equivalent to the magnetic declination according to wiki.
We could maybe use it if available instead of defining a static declination.



As I know the GPS speed is a simple 2d calculation based on the lat and lon meassurements, and it's not really precise below 1m/s (this is same for gps-bearing). For the calculations we need x and y speed, and if gps speed is used to calculate x-y speed it's one sin and one cos instead of the couple of substractions and multiplications..

Magnetic variation is indeed part of the RMC frame, but only nautical gps units outputting it. Standard embedded modules are not populating this field...there is an algorithm to calculate it from lat/lon coordinates, but the memory footprint for that is aroung 3K, which is not affordable on small FC's

I agree on moving all non common variables and defines to the gps.ino file.

I really don't wan to start a debate about it, but is there any particular reason why shouldn't we use C++ libs? The PID and PI libraries are quite straigthforward, and using them has too basic advantages.
1. it makes code clearer and understandable, and more coding error prone.
2. They are easy to implement and change.

I would stick with those classes unless it's absolutely neccessary to "convert" them into C code.

Andras

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

Does anyone happen to have a MT3329 115200 @ 10hz firmware file to hand?

I'm being guinea pig messing around with firmware on that cheap MT3329 I posted back a page or 2. So far managed to update it to DIYDrones 1.6 firmware (which they claim only works on their module lol) and a 10hz 38400 firmware intended for the FMP04 - both worked fine.

For ease of dev I'd like to load up a 115200 10hz firmware.

I'll add my notes to the flashing process thread in a minute.

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

Re: GPS integration

Post by EOSBandi »

rbirdie001 wrote:Hi to all, especially EOSBandi,
few observations and questions after flashing r33.
I have tricopter with Crius SE board and I2C GPS (Mediatek 10Hz module on the arduino). Previously running MWC 2.0 and I2C GPS initial version (slightly modified to send GPS configuration strings) without problems.
I first flashed I2C module with the I2C version bundled with r33, just modified to my GPS (initial speed 38400, PMTK strings to 10Hz @ 115200), no change in it's config. This worked (at least on GUI) with MWC2.0, I got GPS fix blinking on FC and at least 4 SATS on GUI (just limited view from my balcony).
Then I flashed r33 into MWC FC (I'm not sure if I set everything OK in the config) and observed the following:
1) sensors values OK on the GUI, GPS box green like detected, but no GPS fix (could be limited view to sky, but I don't think so...) Will test tomorrow outside.

Is the gray area arounf bearing indicator blinking on GUI ? If yes, then you ot NMEA frames but does not got fix... How is the status led on the arduino connected to the gps is blinking ?
2) always I get 19 errors on I2C on the GUI - previously I got NEVER an error.


If you added some delay at startup for setting GPS speed and update rate in the i2c_gps code, it's possible that the FC starts earlier and tries to set parameters on the i2c_gps... add the same amount of startup delay into multiwii code...(It seems I have to add OK status indicator and a i2c_gps_init function.....

3) GUI application on my notebook (Win XP 32, with bluetooth) is starting very slowly (just empty white windows for the first 20 seconds after starting the application. (I had similar behaviour sometime in times of MWC1.6 and that was corrected by nuw rxtxserial.dll) Connection MWC to notebook via bluetooth.


Well, I not really an expert with MultiWiiGUI, perhaps you can try recompile it on your own config... (also try to update JRE to the latest, if it's supported on XP)

Any ideas what to check? (Sorry, I'm not programmer, only an user... :) )
I'm attaching my config for the reference.
Big thanks to EOSBandi and all others for the big effort!!! :!:
Roman
EDIT: Bathroom idea at 1AM: I'm using twi library from the time of initial I2C GPS release some months ago - not upgraded now. Are there any recent changes? Will test to replace with r33 bundled version tomorrow.

TWI patch did not changed since initial I2C_GPS release.
Last edited by EOSBandi on Tue May 22, 2012 2:26 pm, edited 1 time in total.

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

Re: GPS integration

Post by EOSBandi »

Katch wrote:Does anyone happen to have a MT3329 115200 @ 10hz firmware file to hand?

I'm being guinea pig messing around with firmware on that cheap MT3329 I posted back a page or 2. So far managed to update it to DIYDrones 1.6 firmware (which they claim only works on their module lol) and a 10hz 38400 firmware intended for the FMP04 - both worked fine.

For ease of dev I'd like to load up a 115200 10hz firmware.

I'll add my notes to the flashing process thread in a minute.

I just added it to the downloads section.... http://code.google.com/p/i2c-gps-nav/downloads/list

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

EOSBandi wrote:
Katch wrote:Does anyone happen to have a MT3329 115200 @ 10hz firmware file to hand?

I'm being guinea pig messing around with firmware on that cheap MT3329 I posted back a page or 2. So far managed to update it to DIYDrones 1.6 firmware (which they claim only works on their module lol) and a 10hz 38400 firmware intended for the FMP04 - both worked fine.

For ease of dev I'd like to load up a 115200 10hz firmware.

I'll add my notes to the flashing process thread in a minute.

I just added it to the downloads section.... http://code.google.com/p/i2c-gps-nav/downloads/list


is the firmware confirmed coz there's a mislabelled 115200 5hz firmware floating around claiming to be 10hz

edit - confirmed

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

Re: GPS integration

Post by EOSBandi »

Flash it, then use MiniGPS to set your parameters (GPS frames, update rate, WaaS) and save them to the GPS flash memory (on the Test tab, press shift+ctrl+S to get additional tabs in MiniGPS tool) :D yo have 8 slots to save... Note that Waas could be used only with 5Hz update rate....

Tazzy
Posts: 75
Joined: Sun Jun 19, 2011 4:45 pm
Location: Sweden

Re: GPS integration

Post by Tazzy »

Wohoo r33 version suddenly works to fly after 10 tries and reflash , with my standard values and I2C GPS (Fmp04 flashed to 10Hz and 115200 on a arduino) but it is to gusty winds to try the gps functions right now.
So answer on my own question in this tree is: Yes it use almost the same pids ;)
I have found some strange behavior with the win java config tool and this r33 version, sometimes when i write to arduino it will stop responding i can reboot both the computer and the arduino without to get any connection again.
It activates and fly as it should, but i need to reflash it to get connection again.

Thanks all ppl that works with this wonderful project !!

// Tazz

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

EOSBandi wrote:Flash it, then use MiniGPS to set your parameters (GPS frames, update rate, WaaS) and save them to the GPS flash memory (on the Test tab, press shift+ctrl+S to get additional tabs in MiniGPS tool) :D yo have 8 slots to save... Note that Waas could be used only with 5Hz update rate....



Just flashed the 10hz 115200 firmware you linked to on 2 devices. It is what it says it is.

I have updated a generic MT3329 breakout board and my Navigtron I2C GPS board. To update the Navigtron you have to upload a blank blink sketch to the arduino then connect a usb serial device to 5v gnd and Rx / TX (Rx/Tx must be crossed)

I used the Powerflash tool that DIYDrones provides rather than the Flashtool in the repo.

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

Re: GPS integration

Post by EOSBandi »

The tool in the repo is from the DIYdrones site :D
Blink sketch is a very good idea, i cut the traces from adruino to gps to allow flashing,.. but the blink sketch will do just fine :D

KeesvR
Posts: 194
Joined: Fri May 27, 2011 6:51 pm
Location: The Netherlands

Re: GPS integration

Post by KeesvR »

EOSBandi wrote:
KeesvR wrote:Hi EosBandi, could you include a text file with instructions. There have bin a lot of questions answered in this topic, but its not easy to find these back because this topic is growing fast.

As I read here you've made a lot of improvement, I hope I can find some time soon to test these things.

Thanks a lot for your hard work on this.


I'm working on the documentation, at this moment... stay tuned.


I should have known that :mrgreen:

Thanks a lot.

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

EOSBandi wrote:The tool in the repo is from the DIYdrones site :D
Blink sketch is a very good idea, i cut the traces from adruino to gps to allow flashing,.. but the blink sketch will do just fine :D


Always able to find a hard way lol - the first time I flashed I soldered jumper wires directly onto the gps module not realising they were connected to the FTDI RX and Tx - sometimes I'm dim lol.

User avatar
Gaijin
Posts: 82
Joined: Sat Jan 14, 2012 8:00 am

Re: GPS integration

Post by Gaijin »

Katch wrote:
EOSBandi wrote:Flash it, then use MiniGPS to set your parameters (GPS frames, update rate, WaaS) and save them to the GPS flash memory (on the Test tab, press shift+ctrl+S to get additional tabs in MiniGPS tool) :D yo have 8 slots to save... Note that Waas could be used only with 5Hz update rate....



Just flashed the 10hz 115200 firmware you linked to on 2 devices. It is what it says it is.

I have updated a generic MT3329 breakout board and my Navigtron I2C GPS board. To update the Navigtron you have to upload a blank blink sketch to the arduino then connect a usb serial device to 5v gnd and Rx / TX (Rx/Tx must be crossed)

I used the Powerflash tool that DIYDrones provides rather than the Flashtool in the repo.


Wait a minute, what settings are my Navigatron at by default?

I assumed it was already set to output 10hz etc

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

Re: GPS integration

Post by EOSBandi »

Nay, it's 9600bps, 1hz....

didlawowo69
Posts: 38
Joined: Tue Oct 11, 2011 1:42 pm

Re: GPS integration

Post by didlawowo69 »

i have a arduino pro mini,
which GPS do you use to connect ? from diydrone ? i'm looking for a GPS with data logger, do you have any idea of where i can found that ?

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

Gaijin wrote:
Katch wrote:
EOSBandi wrote:Flash it, then use MiniGPS to set your parameters (GPS frames, update rate, WaaS) and save them to the GPS flash memory (on the Test tab, press shift+ctrl+S to get additional tabs in MiniGPS tool) :D yo have 8 slots to save... Note that Waas could be used only with 5Hz update rate....



Just flashed the 10hz 115200 firmware you linked to on 2 devices. It is what it says it is.

I have updated a generic MT3329 breakout board and my Navigtron I2C GPS board. To update the Navigtron you have to upload a blank blink sketch to the arduino then connect a usb serial device to 5v gnd and Rx / TX (Rx/Tx must be crossed)

I used the Powerflash tool that DIYDrones provides rather than the Flashtool in the repo.


Wait a minute, what settings are my Navigatron at by default?

I assumed it was already set to output 10hz etc


Yeah 9600 @ 1hz unless its the newer v2 with tantalum cap instead of supercap; but the software on the arduino (the i2c gps sketch) sets it to 10hz 115200 when you power the board.

Quad FRITZ
Posts: 44
Joined: Wed Apr 25, 2012 11:21 pm

Re: GPS integration

Post by Quad FRITZ »

Hi-

Just to get this straight- when I use the newest I2C version of the SW for the multiwii and connect a Navigatron GPS board with the old FW it will be initialized for 10Hz anyways- so no need for FW change on the Navigatron board?

Thank you for all the hard work and especially to you, EOSbandi!!!

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

Re: GPS integration

Post by EOSBandi »

Quad FRITZ wrote:Hi-

Just to get this straight- when I use the newest I2C version of the SW for the multiwii and connect a Navigatron GPS board with the old FW it will be initialized for 10Hz anyways- so no need for FW change on the Navigatron board?

Thank you for all the hard work and especially to you, EOSbandi!!!


Nope, the latest version of i2c-gps-nav software (r33 at this moment) DOES NOT CHANGE ANY settings of your GPS receiver. it assumes that your GPS is preset to 115200 bps, 10Hz. If your GPS module has different startup settings, you have to enter the init strings to the code.... I choose this because I experienced some weird issues with different GPS modules, some of them did not accept commands, and the result was not deterministic. So It’s recommended to upgrade your GPS receiver’s firmware to the latest one (it’s 1.5 for PM6B modules) and set default parameters in the module itself, don’t rely on on-the-fly configurations.

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

yeah sorry I should have said the stock i2c gps code that Melih was shipping them with.

Sharkcopter
Posts: 21
Joined: Fri Feb 24, 2012 3:12 pm

Re: GPS integration

Post by Sharkcopter »

Hi
@ EosBandi thanks for your efforts.

Yesterday I bought a Navigatron V2 and I realized that it defaults is 10 hz 115200 bps.
I understand that i have no change anything, is this correct ?

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

Re: GPS integration

Post by EOSBandi »

Sharkcopter wrote:Hi
@ EosBandi thanks for your efforts.

Yesterday I bought a Navigatron V2 and I realized that it defaults is 10 hz 115200 bps.
I understand that i have no change anything, is this correct ?


Correct

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

Re: GPS integration

Post by copterrichie »

Sharkcopter wrote:Hi
@ EosBandi thanks for your efforts.

Yesterday I bought a Navigatron V2 and I realized that it defaults is 10 hz 115200 bps.
I understand that i have no change anything, is this correct ?


Care to share a link where you purchased your Navigtron?

Thank you.

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

Re: GPS integration

Post by EOSBandi »

Hi Guys,
I just uploaded the documentation to the repository. You can find it here : http://code.google.com/p/i2c-gps-nav/downloads/list
Since English is not my native language, and I did not had any formal education for English, there are perhaps some errors. I would appriciate if a native English speaker helps me in proofreading.
Regards,
EOSBandi

User avatar
Bledi
Posts: 187
Joined: Sat Sep 10, 2011 6:36 pm

Re: GPS integration

Post by Bledi »

EXCELLENT tutorial thanks a lot !

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

EOSBandi wrote:Hi Guys,
I just uploaded the documentation to the repository. You can find it here : http://code.google.com/p/i2c-gps-nav/downloads/list
Since English is not my native language, and I did not had any formal education for English, there are perhaps some errors. I would appriciate if a native English speaker helps me in proofreading.
Regards,
EOSBandi


I just happen to be an English teacher - I'll go over it and send you any changes.

EDIT do you have it in an easily editable format - .doc etc?

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

Re: GPS integration

Post by EOSBandi »

Katch wrote:
EOSBandi wrote:Hi Guys,
I just uploaded the documentation to the repository. You can find it here : http://code.google.com/p/i2c-gps-nav/downloads/list
Since English is not my native language, and I did not had any formal education for English, there are perhaps some errors. I would appriciate if a native English speaker helps me in proofreading.
Regards,
EOSBandi


I just happen to be an English teacher - I'll go over it and send you any changes.

EDIT do you have it in an easily editable format - .doc etc?


That would be terrific :). I uploaded in doc format to the repo. http://code.google.com/p/i2c-gps-nav/downloads/list
Thanks in advance,
EOSBandi

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: GPS integration

Post by Katch »

off to the gym will do it tonight.

LuFa
Posts: 160
Joined: Fri Jan 27, 2012 7:56 pm

Re: GPS integration

Post by LuFa »

Hi EosBandi ,

Can you make a list wich thinks i have to add where in the normal Multiwii Code for the r33 GPS Version ?

Thanks

Post Reply