Go to Post Sleep... what is this sleep you speak of? - Choi9111 [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
  #2   Spotlight this post!  
Unread 14-02-2006, 20:54
Inverted Inverted is offline
Registered User
AKA: Eric P.
FRC #1228 (Robo Tribe)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Rahway, NJ
Posts: 25
Inverted is an unknown quantity at this point
Send a message via AIM to Inverted
Re: A few simple programming questions;

Sorry I'm not being as big of a help as I should be, but I'm in the middle of homework and just answering the questions where the solution is on the top of my head.

Quote:
else (p3_sw_trig == 0);
{
pwm09 = 254;
pwm10 = 254;
}
You don't need (p3_sw_trig == 0) after the else, it's already implied. Also, (this may be wrong because I haven't written code like this in 2 years) I think you only need one = when referring to the value of the button, not ==.

Quote:
2. We are using spikes this year, and I am not sure how to program them, I'm sure I have to program it somehow but I am at a lost of how to.
The PWM cable from the Spike goes into one of the Relay outputs on the robot controller. Then you just map which buttons you want to control which relays and you're good. Not sure if you know how to or not, but send me a PM if you want to know how to have one button control the in/out of a piston and such (like if you want a solenoid to act like a festo).
 


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
How To Ask Questions the Smart Way Brandon Martus General Forum 8 27-03-2013 15:52
Programming laptops [527]phil Programming 24 22-08-2005 12:28
#1 The Journey of a FIRST Graduate: Questions Ken Leung General Forum 12 27-07-2005 18:24
Suggestion for Delphi Programming Posts Chris Hibner CD Forum Support 1 27-07-2005 10:02
Can You help us??? (programming questions) HuskieRobotics Programming 1 24-02-2004 21:19


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

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