mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: loiter-turn obeys wpnav-rfnd-use
This commit is contained in:
parent
03441f2250
commit
c0ac4bb51c
@ -94,7 +94,7 @@ void Copter::read_rangefinder(void)
|
||||
if (rf_orient == ROTATION_PITCH_270) {
|
||||
if (rangefinder_state.alt_healthy || timed_out) {
|
||||
wp_nav->set_rangefinder_alt(rangefinder_state.enabled, rangefinder_state.alt_healthy, rangefinder_state.alt_cm_filt.get());
|
||||
circle_nav->set_rangefinder_alt(rangefinder_state.enabled, rangefinder_state.alt_healthy, rangefinder_state.alt_cm_filt.get());
|
||||
circle_nav->set_rangefinder_alt(rangefinder_state.enabled && wp_nav->rangefinder_used(), rangefinder_state.alt_healthy, rangefinder_state.alt_cm_filt.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user