Skip to content

Commit

Permalink
Copter: remove old rangefinder updates brought forward in rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKear committed Apr 28, 2024
1 parent f8dbd36 commit e2bafd2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ArduCopter/sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ void Copter::read_rangefinder(void)
rangefinder_state.update();
rangefinder_up_state.update();

wp_nav->set_rangefinder_alt(rangefinder_state.enabled, rangefinder_state.alt_healthy, rangefinder_state.alt_cm_filt.get());
#if MODE_CIRCLE_ENABLED
circle_nav->set_rangefinder_alt(rangefinder_state.enabled && wp_nav->rangefinder_used(), rangefinder_state.alt_healthy, rangefinder_state.alt_cm_filt.get());
#endif
#if HAL_PROXIMITY_ENABLED
g2.proximity.set_rangefinder_alt(rangefinder_state.enabled, rangefinder_state.alt_healthy, rangefinder_state.alt_cm_filt.get());
#endif
Expand Down

0 comments on commit e2bafd2

Please sign in to comment.