AP_NavEKF: add setOrigin

This commit is contained in:
Randy Mackay 2017-04-19 15:29:17 +09:00
parent 0af9433c8e
commit b255c7b370
8 changed files with 8 additions and 8 deletions

View File

@ -997,7 +997,7 @@ bool NavEKF2::getOriginLLH(struct Location &loc) const
// All NED positions calculated by the filter will be relative to this location
// The origin cannot be set if the filter is in a flight mode (eg vehicle armed)
// Returns false if the filter has rejected the attempt to set the origin
bool NavEKF2::setOriginLLH(struct Location &loc)
bool NavEKF2::setOriginLLH(const Location &loc)
{
if (!core) {
return false;

View File

@ -165,7 +165,7 @@ public:
// All NED positions calcualted by the filter will be relative to this location
// The origin cannot be set if the filter is in a flight mode (eg vehicle armed)
// Returns false if the filter has rejected the attempt to set the origin
bool setOriginLLH(struct Location &loc);
bool setOriginLLH(const Location &loc);
// return estimated height above ground level
// return false if ground height is not being estimated.

View File

@ -403,7 +403,7 @@ bool NavEKF2_core::assume_zero_sideslip(void) const
}
// set the LLH location of the filters NED origin
bool NavEKF2_core::setOriginLLH(struct Location &loc)
bool NavEKF2_core::setOriginLLH(const Location &loc)
{
if (PV_AidingMode == AID_ABSOLUTE) {
return false;

View File

@ -159,7 +159,7 @@ public:
// All NED positions calcualted by the filter will be relative to this location
// The origin cannot be set if the filter is in a flight mode (eg vehicle armed)
// Returns false if the filter has rejected the attempt to set the origin
bool setOriginLLH(struct Location &loc);
bool setOriginLLH(const Location &loc);
// return estimated height above ground level
// return false if ground height is not being estimated.

View File

@ -1001,7 +1001,7 @@ bool NavEKF3::getOriginLLH(struct Location &loc) const
// All NED positions calculated by the filter will be relative to this location
// The origin cannot be set if the filter is in a flight mode (eg vehicle armed)
// Returns false if the filter has rejected the attempt to set the origin
bool NavEKF3::setOriginLLH(struct Location &loc)
bool NavEKF3::setOriginLLH(const Location &loc)
{
if (!core) {
return false;

View File

@ -156,7 +156,7 @@ public:
// All NED positions calcualted by the filter will be relative to this location
// The origin cannot be set if the filter is in a flight mode (eg vehicle armed)
// Returns false if the filter has rejected the attempt to set the origin
bool setOriginLLH(struct Location &loc);
bool setOriginLLH(const Location &loc);
// return estimated height above ground level
// return false if ground height is not being estimated.

View File

@ -431,7 +431,7 @@ bool NavEKF3_core::assume_zero_sideslip(void) const
}
// set the LLH location of the filters NED origin
bool NavEKF3_core::setOriginLLH(struct Location &loc)
bool NavEKF3_core::setOriginLLH(const Location &loc)
{
if (PV_AidingMode == AID_ABSOLUTE) {
return false;

View File

@ -165,7 +165,7 @@ public:
// All NED positions calcualted by the filter will be relative to this location
// The origin cannot be set if the filter is in a flight mode (eg vehicle armed)
// Returns false if the filter has rejected the attempt to set the origin
bool setOriginLLH(struct Location &loc);
bool setOriginLLH(const Location &loc);
// return estimated height above ground level
// return false if ground height is not being estimated.