SITL: tidy simulated proximity sensor constructors

This commit is contained in:
Peter Barker 2022-11-28 11:21:46 +11:00 committed by Peter Barker
parent 16ca2e1179
commit e43b1dd2eb
4 changed files with 7 additions and 3 deletions

View File

@ -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:

View File

@ -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>

View File

@ -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;

View File

@ -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;