mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Copter: Add ignore pilot yaw option bit
This commit is contained in:
parent
0703a1cf93
commit
1e1be590e2
@ -82,7 +82,7 @@ void ModeSmartRTL::wait_cleanup_run()
|
||||
void ModeSmartRTL::path_follow_run()
|
||||
{
|
||||
float target_yaw_rate = 0.0f;
|
||||
if (!copter.failsafe.radio) {
|
||||
if (!copter.failsafe.radio && g2.smart_rtl.use_pilot_yaw()) {
|
||||
// get pilot's desired yaw rate
|
||||
target_yaw_rate = get_pilot_desired_yaw_rate(channel_yaw->get_control_in());
|
||||
if (!is_zero(target_yaw_rate)) {
|
||||
|
Loading…
Reference in New Issue
Block a user