Merge pull request #507 from thomasgubler/airspeed_poll

fix vehicle_airspeed_poll logic
This commit is contained in:
Lorenz Meier 2013-11-02 10:35:38 -07:00
commit 64c2165e8b
1 changed files with 1 additions and 2 deletions

View File

@ -501,7 +501,6 @@ FixedwingPositionControl::vehicle_airspeed_poll()
orb_copy(ORB_ID(airspeed), _airspeed_sub, &_airspeed);
_airspeed_valid = true;
_airspeed_last_valid = hrt_absolute_time();
return true;
} else {
@ -514,7 +513,7 @@ FixedwingPositionControl::vehicle_airspeed_poll()
/* update TECS state */
_tecs.enable_airspeed(_airspeed_valid);
return false;
return airspeed_updated;
}
void