View Single Post
  #3   Spotlight this post!  
Unread 03-02-2008, 12:12
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
Re: Get Motor Values with WPILib?

We're using WPILib, but we copied over ifi_aliases.h and a few other header files from the default code. After commenting out a few lines, we got rid of all duplicate functions and #defines. Once you have that, you can call pwm01 as normal. You don't even have to use WPILib's SetMotor function. You can just say pwm01 = 127 or printf("%d\r", (int)pwm01) or whatever you'd normally say without WPILib.