mirror of https://github.com/ArduPilot/ardupilot
AP_Follow: params always use set method
This commit is contained in:
parent
df470f6a34
commit
0d32e6cbf3
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue