mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
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:
parent
7b67e3e5a4
commit
3284b0733e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user