Sub: loiter-turn obeys wpnav-rfnd-use
This commit is contained in:
parent
c0ac4bb51c
commit
6d05ed1eb3
@ -56,7 +56,7 @@ void Sub::read_rangefinder()
|
||||
|
||||
// send rangefinder altitude and health to waypoint navigation library
|
||||
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());
|
||||
|
||||
#else
|
||||
rangefinder_state.enabled = false;
|
||||
|
Loading…
Reference in New Issue
Block a user