mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 17:51:37 +08:00
gps blend: add failover logic and unit test
also remove dependency to hrt library
This commit is contained in:
@@ -142,7 +142,7 @@ void VehicleGPSPosition::Run()
|
||||
}
|
||||
|
||||
if (any_gps_updated) {
|
||||
_gps_blending.update();
|
||||
_gps_blending.update(hrt_absolute_time());
|
||||
|
||||
if (_gps_blending.isNewOutputDataAvailable()) {
|
||||
Publish(_gps_blending.getOutputGpsData(), _gps_blending.getSelectedGps());
|
||||
|
||||
Reference in New Issue
Block a user