mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:44 +08:00
gps blend: always pass through GpsBlending class for selection
This commit is contained in:
@@ -108,18 +108,6 @@ void VehicleGPSPosition::Run()
|
||||
// GPS blending
|
||||
ScheduleDelayed(500_ms); // backup schedule
|
||||
|
||||
// if disabled simply republish the first sensor_gps as vehicle_gps_position and return immediately
|
||||
if (_param_sens_gps_mask.get() == 0) {
|
||||
sensor_gps_s gps;
|
||||
|
||||
if (_sensor_gps_sub[0].update(&gps)) {
|
||||
Publish(gps, 0);
|
||||
}
|
||||
|
||||
perf_end(_cycle_perf);
|
||||
return;
|
||||
}
|
||||
|
||||
// Check all GPS instance
|
||||
bool any_gps_updated = false;
|
||||
bool gps_updated = false;
|
||||
|
||||
Reference in New Issue
Block a user