Go to Post Don't date anyone on your team unless you are POSITVE that you will be able to handle yourself professionally, not only during your relationship, but even after it ends. - Jaine Perotti [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
  #1   Spotlight this post!  
Unread 01-02-2003, 17:18
GrahamS314's Avatar
Happy Birthday! GrahamS314 GrahamS314 is offline
Registered User
FRC #0314 (Megatron Oracles)
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2002
Location: Flint, MI
Posts: 8
GrahamS314 is an unknown quantity at this point
Send a message via AIM to GrahamS314
Question Working with Potentiometers

Our team tried to test operating a van door motor using two pots -- one for feedback and one for control. Unfortunately, we couldn't get the motor to drive in the direction of decreasing the error. No one can figure out what's wrong. Here's the code:

if stack_pos - sw_stacker > 10 then pos_error
if abs(stack_pos - sw_stacker) < 10 then done_stack
neg_error:
error = (sw_stacker - stack_pos)
sw_stacker = 127 - (4 * error) / 10)
pos_error:
error = (stack_pos - sw_stacker)
sw_stacker = 127 + (4 * error) / 10)


Here are our pots:
PN 3825A-282-104A
 


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
Whose working this summer? Frank(Aflak) Chit-Chat 20 28-05-2003 11:35
pic: Working Hard, As Always CD47-Bot Extra Discussion 4 14-04-2003 09:07
Are ramp blocker bots working? Jim S Regional Competitions 42 22-03-2003 20:55
Please identify these two hard working hula 'botters! archiver 2001 2 24-06-2002 03:37
Anyone working on game/mod and looking for a 3d modeller? Devil's Kid 3D Animation and Competition 5 21-04-2002 15:08


All times are GMT -5. The time now is 16:48.

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