Greetings, copterers. I'm having a problem with the GPS on my ArduCopter. Apologies if this one is already answered somewhere. The short description is that the GPS search/lock only happens when I have the CLI open. Indoors it usually doesn't lock but sometimes it does. The red LED never even blinks when the APM is powered by the LiPo.

Details:

APM 1280
MediaTek MT3329 GPS 10Hz
ArduCopter 2.5.1, dowloaded as source, compiled with Arduino 1.0 on MacOSx
SERIAL0_BAUD 115200
SERUAL3_BAUD 9600
Voltage on the rails of the AMP with LiPo power: 4.947V

In the CLI I get "GPS detected" but when I do test/GPS I get "Sorry, not 1280 compat."

Note that I'm not using MissionPlanner. I'm using no GCS at all, in fact.

Can anyone suggest where to start digging? Is there a serial port conflict (although I suspect it would be less conflict without the CLI compiled)?

Tags: 2.5.1, ArduCopter, CLI, GPS

Views: 169

Reply to This

Replies to This Discussion

OK, I seem to have found a work-around. After powering up, the APM needs to be warm-booted (reset with the reset switch). Opening the CLI does this, and that seems to be why the GPS was working only in CLI mode. I'm not sure why it needs to be reset like this.

Also, darn if that reset switch isn't hard to reach with the way I've mounted the APM!

Maybe, GPS need some time to initialize when you power on board (Cold Start). So APM not see working GPS. When you doing reset (Warm start) your GPS already initialized and APM detected it.

 

Try to add mavlink_delay(250) in system.pde

 

    // Read in the GPS
for (byte counter = 0; ; counter++) {
g_gps->update();
if (g_gps->status() != 0){
GPS_enabled = true;
break;
}
if (counter >= 2) {
GPS_enabled = false;
break;
}
mavlink_delay(250);
}

Ok. I have same issue. Also I can say, my code above will not works.

I'm connected my Logic Analyzer to see when GPS start to send any data on its COM port. And can say, cold start usually takes 2.5 sec. APM tried to initialize GPS after 1.5 sec after powering on, so at this moment GPS still not ready to accept commands.

So I'm moved GPS initialization after INS initialization (Gyro), it will give more time for GPS.

Try attached system.pde (2.5.1)

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