ardupilot/libraries/AP_RangeFinder/RangeFinder_Backend_Serial.h

23 lines
604 B
C
Raw Normal View History

#pragma once
#include "RangeFinder_Backend.h"
class AP_RangeFinder_Backend_Serial : public AP_RangeFinder_Backend
{
public:
// constructor
AP_RangeFinder_Backend_Serial(RangeFinder::RangeFinder_State &_state,
AP_RangeFinder_Params &_params,
uint8_t serial_instance);
// static detection function
static bool detect(uint8_t serial_instance);
protected:
// baudrate used during object construction:
virtual uint32_t initial_baudrate(uint8_t serial_instance) const;
AP_HAL::UARTDriver *uart = nullptr;
};