diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-09-22 12:39:51 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-09-22 12:39:51 +0200 |
commit | 8a9a230e0db9a8348cef2ff93357fb9bb2389394 (patch) | |
tree | 42025b7069334ac8dc5640ec1e0d7756447f0bae /src/modules/position_estimator_inav/position_estimator_inav_main.c | |
parent | 0d5ead7d858293759cf412cc810c60b83cdebe09 (diff) | |
download | px4-firmware-8a9a230e0db9a8348cef2ff93357fb9bb2389394.tar.gz px4-firmware-8a9a230e0db9a8348cef2ff93357fb9bb2389394.tar.bz2 px4-firmware-8a9a230e0db9a8348cef2ff93357fb9bb2389394.zip |
position_estimator_inav: more compact messages to fit in mavlink packet
Diffstat (limited to 'src/modules/position_estimator_inav/position_estimator_inav_main.c')
-rw-r--r-- | src/modules/position_estimator_inav/position_estimator_inav_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/position_estimator_inav/position_estimator_inav_main.c b/src/modules/position_estimator_inav/position_estimator_inav_main.c index 8ac9af15c..ba7a5df44 100644 --- a/src/modules/position_estimator_inav/position_estimator_inav_main.c +++ b/src/modules/position_estimator_inav/position_estimator_inav_main.c @@ -294,8 +294,8 @@ int position_estimator_inav_thread_main(int argc, char *argv[]) } else { wait_baro = false; baro_alt0 /= (float) baro_init_cnt; - warnx("init ref: alt = %.3f", baro_alt0); - mavlink_log_info(mavlink_fd, "[inav] init ref: alt = %.3f", baro_alt0); + warnx("init ref: alt=%.3f", baro_alt0); + mavlink_log_info(mavlink_fd, "[inav] init ref: alt=%.3f", baro_alt0); local_pos.ref_alt = baro_alt0; local_pos.ref_timestamp = hrt_absolute_time(); local_pos.z_valid = true; @@ -418,7 +418,7 @@ int position_estimator_inav_thread_main(int argc, char *argv[]) } else { // new ground level baro_alt0 += sonar_corr; - mavlink_log_info(mavlink_fd, "[inav] update ref: alt = %.3f", baro_alt0); + mavlink_log_info(mavlink_fd, "[inav] update ref: alt=%.3f", baro_alt0); local_pos.ref_alt = baro_alt0; local_pos.ref_timestamp = hrt_absolute_time(); z_est[0] += sonar_corr; @@ -467,8 +467,8 @@ int position_estimator_inav_thread_main(int argc, char *argv[]) /* initialize projection */ map_projection_init(lat, lon); - warnx("init ref: lat = %.10f, lon = %.10f", lat, lon); - mavlink_log_info(mavlink_fd, "[inav] init ref: lat = %.7f, lon = %.7f", lat, lon); + warnx("init ref: lat=%.7f, lon=%.7f", lat, lon); + mavlink_log_info(mavlink_fd, "[inav] init ref: lat=%.7f, lon=%.7f", lat, lon); } } |