mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
MaxsonarI2C: read method returns int16_t
This commit is contained in:
parent
ab22d11110
commit
e1fabadd3c
@ -66,7 +66,7 @@ bool AP_RangeFinder_MaxsonarI2CXL::take_reading()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// read - return last value measured by sensor
|
// read - return last value measured by sensor
|
||||||
int AP_RangeFinder_MaxsonarI2CXL::read()
|
int16_t AP_RangeFinder_MaxsonarI2CXL::read()
|
||||||
{
|
{
|
||||||
uint8_t buff[2];
|
uint8_t buff[2];
|
||||||
int16_t ret_value = 0;
|
int16_t ret_value = 0;
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
bool take_reading();
|
bool take_reading();
|
||||||
|
|
||||||
// read value from sensor and return distance in cm
|
// read value from sensor and return distance in cm
|
||||||
int read();
|
int16_t read();
|
||||||
|
|
||||||
// heath
|
// heath
|
||||||
bool healthy;
|
bool healthy;
|
||||||
|
Loading…
Reference in New Issue
Block a user