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 {
public:
PS_LightWare() { }
using SerialProximitySensor::SerialProximitySensor;
private:

View File

@ -57,14 +57,14 @@ namespace SITL {
class PS_LightWare_SF45B : public PS_LightWare {
public:
using PS_LightWare::PS_LightWare;
uint32_t packet_for_location(const Location &location,
uint8_t *data,
uint8_t buflen) override;
void update(const Location &location) override;
PS_LightWare_SF45B() : PS_LightWare() { }
private:
template <typename T>

View File

@ -58,6 +58,8 @@ namespace SITL {
class PS_RPLidarA2 : public SerialProximitySensor {
public:
using SerialProximitySensor::SerialProximitySensor;
uint32_t packet_for_location(const Location &location,
uint8_t *data,
uint8_t buflen) override;

View File

@ -56,6 +56,8 @@ namespace SITL {
class PS_TeraRangerTower : public SerialProximitySensor {
public:
using SerialProximitySensor::SerialProximitySensor;
uint32_t packet_for_location(const Location &location,
uint8_t *data,
uint8_t buflen) override;