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.
19 lines
487 B
19 lines
487 B
5 years ago
|
#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
|
||
|
};
|