![]() |
MaxBotix Sonar Sensor Analog not working
Hello,
I have recently been trying to test a few things sensor wise in advance of our next regional, but I cannot seem to get the MaxBotix Sonar sensor to work, everything seems to be fine by multimeter, but I am not actually able to read a voltage in C++ using GetVoltage() or GetAverageVoltage(), I assume either one of these would probably work for my desired function. How the sonar is wired/plugged into the analog card in slot 1: http://imgur.com/idGN4Tr http://imgur.com/Ajw5fmr As for the actual code: Declaration: Quote:
Quote:
Quote:
Code:
voltageSonar = Sonar->GetVoltage();Thanks! |
Re: MaxBotix Sonar Sensor Analog not working
You can't use Analog Channel 8 on Module 1, it is used for battery voltage monitoring. Choose another channel.
|
Re: MaxBotix Sonar Sensor Analog not working
Should have probably checked at each channel, I know there are other spots throughout that do not function properly because of things like that.
Thanks for the help, it now is functioning properly. |
| All times are GMT -5. The time now is 12:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi