Go to Post FIRST: The hardest thing you'll ever love to do. - Stephen Kowski [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
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
  #5   Spotlight this post!  
Unread 11-02-2005, 23:03
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Re: Coding Problems?

Quote:
if digital_io_out18 = 115;
then..uhm...? lol sorry i'm not THE greatest with C...
hmm..see i was looking through trying to find a list of acceptable codes in C for robotics but i coudn't seem to find a list so I'm tryin' to figure it out...but you can use then statements..correct..?
I think that you are just learning c are you not? you have experience with VB or Qbasic do you? that will help you but C isn't the same.....
when you make an if statement you don't use a then statement like in BASIC.

Take a couple hours and read some documentation. On this site is the official Programming reference PDFs they have code that is specific to the FIRST controller. the 2004 version is what you want there is no 2005 edition. look on page 19 in the gray code box it shows an if statement for an input and a pwm.

http://www.ifirobotics.com/rc.shtml#Programming

A genecic c programming book would be a worthwhile buy.

Have fun you about to become a professional C programmer!
 


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
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
Physics Problem Venkatesh Math and Science 13 30-11-2004 20:30
Victor problem Andy Baker Electrical 15 24-06-2003 09:49
The problem with scouting... archiver 2001 10 23-06-2002 23:49
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 08: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