|
Get Motor Values with WPILib?
Hello all!
This is our first year running WPILib and so far we like it a lot. However, I was wondering how we can get the current value of the motors on the robot. I read through the entire WPILib documentation and I couldn't find any functions for getting current motor values. With the default code, we could just look at pwm01 through pwm16 to get the motor values. I know I could just store the value I last gave the motor and use that when I need to, but with WPILib your code can loop faster than 26.2 ms, so it is possible to assign values to motors faster than the processor does. So how can I find the current actual value for the motors?
Thanks,
Adrien
|