AP_L1_Control: update_waypoint zeros xtrack i term on init

This commit is contained in:
Randy Mackay 2017-11-01 10:58:48 +09:00
parent eab1d3af4f
commit 002d3f08f6

View File

@ -207,6 +207,7 @@ void AP_L1_Control::update_waypoint(const struct Location &prev_WP, const struct
float dt = (now - _last_update_waypoint_us) * 1.0e-6f;
if (dt > 0.1) {
dt = 0.1;
_L1_xtrack_i = 0.0f;
}
_last_update_waypoint_us = now;