ardupilot/libraries/AP_Proximity/AP_Proximity_Backend_Serial.h

19 lines
487 B
C++

#pragma once
#include "AP_Proximity.h"
#include "AP_Proximity_Backend.h"
class AP_Proximity_Backend_Serial : public AP_Proximity_Backend
{
public:
AP_Proximity_Backend_Serial(AP_Proximity &_frontend,
AP_Proximity::Proximity_State &_state);
// static detection function
static bool detect();
protected:
virtual uint16_t rxspace() const { return 0; };
AP_HAL::UARTDriver *_uart; // uart for communicating with sensor
};