|
Re: Analog Maxbotix XL-EZ4
GetVoltage will return the input voltage. It's scaled in the Analog Breakout, but I believe it's unscaled in WPILib. If it isn't the math to un scale yourself is easy since it's a linear scale.
Once you have the unscaled voltage, just multiply your voltage by 0.0049 and you'll have inches.
|