Go to Post ...I've changed my position. I'm fully supportive of Joe's suggestion... - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get robot to drive straigth using shaft encoders eccmaster Programming 5 02-02-2008 23:50
Four Wheel Drive Using Standard Transmissions daviamp Technical Discussion 4 18-01-2006 20:03
Using 6 motors in a drive system? FIRST JerseyKid Motors 7 12-01-2005 23:49
How many motors are you using to drive? Joseph F Motors 18 16-10-2002 21:24


All times are GMT -5. The time now is 02:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi