You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
521 B
21 lines
521 B
#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
|
|
|