|
|
@ -481,7 +481,6 @@ bool NavEKF3_core::setOriginLLH(const Location &loc) |
|
|
|
// Set the NED origin to be used until the next filter reset
|
|
|
|
// Set the NED origin to be used until the next filter reset
|
|
|
|
void NavEKF3_core::setOrigin(const Location &loc) |
|
|
|
void NavEKF3_core::setOrigin(const Location &loc) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// assume origin at current GPS location (no averaging)
|
|
|
|
|
|
|
|
EKF_origin = loc; |
|
|
|
EKF_origin = loc; |
|
|
|
// if flying, correct for height change from takeoff so that the origin is at field elevation
|
|
|
|
// if flying, correct for height change from takeoff so that the origin is at field elevation
|
|
|
|
if (inFlight) { |
|
|
|
if (inFlight) { |
|
|
|