Browse Source

AP_RangeFinder: use const reference

master
Andrew Tridgell 8 years ago
parent
commit
27cdf220de
  1. 4
      libraries/AP_RangeFinder/RangeFinder.h

4
libraries/AP_RangeFinder/RangeFinder.h

@ -183,10 +183,10 @@ public:
bool pre_arm_check() const; bool pre_arm_check() const;
// return a 3D vector defining the position offset of the sensor in metres relative to the body frame origin // return a 3D vector defining the position offset of the sensor in metres relative to the body frame origin
const Vector3f get_pos_offset(uint8_t instance) const { const Vector3f &get_pos_offset(uint8_t instance) const {
return _pos_offset[instance]; return _pos_offset[instance];
} }
const Vector3f get_pos_offset(void) const { const Vector3f &get_pos_offset(void) const {
return _pos_offset[primary_instance]; return _pos_offset[primary_instance];
} }

Loading…
Cancel
Save