mirror of https://github.com/ArduPilot/ardupilot
SITL: tidy simulated proximity sensor constructors
This commit is contained in:
parent
16ca2e1179
commit
e43b1dd2eb
|
@ -34,7 +34,7 @@ namespace SITL {
|
||||||
class PS_LightWare : public SerialProximitySensor {
|
class PS_LightWare : public SerialProximitySensor {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
PS_LightWare() { }
|
using SerialProximitySensor::SerialProximitySensor;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -57,14 +57,14 @@ namespace SITL {
|
||||||
class PS_LightWare_SF45B : public PS_LightWare {
|
class PS_LightWare_SF45B : public PS_LightWare {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
using PS_LightWare::PS_LightWare;
|
||||||
|
|
||||||
uint32_t packet_for_location(const Location &location,
|
uint32_t packet_for_location(const Location &location,
|
||||||
uint8_t *data,
|
uint8_t *data,
|
||||||
uint8_t buflen) override;
|
uint8_t buflen) override;
|
||||||
|
|
||||||
void update(const Location &location) override;
|
void update(const Location &location) override;
|
||||||
|
|
||||||
PS_LightWare_SF45B() : PS_LightWare() { }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
|
@ -58,6 +58,8 @@ namespace SITL {
|
||||||
class PS_RPLidarA2 : public SerialProximitySensor {
|
class PS_RPLidarA2 : public SerialProximitySensor {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
using SerialProximitySensor::SerialProximitySensor;
|
||||||
|
|
||||||
uint32_t packet_for_location(const Location &location,
|
uint32_t packet_for_location(const Location &location,
|
||||||
uint8_t *data,
|
uint8_t *data,
|
||||||
uint8_t buflen) override;
|
uint8_t buflen) override;
|
||||||
|
|
|
@ -56,6 +56,8 @@ namespace SITL {
|
||||||
class PS_TeraRangerTower : public SerialProximitySensor {
|
class PS_TeraRangerTower : public SerialProximitySensor {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
using SerialProximitySensor::SerialProximitySensor;
|
||||||
|
|
||||||
uint32_t packet_for_location(const Location &location,
|
uint32_t packet_for_location(const Location &location,
|
||||||
uint8_t *data,
|
uint8_t *data,
|
||||||
uint8_t buflen) override;
|
uint8_t buflen) override;
|
||||||
|
|
Loading…
Reference in New Issue