GPS problem after migrating to MW 2.4

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
redguy666
Posts: 2
Joined: Fri Apr 10, 2015 12:08 pm

GPS problem after migrating to MW 2.4

Post by redguy666 »

I have MultiWii PRO with MTK 3329 GPS (http://www.hobbyking.com/hobbyking/stor ... odule.html)

on MW 2.3 everything worked just fine. after switching to MW 2.4 - GPS is not fixing and number of satelites is always 0. My setup is:

Code: Select all

#define GPS_SERIAL 2
#define GPS_BAUD   57600
#define NMEA
#define INIT_MTK_GPS
#define GPS_LED_INDICATOR

blue led gps indicator on board is not flashing at all - it is continuously on.
this worked in MW 2.3 (I copied those settings from my MW 2.3 config.h) How can I trace cause and solve it?

Noctaro
Posts: 280
Joined: Thu Sep 08, 2011 11:15 am
Contact:

Re: GPS problem after migrating to MW 2.4

Post by Noctaro »

Hi, i just had similar troubles.
The workaround for me was to initialize the GPS with 2.3 and then flashing 2.4 with commented //#define INIT_MTK_GPS.
Have a look at the dev post if you like. Sorry i did not see your topic before posting there -> viewtopic.php?f=8&t=6231#p62875

Greetz Noc

FengShuiDrone
Posts: 234
Joined: Wed Dec 24, 2014 1:20 am
Location: ......

Re: GPS problem after migrating to MW 2.4

Post by FengShuiDrone »

.
Last edited by FengShuiDrone on Fri Aug 07, 2015 4:40 pm, edited 1 time in total.

Noctaro
Posts: 280
Joined: Thu Sep 08, 2011 11:15 am
Contact:

Re: GPS problem after migrating to MW 2.4

Post by Noctaro »

Hi,
i thought you have to set the mode, in wich the module is going to be operating at init. How does the firmware know if it should set it to binary mode or nmea? Did i miss something?

Btw. if compiling without any of these modes uncommented, but the init function active, i get following compile error:

Code: Select all

MultiWii.cpp.o: In Funktion `loop':
MultiWii.cpp:869: Nicht definierter Verweis auf `GPS_SerialInit()'
Protocol.cpp.o: In Funktion `debugmsg_append_str(char const*)':
Protocol.cpp:844: Nicht definierter Verweis auf `GPS_newFrame(unsigned char)'
collect2: error: ld returned 1 exit status

FengShuiDrone
Posts: 234
Joined: Wed Dec 24, 2014 1:20 am
Location: ......

Re: GPS problem after migrating to MW 2.4

Post by FengShuiDrone »

.
Last edited by FengShuiDrone on Fri Aug 07, 2015 4:41 pm, edited 1 time in total.

Noctaro
Posts: 280
Joined: Thu Sep 08, 2011 11:15 am
Contact:

Re: GPS problem after migrating to MW 2.4

Post by Noctaro »

I have used this board since multiwii 2.2 without this problem.....

I cant compile it with INIT_MTK_GPS and without NMEA uncommented as you suggested.
//#define NMEA
#define INIT_MTK_GPS

Working like a charm on 2.3 when uncommenting both
#define NMEA
#define INIT_MTK_GPS

Did not try to compile 2.3 with only INIT_MTK_GPS active for now....

But...as mentioned, if i upload 2.3,GPS is initialized. Afterwards i can upload 2.4 with only #define NMEA and it works well...

FengShuiDrone
Posts: 234
Joined: Wed Dec 24, 2014 1:20 am
Location: ......

Re: GPS problem after migrating to MW 2.4

Post by FengShuiDrone »

.
Last edited by FengShuiDrone on Fri Aug 07, 2015 4:41 pm, edited 1 time in total.

Noctaro
Posts: 280
Joined: Thu Sep 08, 2011 11:15 am
Contact:

Re: GPS problem after migrating to MW 2.4

Post by Noctaro »

However, i will keep testing and report back if i find something that lights up the shadows in my brain regarding this problem.

Btw. i cant say it does not work well once GPS is active. RTH works like it should and also POS hold performs quite nice!
Have to admit that i did not try Missions for now with this board. But i am looking forward to do so. I dont want to buy a ublox as long as my MTK is working ;)

Anyways, thank you for thinking about my problem :)

B35
Posts: 4
Joined: Mon Jun 15, 2015 11:00 pm

Re: GPS problem after migrating to MW 2.4

Post by B35 »

hi,

i have the same issue with my multiwii pro board from hk. the workaround with uploading v2.3 to initialize the gps-module works but after a few days of not using my quad it is like a reset and the the gps is not working...
trying to compile v2.4 without nma constant:

Protocol.cpp.o: In function `serialCom()':
Protocol.cpp:241: undefined reference to `GPS_newFrame(unsigned char)'
MultiWii.cpp.o: In function `setup':
MultiWii.cpp:707: undefined reference to `GPS_SerialInit()'
collect2: error: ld returned 1 exit status

=> error :-/

redguy666
Posts: 2
Joined: Fri Apr 10, 2015 12:08 pm

Re: GPS problem after migrating to MW 2.4

Post by redguy666 »

I confirm flashing 2.3 and again 2.4 temporarily solves problem. I can see it is a common issue. Why can't you revert gps initialisation for mtk to same procedure 2.3 firmware used? 2.3 works like a charm and every time. Flashing back and forth is not a solution as I frequently fly in open area without laptop (only ez gui panel)...

Post Reply