void send_request_for_health()
static AP_SerialManager serial_manager
float distance_max() const
uint32_t _last_distance_received_ms
system time of last distance measurement received from sensor
_sensor_health sensor_health
union AP_Proximity_RPLidarA2::PACKED payload
void parse_response_data()
AP_HAL::UARTDriver * _uart
#define DEFINE_BYTE_ARRAY_METHODS
uint8_t status
status definition: 0 good, 1 warning, 2 error
uint8_t quality
Related the reflected laser pulse strength.
uint16_t angle_q6
Actual heading = angle_q6/64.0 Degree.
uint8_t startbit
on the first revolution 1 else 0
float distance_min() const
AP_Proximity_RPLidarA2(AP_Proximity &_frontend, AP_Proximity::Proximity_State &_state, AP_SerialManager &serial_manager)
uint32_t _last_request_ms
system time of last request
uint8_t checkbit
always set to 1
static bool detect(AP_SerialManager &serial_manager)
uint8_t _last_sector
last sector requested
uint8_t not_startbit
complementary to startbit
uint16_t distance_q2
Actual Distance = distance_q2/4.0 mm.
void parse_response_descriptor()
DEFINE_BYTE_ARRAY_METHODS _sensor_scan sensor_scan
enum ResponseType _response_type
response from the lidar
uint16_t error_code
the related error code