Tags: 2.5.1, ArduCopter, CLI, GPS
Permalink Reply by Fête Mobile on March 22, 2012 at 1:30am
Permalink Reply by Aleksey Kharlanov on March 22, 2012 at 1:47am 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);
}
Permalink Reply by Aleksey Kharlanov on March 24, 2012 at 6:13am 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)
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.24 members
249 members
43 members
8 members
51 members
© 2013 Created by Chris Anderson.
Powered by
