mirror of https://github.com/ArduPilot/ardupilot
Copter: minor change to ger_rangefinder_height_interpolated
This commit is contained in:
parent
d5337c3c93
commit
2f78872785
|
@ -256,7 +256,7 @@ private:
|
||||||
AP_SurfaceDistance rangefinder_up_state {ROTATION_PITCH_90, inertial_nav, 1U};
|
AP_SurfaceDistance rangefinder_up_state {ROTATION_PITCH_90, inertial_nav, 1U};
|
||||||
|
|
||||||
// helper function to get inertially interpolated rangefinder height.
|
// 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
|
#if AP_RANGEFINDER_ENABLED
|
||||||
class SurfaceTracking {
|
class SurfaceTracking {
|
||||||
|
|
|
@ -68,7 +68,7 @@ void Copter::update_rangefinder_terrain_offset()
|
||||||
}
|
}
|
||||||
|
|
||||||
// helper function to get inertially interpolated rangefinder height.
|
// 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
|
#if AP_RANGEFINDER_ENABLED
|
||||||
return rangefinder_state.get_rangefinder_height_interpolated_cm(ret);
|
return rangefinder_state.get_rangefinder_height_interpolated_cm(ret);
|
||||||
|
|
Loading…
Reference in New Issue