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
  #1   Spotlight this post!  
Unread 13-01-2008, 19:51
team877's Avatar
team877 team877 is offline
Registered User
FRC #0877 (Cub Robotics)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2001
Location: North Dakota
Posts: 52
team877 is an unknown quantity at this point
Controller Speed programming

I want to be able to have my robot only going so fast when the variables are between like 127 to 200 but when the variable exceeds 200 it returns to beening the normal variable. How can I do this in easyC?


Example:
-if pwm1 is between 127<200 set it to 150
-but once pwm1 is < 200 go back to equaling its correct variable

Last edited by team877 : 13-01-2008 at 19:55.
 


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
Speed Controller Code ND4SPDLSC Programming 2 18-02-2006 21:48
Speed Controller Data viewtyjoe National Instruments LabVIEW and Data Acquisition 4 02-02-2006 16:05
speed controller max speed Team 668 Programming 15 13-02-2005 14:05
Speed Controller Megas_xlr Control System 3 18-01-2005 15:41
Speed Controller Megas_xlr Electrical 3 18-01-2005 15:41


All times are GMT -5. The time now is 12:24.

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