Go to Post The rule is the rule because it is the rule. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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
  #11   Spotlight this post!  
Unread 24-01-2002, 16:12
punarhero's Avatar
punarhero punarhero is offline
Registered User
#0696 (Clark Magnet Robotics)
Team Role: Programmer
 
Join Date: Jan 2002
Location: la crescenta
Posts: 67
punarhero is an unknown quantity at this point
Send a message via AIM to punarhero Send a message via Yahoo to punarhero
i want to change speed

But how can I change the rate at which the motor accelerates. For example, I need to move the joystick almost all the way forward to make the motor run at its max. speed. What if I want the motor to get to its max speed only half-way on the joystick.

I tried writing a loop for it like so:

FOR pi_y=127 TO 254
p1_y=P1_y*2

I was hoping to make the motor go accelerate at double rate than before, but when I run it, the motor started running at full speed aytomatically, I couldn't control it from the joystick anymore.

So, what modifications or additions should I make to my program to control the acceleration of the motor
 


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
switch speed control wayne 05 Programming 6 01-10-2003 09:35
Need a FIRST Robotics control system kershawrobotics General Forum 3 07-07-2003 09:49
Power, speed, and torque... AGH Gui Cavalcanti Technical Discussion 5 10-11-2002 19:02
more control options smokescreen Technical Discussion 17 05-03-2002 15:41
Prgm4 2 joystics control 1 speed cntrl??? punarhero Programming 7 21-02-2002 09:57


All times are GMT -5. The time now is 09:01.

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