Go to Post .. just don't try to sell/trade your freshmen or something silly like that. :) - Brandon Martus [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
  #7   Spotlight this post!  
Unread 23-02-2005, 01:10
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: General Q's

Quote:
Originally Posted by amateurrobotguy
In order to be able to use a victor to control my motor, wouldn't I have to recallibrate it so it can go negative and be on a -1->1 scale as compared to 0->255?
If I decide to hook up a spike, I am assuming that it will be hooked up in a similar fashion to the victor.

You were talking about digital inputs before, a digital input is just anything tht return 0 or 1 (not -1). I know the relays has three states tht because u can actually have 3 states by having no signal, positive signal and negative signal. However, for you purpose lets think about the joystick button as a digital input since its 1 when its pressed and 0 when its reverse. Your code should be something like this:

Code:
If p1_sw_aux1==1
{ 
pwmX=255;
}
else if p1_sw_aux2==1
{
pwmX=0;
}
else
{

}
Note*: My syntax might not be correct, this program will not work properly is you press both buttons and the same time.
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
 


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
General Dynamics? Mike Rush General Forum 1 31-01-2003 17:04
General Forum congestion archiver 2001 7 24-06-2002 03:32
general forum threads archiver 2001 8 23-06-2002 22:47
2 Useful Websites - And general tips and Ideas Robby O 3D Animation and Competition 0 13-01-2002 02:03


All times are GMT -5. The time now is 00:19.

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