View Single Post
  #3   Spotlight this post!  
Unread 21-02-2009, 23:59
davidc10 davidc10 is offline
Registered User
FRC #0423
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Pennsylvania
Posts: 20
davidc10 will become famous soon enough
Re: AnalogModule->GetAverageValue() gives wrong results if polled too fast

Eugene,

Thanks for the response. I had seen your January post and I didn't know if we had the same problem or not.

All our software/firmware is the latest. After running another test I have determined that the "spurious" reading is actually the battery voltage. More accurately it is the voltage that is on the battery jumper pin.

For example, the DS reports my battery voltage as 14.15, and my "spurious" reading is 1635. Your reading was 1435 so I'd bet your battery voltage was (1435/1635) x 14.15 = 12.42 Volts. (I'm using a power supply, maybe you were on a battery).

As a test I put 8.55 Volts on the pin and my spurious reading dropped to 987, the exact ratio expected.

The reason the error didn't show up with the battery pin out was that I was testing for a "high" spurious value, and with the pin out I was probably getting a spurious near 0.

David
Reply With Quote