|
Re: AnalogModule->GetAverageValue() gives wrong results if polled too fast
We were never polling the analog input at a high rate. Is NI really sure that the semaphore works? If the problem is caused by asynchronous collision between two threads, one reading the battery voltage, and the other thread being the one we use to control the robot, how about moving the battery voltage check to the user code and then use a shared variable to let the driverstation.cpp code to fetch the battery voltage after the user code stores it. Does that fix the problem for you?
Eugene
Last edited by eugenebrooks : 24-02-2009 at 00:55.
|