mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
22 lines
332 B
C
22 lines
332 B
C
|
#pragma once
|
||
|
|
||
|
#include "SIM_I2CDevice.h"
|
||
|
|
||
|
namespace SITL {
|
||
|
|
||
|
class MaxSonarI2CXL : public I2CDevice
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
void update(const class Aircraft &aircraft) override;
|
||
|
|
||
|
int rdwr(I2C::i2c_rdwr_ioctl_data *&data) override;
|
||
|
|
||
|
private:
|
||
|
uint32_t cmd_take_reading_received_ms;
|
||
|
|
||
|
float rangefinder_range;
|
||
|
};
|
||
|
|
||
|
} // namespace SITL
|