Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   accelerometer reads infinity (http://www.chiefdelphi.com/forums/showthread.php?t=74128)

hellochar 10-02-2009 22:47

accelerometer reads infinity
 
we've had a new problem with our accelerometers that have only recently appeared. Using labVIEW:

1) On our first run of the robot, the accelerometers will read infinity for all axes
2) We then stop the code and re-run it. This time, the accelerometers work correctly for a few reads - three to five readings - and then stops altogether. other sensors still read values
3) We then stop the code and re-run it again. This time, accelerometers work fine.

It repeats this pattern over and over again. we haven't changed any accelerometer initialization/reading code for a while, although we did have to re-sodder the PWM wires a few days ago. I would consider this to be the cause of the problem, but how would a hardware/wiring problem create a deterministic loop?

dtengineering 11-02-2009 02:48

Re: accelerometer reads infinity
 
Obviously this indicates that your robot has zero mass.

Sorry, I know you were looking for a more helpful answer than that. Have you tried using a multimeter to read the voltage on the accellerometer leads? That might help determine whether the problem is in the accellerometer or in the cRio software.

Jason

EricVanWyk 11-02-2009 08:06

Re: accelerometer reads infinity
 
In addition to seconding Jason's advice, I would suggest posting your code here. It sounds to me like software.

Jared Russell 11-02-2009 10:10

Re: accelerometer reads infinity
 
Are you traveling at or near the speed of light?

What is your scaling factor or rate set to? Could there be a divide by zero somewhere?

Jranko311 11-02-2009 11:09

Re: accelerometer reads infinity
 
Are you dividing by zero anywhere in your code?

hellochar 11-02-2009 18:26

Re: accelerometer reads infinity
 
haha fixed the problem. the protons were going too fast

EricVanWyk 11-02-2009 20:47

Re: accelerometer reads infinity
 
Quote:

Originally Posted by hellochar (Post 818818)
haha fixed the problem. the protons were going too fast

Whenever you have a problem and a solution, please make an effort to post them both. This will help other teams in your position later.

hellochar 11-02-2009 21:15

Re: accelerometer reads infinity
 
ahh, apologies. the problem was just a low battery :o.. what protons?!


All times are GMT -5. The time now is 02:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi