From 08ec43ef89e3342d901d386337ec9e1c76e393a1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Aug 2013 13:27:49 +1000 Subject: [PATCH] AP_L1_Control: use get_position() --- libraries/AP_L1_Control/AP_L1_Control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_L1_Control/AP_L1_Control.cpp b/libraries/AP_L1_Control/AP_L1_Control.cpp index 1842f1a934..c1d3e57c79 100644 --- a/libraries/AP_L1_Control/AP_L1_Control.cpp +++ b/libraries/AP_L1_Control/AP_L1_Control.cpp @@ -97,7 +97,7 @@ void AP_L1_Control::update_waypoint(const struct Location &prev_WP, const struct float K_L1 = 4.0f * _L1_damping * _L1_damping; // Get current position and velocity - _ahrs->get_projected_position(_current_loc); + _ahrs->get_position(_current_loc); Vector2f _groundspeed_vector = _ahrs->groundspeed_vector();