# Dual CAN GPS

**URL:** <https://discuss.px4.io/t/dual-can-gps/49464>\
**Category:** PX4 Autopilot\
**Created:** [September 8, 2026, 9:04am UTC](https://discuss.px4.io/t/dual-can-gps/49464 "2026-09-08T09:04:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bermuda\_pilot](https://discuss.px4.io/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@bermuda\_pilot](https://discuss.px4.io/u/bermuda_pilot)\
**Post date:** [September 8, 2026, 9:04am UTC](https://discuss.px4.io/t/dual-can-gps/49464/1 "2026-09-08T09:04:30Z")

</div>

Hi,  
v6xrt with Px4 v1.16.2. I connected 2 CAN GPS,  
How Px4 reacts if one GPS fail, any test method to verify it

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [October 5, 2026, 2:08am UTC](https://discuss.px4.io/t/dual-can-gps/49464/2 "2026-10-05T02:08:26Z")

</div>

A good way to verify this is with a controlled failure test rather than assuming that two detected CAN GPS units automatically guarantee seamless failover.

I would first confirm in the log that both receivers are actually present and being used/monitored as expected. Then establish a nominal baseline and inject failures one at a time:

**1. Nominal:** both GPS receivers healthy  
**2. GPS-A loss:** disconnect or disable only GPS-A  
**3. GPS-B loss:** repeat for GPS-B  
**4. Degraded GPS:** if possible, test bad/stale data separately from complete loss

During each test, log the individual GPS instances and check:

`GPS status/quality → selected estimator source → estimator innovations/status → position validity → failsafe/mode response`

The interesting point is not only whether the vehicle continues to have a position estimate, but **when PX4 detects the failure, whether/when the estimator changes source, and whether that transition introduces a position/velocity/heading discontinuity**.

I would do the first tests disarmed/on the bench (or SITL if you can reproduce the configuration) before any flight test.

If you can share a ULog from a both-GPS-healthy test and one controlled single-GPS failure, I’d be happy to compare the transition timeline.

---

<div class="post-metadata">

**Author:** ![Eviewgnss](https://discuss.px4.io/user_avatar/discuss.px4.io/eviewgnss/32/22118_2.png) [@Eviewgnss](https://discuss.px4.io/u/Eviewgnss)\
**Post date:** [October 13, 2026, 6:26pm UTC](https://discuss.px4.io/t/dual-can-gps/49464/3 "2026-10-13T18:26:33Z")

</div>

Two things decide what happens: `SENS_GPS_MASK` and `SENS_GPS_PRIME`. With `SENS_GPS_MASK = 0` there’s no blending, and PX4 uses the primary receiver and switches to the other if the primary drops out. With a non-zero mask (1 = speed accuracy, 2 = horizontal position accuracy, 4 = vertical position accuracy, or a combination), PX4 blends both receivers, weighted by their reported accuracy, and keeps running on one if the other stops.

To test it on the bench, power both up outdoors, then unplug one GPS’s CAN cable. Watch `sensor_gps` (both instances) and `vehicle_gps_position` in the MAVLink Inspector or with `listener`, and check that `vehicle_gps_position` keeps updating and EKF2 doesn’t raise a GPS fault. Then plug it back in and repeat with the other unit. Do the same in a short hover with a position-hold fallback ready before trusting it in a mission.

---

<div class="post-metadata">

**Author:** ![yigitcan-ozturk](https://discuss.px4.io/user_avatar/discuss.px4.io/yigitcan-ozturk/32/22039_2.png) [@yigitcan-ozturk](https://discuss.px4.io/u/yigitcan-ozturk)\
**Post date:** [October 14, 2026, 12:03pm UTC](https://discuss.px4.io/t/dual-can-gps/49464/4 "2026-10-14T12:03:15Z")

</div>

Hi Eviewgnss,

Thanks for adding the GPS blending and primary-selection configuration details. Those are important when interpreting the behaviour of a dual-GPS setup.

I agree that testing each receiver independently, starting on the bench, is the right approach.

One distinction I would add is that continued updates in `vehicle_gps_position` do not necessarily demonstrate that the estimator transition was seamless.

For a useful validation, I would correlate three layers:

1. Individual GPS receiver health and availability (`sensor_gps` instances).

2. GPS selection or blending behaviour (`vehicle_gps_position` and relevant status information).

3. EKF2 response, including innovation behaviour, position validity and any estimator or failsafe events.

I would also record the configuration used for each test, particularly the GPS blending and primary-selection parameters, since the expected response depends on those settings.

For the first tests, I would keep the vehicle disarmed and compare the ULog timelines for GPS-A loss and GPS-B loss separately.

A subsequent degraded-data test could help distinguish complete receiver loss from a receiver that continues publishing measurements of reduced quality.

That would provide stronger evidence of the actual system response than confirming that the GPS output continues updating.

Best regards,  
Yiğitcan Öztürk  
PAMILANGA LTD
