Skip to content

Commit

Permalink
AP_NavEKF2: fixed return of common origin
Browse files Browse the repository at this point in the history
when common origin is set we should return that, not backends private
origin
  • Loading branch information
tridge committed Aug 21, 2024
1 parent 2fddb64 commit eac9c78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_NavEKF2/AP_NavEKF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@ bool NavEKF2::getOriginLLH(Location &loc) const
if (!core) {
return false;
}
if (common_origin_valid) {
loc = common_EKF_origin;
return true;
}
return core[primary].getOriginLLH(loc);
}

Expand Down

0 comments on commit eac9c78

Please sign in to comment.