aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/gps/ubx.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-02-04 18:00:10 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-02-04 18:00:10 +0100
commitd4bd7225baa8c46e6a93dcd063f66ce53fe88e69 (patch)
tree726ebff3ff9eba79bc095d8643c937875137e6aa /apps/drivers/gps/ubx.cpp
parent13ec0675703ecc9c7bccb22ef3cd049888dd1abb (diff)
downloadpx4-firmware-d4bd7225baa8c46e6a93dcd063f66ce53fe88e69.tar.gz
px4-firmware-d4bd7225baa8c46e6a93dcd063f66ce53fe88e69.tar.bz2
px4-firmware-d4bd7225baa8c46e6a93dcd063f66ce53fe88e69.zip
More cleanup
Diffstat (limited to 'apps/drivers/gps/ubx.cpp')
-rw-r--r--apps/drivers/gps/ubx.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/drivers/gps/ubx.cpp b/apps/drivers/gps/ubx.cpp
index 7e95514dd..fe4758d8c 100644
--- a/apps/drivers/gps/ubx.cpp
+++ b/apps/drivers/gps/ubx.cpp
@@ -371,7 +371,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
}
break;
default: //should not happen because we set the class
- warnx("UBX Error, we set a class that we don't know\n");
+ warnx("UBX Error, we set a class that we don't know");
decodeInit();
break;
}
@@ -410,7 +410,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
_new_nav_posllh = true;
} else {
- warnx("NAV_POSLLH: checksum invalid\n");
+ warnx("NAV_POSLLH: checksum invalid");
}
// Reset state machine to decode next packet
@@ -437,7 +437,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
_new_nav_sol = true;
} else {
- warnx("NAV_SOL: checksum invalid\n");
+ warnx("NAV_SOL: checksum invalid");
}
// Reset state machine to decode next packet
@@ -463,7 +463,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
_new_nav_dop = true;
} else {
- warnx("NAV_DOP: checksum invalid\n");
+ warnx("NAV_DOP: checksum invalid");
}
// Reset state machine to decode next packet
@@ -499,7 +499,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
_new_nav_timeutc = true;
} else {
- printf("\t[gps] NAV_TIMEUTC: checksum invalid\n");
+ warnx("NAV_TIMEUTC: checksum invalid");
}
// Reset state machine to decode next packet
@@ -593,7 +593,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
// as this message arrives only with 1Hz and is not essential, we don't take it into account for the report
} else {
- printf("\t[gps] NAV_SVINFO: checksum invalid\n");
+ warnx("NAV_SVINFO: checksum invalid");
}
// Reset state machine to decode next packet
@@ -624,7 +624,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
_new_nav_velned = true;
} else {
- warnx("NAV_VELNED: checksum invalid\n");
+ warnx("NAV_VELNED: checksum invalid");
}
// Reset state machine to decode next packet
@@ -719,7 +719,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
break;
}
} else {
- warnx("ACK_ACK: checksum invalid\n");
+ warnx("ACK_ACK: checksum invalid");
}
// Reset state machine to decode next packet
@@ -736,7 +736,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
//Check if checksum is valid
if (_rx_ck_a == packet->ck_a && _rx_ck_b == packet->ck_b) {
- warnx("the ubx gps returned: not acknowledged\n");
+ warnx("UBX: NO ACK");
ret = 1;
} else {
@@ -751,7 +751,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
}
default: //we don't know the message
- printf("Unknown message received: %d-%d\n",_message_class,_message_id);
+ warnx("UBX: Unknown message received: %d-%d\n",_message_class,_message_id);
decodeInit();
break;
@@ -760,7 +760,7 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s* gps_position)
if (_rx_count < RECV_BUFFER_SIZE) {
_rx_count++;
} else {
- printf("Buffer full");
+ warnx("buffer overflow");
decodeInit();
}
break;