Skip to content

Commit

Permalink
add back in fix type conditional
Browse files Browse the repository at this point in the history
Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
  • Loading branch information
dirksavage88 committed Oct 23, 2024
1 parent 5645c08 commit 8020b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/uavcan/sensors/gnss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void UavcanGnssBridge::process_fixx(const uavcan::ReceivedDataStructure<FixType>
}

// Only use dual antenna gps yaw if fix type is (6)
if ((hrt_elapsed_time(&_last_gnss_relative_timestamp) < 2_s) && _rel_heading_valid) { // && _carrier_solution_fixed) {
if ((hrt_elapsed_time(&_last_gnss_relative_timestamp) < 2_s) && _rel_heading_valid && _carrier_solution_fixed) {

// Apply offset and report corrected heading
// float corrected_heading = _rel_heading - _yaw_offset_rads;
Expand Down

0 comments on commit 8020b08

Please sign in to comment.