AP_OpticalFlow: use const reference

saves stack space and cpu
This commit is contained in:
Andrew Tridgell 2016-10-27 14:58:59 +11:00
parent f722ddf615
commit 047a09c391

View File

@ -74,7 +74,7 @@ public:
void setHIL(const struct OpticalFlow_state &state);
// return a 3D vector defining the position offset of the sensors focal point in metres relative to the body frame origin
const Vector3f get_pos_offset(void) const {
const Vector3f &get_pos_offset(void) const {
return _pos_offset;
}