diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-05 18:54:06 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-02-05 18:54:06 +0100 |
commit | fbbeef7e29cc6aa82e653916b7d5e8005948b815 (patch) | |
tree | 03b5ffa22d9db25f746eeb6de899fcb60c2d817a /apps | |
parent | 368ba0056f4a4597c13781b6b5fd6e65930f9fee (diff) | |
download | px4-firmware-fbbeef7e29cc6aa82e653916b7d5e8005948b815.tar.gz px4-firmware-fbbeef7e29cc6aa82e653916b7d5e8005948b815.tar.bz2 px4-firmware-fbbeef7e29cc6aa82e653916b7d5e8005948b815.zip |
Update on every position change, do not wait for other measurements
Diffstat (limited to 'apps')
-rw-r--r-- | apps/drivers/gps/ubx.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/drivers/gps/ubx.cpp b/apps/drivers/gps/ubx.cpp index 66a891da4..a6f181a73 100644 --- a/apps/drivers/gps/ubx.cpp +++ b/apps/drivers/gps/ubx.cpp @@ -765,11 +765,13 @@ UBX::parse(uint8_t b, struct vehicle_gps_position_s *gps_position) /* Add timestamp to finish the report */ gps_position->timestamp = hrt_absolute_time(); /* Reset the flags */ + + /* update on every position change, accept minor delay on other measurements */ _new_nav_posllh = false; - _new_nav_timeutc = false; - _new_nav_dop = false; - _new_nav_sol = false; - _new_nav_velned = false; + // _new_nav_timeutc = false; + // _new_nav_dop = false; + // _new_nav_sol = false; + // _new_nav_velned = false; ret = 1; } |