Files
Jacob Dahl b272af0406 fix(gnss): gate home, geofence and precision takeoff on usable samples
HomePosition, the geofence on the GNSS source and the precision takeoff home check each tested the fix type on their own and took samples the estimator rejects, such as spoofed ones or those before the receiver passed its checks. They now take only samples marked usable. Home keeps its own accuracy thresholds on top.

The others keep their gates: Remote ID and Open Drone ID broadcast the receiver's own solution with its accuracy whenever it has one, and the calibrations, the attitude estimator and the telemetry drivers need only a rough or reported position.

The SIH home yaw test reached its condition, home set from GNSS while the local position is invalid, with 5 satellites: enough for the old fix type test, too few for EKF2. Such samples are never usable now, so home was never set. The test now gives the receiver a full constellation and turns GNSS fusion off in EKF2 (EKF2_SENS_EN). Home again comes from the receiver while the local position stays invalid, the branch of HomePosition::setHomePosition() that 282c969687 fixed to take the ground heading, and nothing later refreshes home.yaw.

Assisted-by: Claude:claude-opus-5-5
2026-11-19 09:28:25 -09:00
..