AP_Follow: params always use set method

This commit is contained in:
Iampete1 2022-07-05 04:08:56 +01:00 committed by Peter Hall
parent df470f6a34
commit 0d32e6cbf3
2 changed files with 2 additions and 2 deletions

View File

@ -446,7 +446,7 @@ void AP_Follow::init_offsets_if_required(const Vector3f &dist_vec_ned)
// initialise offset in NED frame
_offset = -dist_vec_ned;
// ensure offset_type used matches frame of offsets saved
_offset_type = AP_FOLLOW_OFFSET_TYPE_NED;
_offset_type.set(AP_FOLLOW_OFFSET_TYPE_NED);
gcs().send_text(MAV_SEVERITY_INFO, "N-E-D follow offset loaded");
}
}

View File

@ -48,7 +48,7 @@ public:
bool enabled() const { return _enabled; }
// set which target to follow
void set_target_sysid(uint8_t sysid) { _sysid = sysid; }
void set_target_sysid(uint8_t sysid) { _sysid.set(sysid); }
// restore offsets to zero if necessary, should be called when vehicle exits follow mode
void clear_offsets_if_required();