Go to Post Honestly, just when I thought FIRST had finally created an FRC game without any near universally-hated rules, they went ahead and made one in TM 1. - artdutra04 [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 24-02-2004, 11:11
st28 st28 is offline
Registered User
#1219
 
Join Date: Feb 2004
Location: toronto
Posts: 4
st28 is an unknown quantity at this point
Spikes?

can someone tell me how to program the spikes ????
thnx

Last edited by Brandon Martus : 24-02-2004 at 11:19.
  #2   Spotlight this post!  
Unread 24-02-2004, 11:17
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Spikes?

what do you want to do with them? it is quite easy.. just go into the default code under user_routines.c and find the mappings of inputs to outputs. relX_fwd set to 1 will turn the M+ output positive. relX_rev set to 1 will turn the M- output high. Zeros will make them go negative.

Last edited by Brandon Martus : 24-02-2004 at 11:20.
  #3   Spotlight this post!  
Unread 24-02-2004, 11:36
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: Spikes?

example
if you want relay one to go forward do
relay1_fwd = 1;
relay1_rev = 0;

if you want it go reverse do
relay1_fwd = 0;
relay1_rev = 1;

if you want it to go neutral do
relay1_fwd = 0;
relay1_rev = 0;
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
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


All times are GMT -5. The time now is 02:54.

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