Go to Post I don't think 330 should have built 330's 2016 robot - Joe Ross [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 25-01-2008, 20:38
etdeshon's Avatar
etdeshon etdeshon is offline
Ethan (programmer)
AKA: Ethan DeShon
FRC #1641 (Mojave Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2005
Location: user_routines.c
Posts: 5
etdeshon is an unknown quantity at this point
Send a message via AIM to etdeshon Send a message via Yahoo to etdeshon
Exclamation Newer issues....

im back with a new issue, lol! anyways, its my first year programming an autonomous code, or hybrid mode (im a three year veteran... funny huh). im just trying to get the remote to correspond with the robot. im trying to get a button run the motors forward, turn left, turn right, and go backwards. i will attach the code to this in a notepad file for comments and changes and such.... please help!!!!
Attached Files
File Type: txt autonomous code.txt (952 Bytes, 63 views)
__________________
Team 1641 - Where's Waldo?

Lead Programmer
3 year veteran
  #2   Spotlight this post!  
Unread 25-01-2008, 20:41
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Newer issues....

What is the problem you are experiencing?

Jacob
  #3   Spotlight this post!  
Unread 25-01-2008, 20:42
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Newer issues....

That doesn't look too bad. Two main things I notice from a cursory glance:

-You're using the assignment operator ( = ) in your if statements. Use the double equals ( == ) if you want to test equivalency. And the eqivalency things are in the assignments. You just need to double the equals where you have one and halve it where you have two right now. (I know this error, that's the first C mistake I ever made)

-You don't need the extra else if. You could probably use just the else, as the if will always be true. Not a necesity, but just a style thing I noticed.

Are you having any specific problems, or just looking for a first review of the code?

Last edited by psy_wombats : 25-01-2008 at 20:45.
  #4   Spotlight this post!  
Unread 25-01-2008, 22:19
etdeshon's Avatar
etdeshon etdeshon is offline
Ethan (programmer)
AKA: Ethan DeShon
FRC #1641 (Mojave Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2005
Location: user_routines.c
Posts: 5
etdeshon is an unknown quantity at this point
Send a message via AIM to etdeshon Send a message via Yahoo to etdeshon
Re: Newer issues....

i was just looking for a first review to see what others may suggest if there were any errors or anything that i may want to change or something.
__________________
Team 1641 - Where's Waldo?

Lead Programmer
3 year veteran
  #5   Spotlight this post!  
Unread 26-01-2008, 07:56
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Newer issues....

Alright, then in that case, refer to my first post... That issue with the equals signs will screw everything up. But aside from that, it would be best to test it and then come back with specific problems.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What Would You Say To The Newer Members Of CD - 2nd Edition JaneYoung General Forum 59 Yesterday 09:50
What would you say to newer members of the CD community? Ken Leung General Forum 25 30-01-2017 23:27
MpLab issues! AdmiralAllen Programming 3 15-01-2007 22:47
Weight Issues? team1852 Technical Discussion 9 12-01-2007 12:21
A newer, better geek test! evulish Chit-Chat 28 13-03-2004 15:47


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

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