Quantcast
Channel: ArduPlane - ArduPilot Discourse
Viewing all articles
Browse latest Browse all 7806

Serial XL-MaxSonar unit problem, LV in inch - XL in cm

$
0
0

@Mikroproc wrote:

Hello
In file AP_RangeFinder_MaxsonarSerialLV.cpp

is
// This sonar gives the metrics in inches, so we have to transform this to centimeters
_ reading_cm = 2.54f * sum / count;_

If the 2.54 multiplier is removed then you can use sonar XL connected by serial.
The LV version sends measurements in inch and XL in cm.
The XL sensor works, but the values are 2.54 times greater

What to do to add support for the XL serial version in subsequent releases?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7806

Trending Articles