diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 06555c4a85..ac264a207e 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -560,7 +560,7 @@ void Ekf2::task_main() lpos.z = pos[2]; // Velocity in NED frame (m/s) - _ekf->copy_velocity(vel); + _ekf->get_velocity(vel); lpos.vx = vel[0]; lpos.vy = vel[1]; lpos.vz = vel[2];