Log in

View Full Version : MaxSonar range


Redstone
31-01-2012, 18:33
What is the syntax to get a range from our MaxSonar sensor and how do we access the analog inputs?

shuhao
31-01-2012, 22:34
I'm currently using AnalogChannel

Can't seem to get it to stay accurate (it is for a while.. then just gives me false readings)

theprgramerdude
01-02-2012, 13:03
AnalogChannel objects provide the way to access the analog input channel. Create one on the specified channel number, and then call the GetVoltage() method or something similar to read the voltage on the channel