mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Common: Location vec3 constructor zero out fields
This commit is contained in:
parent
9211f6d351
commit
206a414553
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user