diff options
author | Julian Oes <joes@student.ethz.ch> | 2013-01-17 16:53:32 -0800 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2013-01-17 16:54:32 -0800 |
commit | 9ca472bbc7727294c039dbced0dc7bea6925789e (patch) | |
tree | 11c43286273d1e9d1936a561d65165a492e472e0 /apps/gps/gps.c | |
parent | ebaa38ad1b5c1d625467fc867480e1969edd60aa (diff) | |
download | px4-firmware-9ca472bbc7727294c039dbced0dc7bea6925789e.tar.gz px4-firmware-9ca472bbc7727294c039dbced0dc7bea6925789e.tar.bz2 px4-firmware-9ca472bbc7727294c039dbced0dc7bea6925789e.zip |
Ubx configuration working again, gps app is still complicated and big but should be wrking better now
Diffstat (limited to 'apps/gps/gps.c')
-rw-r--r-- | apps/gps/gps.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/gps/gps.c b/apps/gps/gps.c index cb9a77c51..8a9512054 100644 --- a/apps/gps/gps.c +++ b/apps/gps/gps.c @@ -107,8 +107,8 @@ enum GPS_MODES { #define AUTO_DETECTION_COUNT 8 -const int autodetection_baudrates[] = {B9600, B38400, B38400, B9600, B9600, B38400, B9600, B38400}; -const enum GPS_MODES autodetection_gpsmodes[] = {GPS_MODE_UBX, GPS_MODE_MTK, GPS_MODE_UBX, GPS_MODE_MTK, GPS_MODE_UBX, GPS_MODE_MTK, GPS_MODE_NMEA, GPS_MODE_NMEA}; //nmea is the fall-back if nothing else works, therefore we try the standard modes again before finally trying nmea +const int autodetection_baudrates[] = {B38400, B9600, B38400, B9600, B38400, B9600, B38400, B9600}; +const enum GPS_MODES autodetection_gpsmodes[] = {GPS_MODE_UBX, GPS_MODE_UBX, GPS_MODE_MTK, GPS_MODE_MTK, GPS_MODE_UBX, GPS_MODE_UBX, GPS_MODE_NMEA, GPS_MODE_NMEA}; //nmea is the fall-back if nothing else works, therefore we try the standard modes again before finally trying nmea /**************************************************************************** * Private functions @@ -189,7 +189,7 @@ int gps_thread_main(int argc, char *argv[]) { gps_mode_success = true; terminate_gps_thread = false; bool retry = false; - gps_verbose = true; + gps_verbose = false; int mavlink_fd = open(MAVLINK_LOG_DEVICE, 0); @@ -368,7 +368,6 @@ int gps_thread_main(int argc, char *argv[]) { args.thread_should_exit_ptr = &thread_should_exit; pthread_create(&ubx_thread, &ubx_loop_attr, ubx_loop, (void *)&args); - sleep(2); // XXX TODO Check if this is too short, try to lower sleeps in UBX driver pthread_attr_t ubx_wd_attr; pthread_attr_init(&ubx_wd_attr); |