AP_Common: Location vec3 constructor zero out fields

This commit is contained in:
Josh Henderson 2021-06-09 04:25:59 -04:00 committed by Randy Mackay
parent 9211f6d351
commit 206a414553

View File

@ -37,6 +37,8 @@ Location::Location(int32_t latitude, int32_t longitude, int32_t alt_in_cm, AltFr
Location::Location(const Vector3f &ekf_offset_neu, AltFrame frame)
{
zero();
// store alt and alt frame
set_alt_cm(ekf_offset_neu.z, frame);