View Single Post
  #1   Spotlight this post!  
Unread 13-02-2014, 14:16
AIS Falcons's Avatar
AIS Falcons AIS Falcons is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: Israel
Posts: 14
AIS Falcons is an unknown quantity at this point
Analog Sensors Returning Incorrect Voltages

Hey all,

Today we were adding our sensors to the robot and started testing out code and we discovered the they were returning near zero voltages from the getAverageVoltage() method.
Code:
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.23009997599999998
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.24552717599999999
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.240384776
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.214672776
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.101539976
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.142679176
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.122109576
[cRIO] Ultrasonic: -0.0014189800000000002
[cRIO] Potentiometer: 0.106682376
Does anyone have an idea as to why this is happening? We wired them right as far as we know and the Analog Breakout has power. We were also adjusting the sensors correctly.

Thanks for any help
Reply With Quote