51 mavlink_distance_sensor_t packet;
52 mavlink_msg_distance_sensor_decode(msg, &packet);
55 if (packet.orientation == MAV_SENSOR_ROTATION_PITCH_270) {
uint16_t distance_cm() const
AP_RangeFinder_MAVLink(RangeFinder::RangeFinder_State &_state)
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
void handle_msg(mavlink_message_t *msg)
#define AP_RANGEFINDER_MAVLINK_TIMEOUT_MS
void set_status(RangeFinder::RangeFinder_Status status)
RangeFinder::RangeFinder_State & state
MAV_DISTANCE_SENSOR sensor_type