ardupilot/libraries/AP_Proximity/AP_Proximity_Backend_Serial.h

22 lines
521 B
C
Raw Normal View History

#pragma once
#include "AP_Proximity_Backend.h"
#if HAL_PROXIMITY_ENABLED
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
};
#endif // HAL_PROXIMITY_ENABLED