Navigator: Only update params as they change

This commit is contained in:
Lorenz Meier
2017-02-25 11:04:52 +01:00
parent ecb2511a7b
commit ad3d0391ab
8 changed files with 5 additions and 19 deletions
-3
View File
@@ -89,7 +89,6 @@ GpsFailure::on_activation()
{
_gpsf_state = GPSF_STATE_NONE;
_timestamp_activation = hrt_absolute_time();
updateParams();
advance_gpsf();
set_gpsf_item();
}
@@ -160,8 +159,6 @@ GpsFailure::set_gpsf_item()
void
GpsFailure::advance_gpsf()
{
updateParams();
switch (_gpsf_state) {
case GPSF_STATE_NONE:
_gpsf_state = GPSF_STATE_LOITER;