Go to Post Maybe if we get lucky [the GDC] will just say chute door. - IronicDeadBird [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2003, 18:50
n[ate]vw's Avatar
n[ate]vw n[ate]vw is offline
Registered User
#0933 (Adler Attack)
 
Join Date: Jan 2003
Location: Rockford, IL
Posts: 48
n[ate]vw is an unknown quantity at this point
Send a message via AIM to n[ate]vw
I might be misunderstanding the issue, but it seems you are trying to make a servo, i.e. the motor turns until the feedback pot and the control pot give the same value.

[edit]Your code seems to be unnecessarily complex, [/edit]
...wouldn't

if feedback_pot < control_pot then [turn motor one way]
if feedback_pot > control_pot then [turn motor other way]

work for this?

[edit]
You could tweak the if...then statements a bit to allow slight error:

if feedback_pot+255 < control_pot +245 then [one way]
if feedback_pot+255 > control_pot +265 then [other way]
[/edit]
__________________
Adler Attack #933 -- Trigos

Last edited by n[ate]vw : 01-02-2003 at 18:59.
Closed Thread


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:49.

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