9 #if CONFIG_HAL_BOARD == HAL_BOARD_SITL 27 float altitude = range_value;
36 if (!relPosSensorBF.
is_zero()) {
41 const Vector3f relPosSensorEF = rotmat * relPosSensorBF;
43 altitude -= relPosSensorEF.
z;
bool is_zero(const T fVal1)
void rotation_matrix(Matrix3f &m) const
void _update_rangefinder(float range_value)
float constrain_float(const float amt, const float low, const float high)
std::enable_if< std::is_integral< typename std::common_type< Arithmetic1, Arithmetic2 >::type >::value,bool >::type is_equal(const Arithmetic1 v_1, const Arithmetic2 v_2)
static constexpr float radians(float deg)
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
AP_Vector3f rngfnd_pos_offset