|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||||
|
|||||
|
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 |
|
#3
|
|||
|
|||
|
Re: accelerometer reads infinity
In addition to seconding Jason's advice, I would suggest posting your code here. It sounds to me like software.
|
|
#4
|
|||||
|
|||||
|
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? |
|
#5
|
|||
|
|||
|
Re: accelerometer reads infinity
Are you dividing by zero anywhere in your code?
|
|
#6
|
|||
|
|||
|
haha fixed the problem. the protons were going too fast
|
|
#7
|
|||
|
|||
|
Re: accelerometer reads infinity
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.
|
|
#8
|
|||
|
|||
|
Re: accelerometer reads infinity
ahh, apologies. the problem was just a low battery
.. what protons?! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DS Voltage reads 00.00V | lostkhaos | Technical Discussion | 3 | 06-01-2009 19:45 |
| Infinity Drive | Martinez | Technical Discussion | 11 | 17-04-2007 02:00 |
| pic: Dez Reads HIGHLIGHTS! | Joe Matt | Chit-Chat | 8 | 26-05-2006 11:40 |
| Who reads Slashdot? | Max Lobovsky | IT / Communications | 31 | 27-03-2004 00:07 |