fixed crosstrack return value when disabled

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3256 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-09-05 01:16:02 +00:00
parent 7b67e3e5a4
commit 3284b0733e

View File

@ -202,6 +202,7 @@ static long get_crosstrack_correction(void)
// constrain answer to 30° to avoid overshoot
return constrain(_crosstrack_correction, -g.crosstrack_entry_angle.get(), g.crosstrack_entry_angle.get());
}
return 0;
}