AIS Falcons
13-02-2014, 14:16
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.
[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
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.
[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