View Single Post
  #1   Spotlight this post!  
Unread 02-02-2008, 19:33
Adrien's Avatar
Adrien Adrien is offline
Registered User
FRC #1414 (IHOT)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Atlanta, GA
Posts: 13
Adrien is an unknown quantity at this point
Send a message via MSN to Adrien
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