mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 11:23:06 +08:00
uavcan: gnss: do not require RTK fix for heading validity (#26649)
This commit is contained in:
@@ -533,8 +533,7 @@ void UavcanGnssBridge::process_fixx(const uavcan::ReceivedDataStructure<FixType>
|
||||
sensor_gps.vdop = msg.pdop;
|
||||
}
|
||||
|
||||
// Use heading from RelPosHeading message if available and we have RTK Fixed solution.
|
||||
if (_rel_heading_valid && (fix_type == sensor_gps_s::FIX_TYPE_RTK_FIXED)) {
|
||||
if (_rel_heading_valid) {
|
||||
sensor_gps.heading = _rel_heading;
|
||||
sensor_gps.heading_offset = NAN;
|
||||
sensor_gps.heading_accuracy = _rel_heading_accuracy;
|
||||
|
||||
Reference in New Issue
Block a user