ArduIMU V3 + MTK GPS -Libraries AP_GPS_MTK & AP_GPS_MTK16 - I'm stuck - Help appreciated

Hi Folks,

 

Any assistance is appreciated.

 

I am trying to connect an Arduimu+ V3 and the Mediatek GPS.

 

I can’t seem to get them working happily together.

 

  1. MTK Firmware 1.6  + Arduimu v1.9 using MTK GPS Option 4 = No lock
  2. MTK Firmware 1.6  + Arduimu v1.9 using MTK GPS Option 1(NMEA) = Lock but no correct data (using IMUTest or GCS)
  3. MTK Firmware 1.6  + Arduimu v2.0 (from ardupilotdev) using MTK GPS Option 5 = Lock and correct data but cannot use all the V3 board capability as it was developed up to ArduIMU v2 (ie compass)

 

 

I am not a developer and the sketches are a little tough for me to interpret. But I think my problem is with the MTK 1.6 firmware and AP_MTK Library.

 

In reading through all the other threads it appears I need to use the AP_MTK16 library and this is where I get stuck. I’ve tried:

  • Adding the MKT16 Libraries (.ccp and .h files into the library folders).
  • Modifying the user options in the arduimu.pde (ie adding option 5 MTK 1.6 and AP_MKT include and if statements)
  • I get error after error and I thimk I’m doing something wrong or missing a setp

 

How do I add the MKT16 libraries, make the correct changes in the arduimu code and get the program to load onto the board?

 

Thx in advance (BTW I have read all the threads. Whilst I can find elements of my problem, none seem to be able to take me from start to finish).

 

 

Cheers, Richard

 

Tags: ArduIMU, Arduimu+, GPS, MKT, MKT16, Mediatek, v3

Views: 561

Reply to This

Replies to This Discussion

Downgrade your GPS firmware --> http://code.google.com/p/ardupilot/wiki/MediaTek

This will solve your problem

Is there some technical reason to not have MTK16 support on ? I just made this simple patch and it works.

Downgrade is not so attractive option, it is much more complicated than applying patch and it requires windows that is not so friendly for us, Mac and Linux users.

Index: arduimu.pde
===================================================================
--- arduimu.pde    (revision 201)
+++ arduimu.pde    (working copy)
@@ -31,7 +60,7 @@
 #define GPS_CONNECTION 0 // 0 for GPS pins, 1 for programming pins
 
 // GPS Type Selection - Note Ublox or MediaTek is recommended.  Support for NMEA is limited.
-#define GPS_PROTOCOL 4    // 1 - NMEA,  2 - EM406,  3 - Ublox, 4 -- MediaTek  
+#define GPS_PROTOCOL 5    // 1 - NMEA,  2 - EM406,  3 - Ublox, 4 -- MediaTek, 5 -- MegiaTek 1.6  
 
 // Enable Air Start uses Remove Before Fly flag - connection to pin 6 on ArduPilot
 #define ENABLE_AIR_START 0  //  1 if using airstart/groundstart signaling, 0 if not
@@ -89,6 +118,8 @@
 AP_GPS_UBLOX    GPS(&Serial);
 #elif GPS_PROTOCOL == 4
 AP_GPS_MTK        GPS(&Serial);
+#elif GPS_PROTOCOL == 5
+AP_GPS_MTK16        GPS(&Serial);
 #else
 # error Must define GPS_PROTOCOL with a valid value.
 #endif

Hi,


I did some work to make it working with last GPS firmware.

Attachments:

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service