AP_L1_Control: use get_position()

This commit is contained in:
Andrew Tridgell 2013-08-12 13:27:49 +10:00
parent b74ed795f2
commit 08ec43ef89
1 changed files with 1 additions and 1 deletions

View File

@ -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();