Function lupnt::RangeAndRangeRate(const VecX&, const VecX&, const VecX&, const VecX&)

Function Documentation

Vec2 lupnt::RangeAndRangeRate(const VecX &r1, const VecX &r2, const VecX &v1, const VecX &v2)

Compute both the geometric range and range-rate between two point masses in one call.

Convenience combination of Range() and RangeRate(), e.g. for a range+range-rate FilterMeasurementFunction measurement model.

Parameters:
  • r1 – First position [m], any common frame

  • r2 – Second position [m], same frame as r1

  • v1 – First velocity [m/s], same frame as r1

  • v2 – Second velocity [m/s], same frame as r1

Returns:

[range [m], range rate [m/s]]