Skip to content

Commit

Permalink
Copter: minor change to ger_rangefinder_height_interpolated
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKear committed Oct 16, 2024
1 parent d5337c3 commit 2f78872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ArduCopter/Copter.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Copter : public AP_Vehicle {
AP_SurfaceDistance rangefinder_up_state {ROTATION_PITCH_90, inertial_nav, 1U};

// helper function to get inertially interpolated rangefinder height.
bool get_rangefinder_height_interpolated_cm(int32_t& ret) const;
bool get_rangefinder_height_interpolated_cm(int32_t& ret);

#if AP_RANGEFINDER_ENABLED
class SurfaceTracking {
Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void Copter::update_rangefinder_terrain_offset()
}

// helper function to get inertially interpolated rangefinder height.
bool Copter::get_rangefinder_height_interpolated_cm(int32_t& ret) const
bool Copter::get_rangefinder_height_interpolated_cm(int32_t& ret)
{
#if AP_RANGEFINDER_ENABLED
return rangefinder_state.get_rangefinder_height_interpolated_cm(ret);
Expand Down

0 comments on commit 2f78872

Please sign in to comment.