Hello to you all

 

I have run into a small issue with a new MTK in the set up testing, I have tried to search the forums for the answer, seems like the search is down still :(

 

I have a solid blue light on the unit, so lock I believe is happening, when in the CLI I run the GPS test but only have a "..........." scrolling across the screen, the GPS unit is only a few weeks old, I have not checked, but I believe that this would be the 1.6 not the 1.4 like the older unit I have tested and have got working with out issue.

The older unit I have tried (older MTK GPS unit) shows the results (Long Lat Sat’s) as expected in the CLI window, so I know that the APM/Oilpan is ok.

I have tried all of the combinations to stop the “……” and see the number of SAT’s in the Config.h file, can’t help thinking I have missed something :(

 

#define GPS_PROTOCOL GPS_PROTOCOL_MTK // You must uncomment this line by removing the slashes ("//") in front of the "#" and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're using one of them instead:

 

// Other allowed options include:

// GPS_PROTOCOL_NONE        No GPS attached

// GPS_PROTOCOL_IMU         X-Plane interface or ArduPilot IMU.

//#define GPS_PROTOCOL_MTK         MediaTek-based GPS.

//#define GPS_PROTOCOL_MTK16       MediaTek-based GPS with 1.6 firmware

// GPS_PROTOCOL_UBLOX       UBLOX GPS

// GPS_PROTOCOL_SIRF        SiRF-based GPS in Binary mode.  NOT TESTED

 

Latest APM code being used, latest Ardunio IDE being used.

 

Any thoughts?

 

Regards

 

Martin.

 

 

 

 

 

Views: 1211

Reply to This

Replies to This Discussion

Do you have a "#define GPS_PROTOCOL_MTK" in your config.h file? not a "//#define GPS_PROTOCOL_MTK".

What revision of the IMU board are you using? it says on the underside.

Hi Ritchie,

The board is APM 1.4 and the oilpan is Hotel.

I have set the config.h to:

#define GPS_PROTOCOL GPS_PROTOCOL_MTK

also had added #define GPS_PROTOCOL_MTK16

at the same time, still have the "......" happening in the CLI

 

Regards

 

Martin.

Nto sure if you can have both protocols on the defines line but mine was doing the same thing, solid blue light but when running the test in the CLI the Lat and Lon was way off.  Long story short I had to update the firmware.  Now everything works perfect.
Im pretty sure you only want the mtk16 if it is the newer gps firmware, i get the same thing if i set it to just mtk.

Thank you all for your thoughts :)

 

ok if I have this in Config:

 

#define GPS_PROTOCOL GPS_PROTOCOL_MTK // You must uncommment this line by removing the slashes ("//") in front of the "#" and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're using one of them instead:

// Other allowed options include:
// GPS_PROTOCOL_NONE        No GPS attached
// GPS_PROTOCOL_IMU         X-Plane interface or ArduPilot IMU.
//#define GPS_PROTOCOL_MTK         MediaTek-based GPS.
#define GPS_PROTOCOL_MTK16       MediaTek-based GPS with 1.6 firmware
// GPS_PROTOCOL_UBLOX       UBLOX GPS
// GPS_PROTOCOL_SIRF        SiRF-based GPS in Binary mode.  NOT TESTED

 

The IDE will compile and the code will go up to the APM.

 

The "......" happens

 

If I have this in Config:

 

//#define GPS_PROTOCOL GPS_PROTOCOL_MTK // You must uncommment this line by removing the slashes ("//") in front of the "#" and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're using one of them instead:

// Other allowed options include:
// GPS_PROTOCOL_NONE        No GPS attached
// GPS_PROTOCOL_IMU         X-Plane interface or ArduPilot IMU.
//#define GPS_PROTOCOL_MTK         MediaTek-based GPS.
#define GPS_PROTOCOL_MTK16       MediaTek-based GPS with 1.6 firmware
// GPS_PROTOCOL_UBLOX       UBLOX GPS
// GPS_PROTOCOL_SIRF        SiRF-based GPS in Binary mode.  NOT TESTED

 

I have this message:

In file included from ArduPilotMega.cpp:34:
/config.h:57:3: error: #error XXX
/config.h:58:3: error: #error XXX You must define GPS_PROTOCOL in APM_Config.h
/config.h:59:3: error: #error XXX

 

 

If I have this in config:

 

#define GPS_PROTOCOL GPS_PROTOCOL_MTK // You must uncommment this line by removing the slashes ("//") in front of the "#" and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're using one of them instead:

// Other allowed options include:
// GPS_PROTOCOL_NONE        No GPS attached
// GPS_PROTOCOL_IMU         X-Plane interface or ArduPilot IMU.
#define GPS_PROTOCOL_MTK         MediaTek-based GPS.
#define GPS_PROTOCOL_MTK16       MediaTek-based GPS with 1.6 firmware
// GPS_PROTOCOL_UBLOX       UBLOX GPS
// GPS_PROTOCOL_SIRF        SiRF-based GPS in Binary mode.  NOT TESTED

 

I have this message:

In file included from ArduPilotMega.cpp:34:
/config.h:63:33: error: missing binary operator before token "GPS"

 

I have tried all the other combinations, and still only see the "......." in the CLI, could one of you paste your config.h file for the GPS with the 1.6 GPS working so I could take a look.

 

Regards

 

Martin.

Ok, so today was a blonde day.......... thought I had to use the code below, D'oh.

 

Thank you all for your help, Fab, you hit it buddy! working like a charm!

 

Regards

 

Martin.

Reply to Discussion

RSS

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service