View Single Post
  #2   Spotlight this post!  
Unread 23-06-2002, 22:13
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: control system programming

Posted by Mike Gray.

Engineer on team HOT from Huron Valley Schools sponsored by GM Milford Proving Ground.

Posted on 3/2/2000 8:29 AM MST


In Reply to: control system programming posted by Jimmy Holmes on 3/2/2000 6:26 AM MST:



Suggestions:

1. Eliminate the possibility of mechanical problems, with the motor or with the drivetrain.
2. Check for volt drops across terminations.
3. Check the integrity of the suspect speed controller, per InnovationFIRST instructions.
4. If the first three are fruitless, scale the PWM value to the speed controller:

First, determine the speed error. Declare a new variable which will be scaled to reflect the speed error. The new variable will be a transfer function for the faster motor. Perform a slope and intercept (mX+b) transform on the joystick variable and set the new variable equal to it.

Example:

new_variable=joystick / 2 + 64

This example assumes that you want to scale the variable to half-scale. You must add 64 counts so that 127 counts still represents center-stick. If you want 1/4 speed, simply divide by 4 and add 96.

Unfortunately, this method wil not make full use of the faster motor's potential, but you can't make the slow motor go any faster than 255 counts.

Even after scaling, the motors may launch unevenly due to variation in static friction. If you need to start the motors many times during a match, static friction may cause the linkage to 'warp'. I suggest using the x-axis on that joystick to modify the y-axis variables, so the operator can make small corrections to the linkage on the fly.

Hope this helps.


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.