View Single Post
  #3   Spotlight this post!  
Unread 15-04-2008, 11:29
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Drive wheel motors using OItoPWM() --- how to debug?

Quote:
Originally Posted by qpang View Post
I assume when the joystick is pushed to the limit, the output to PWM port should be 255(or 0) using OI_to_PWM() function. Is that true?
Not necessarily. Most joysticks don't quite reach the entire range of possible values. You can compensate for this in teleoperated mode by calibrating the Victor speed controller to match what your joystick provides.

(Note that the maximum PWM value in the IFI control system is 254, not 255.)
Quote:
Is there a way to read the output to the PWM while running the OI_to_PWM() function using EasyCPro? I mean without any hardware equipment?
If you already have a laptop computer with a serial connection, you can use a dashboard reader program to see exactly what pwm outputs are being commanded, and exactly what joystick values are being read.