Go to Post What does code sound like going though a complier? - Hiteak [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 16-02-2006, 09:32
DHarris's Avatar
DHarris DHarris is offline
Professional Procrastinator
AKA: Dana McDanaface
FRC #1845 (Panthera Robotica)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Atlanta
Posts: 74
DHarris is on a distinguished road
Send a message via MSN to DHarris Send a message via Yahoo to DHarris
Exclamation Problems with Programming

Hi again.

Yesterday, I tried to program some autonomous codes into the robot, but it didn't exactly work out the way it was supposed to. Half the time, there was a red light on next to the "code error" message on the O/I and the robot wouldn't do anything at all, and when I input the code for a simple autonomous program to make the robot drive forward, stop, turn left, stop, then drive forward again and stop, it only went forward and didn't stop at all.

Another problem that I've been having is when I program for RC control with the joysticks (using the Arcade 4 programming for 4 wheel drive), the joysticks won't work. One set of wheels will constantly spin when the other set doesn't, and if I can finally get both sides to stop completely (which takes some tedious calibrations of both joysticks) I can't get them to move again. Speaking of both joysticks, we've also been having some issues with getting our robot to work on only one joystick. Last time we had only one joystick, one wheel would constantly spin and wouldn't respond to the joystick movements. I was wondering if that was an error with the default programming since nothing else had been programmed into the Controller when we were having that problem.

Would anyone be able to tell me what's going on with the robot? Is there something that I'm not programming correctly?
  #2   Spotlight this post!  
Unread 16-02-2006, 09:37
DjAlamose's Avatar
DjAlamose DjAlamose is offline
Registered User
AKA: Teh Albie
FRC #0279 (Tech Fusion)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Toledo, OH
Posts: 343
DjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to beholdDjAlamose is a splendid one to behold
Send a message via AIM to DjAlamose
Re: Problems with Programming

This is somethign that I always say to our programmer because i know nothing about programming but somehow this is always what happens:

"Did you reset the variable?"
__________________
WHAT TIME IS IT????? 279!!


2006 GLR Safety Award (2nd year in a row)
2005 National Xerox Creativity Award
2005 National Curie Quarter Finalist w/ 1126 and 180
2005 Buckeye Regional Champs w/ 67 and 274
2005 Buckeye Regional GM Industrial Design Award
2005 Buckeye Regional Safety Award
2005 GLR Quarter Finalist
2005 GLR Xerox Creativity Award
2005 GLR Safety Award
2004 Nationals Curie Division Finalist
2004 GLR Champs
2004 Buckeye Delphi Driving Tomorrow Award
2004 Buckeye Quarter Finalist w/ 1001 and 869
2003 GM Industrial Design Award GLR
2001 National Champs
  #3   Spotlight this post!  
Unread 16-02-2006, 10:33
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Problems with Programming

Quote:
Originally Posted by DHarris
Hi again.

Yesterday, I tried to program some autonomous codes into the robot, but it didn't exactly work out the way it was supposed to. Half the time, there was a red light on next to the "code error" message on the O/I and the robot wouldn't do anything at all, and when I input the code for a simple autonomous program to make the robot drive forward, stop, turn left, stop, then drive forward again and stop, it only went forward and didn't stop at all.

Another problem that I've been having is when I program for RC control with the joysticks (using the Arcade 4 programming for 4 wheel drive), the joysticks won't work. One set of wheels will constantly spin when the other set doesn't, and if I can finally get both sides to stop completely (which takes some tedious calibrations of both joysticks) I can't get them to move again. Speaking of both joysticks, we've also been having some issues with getting our robot to work on only one joystick. Last time we had only one joystick, one wheel would constantly spin and wouldn't respond to the joystick movements. I was wondering if that was an error with the default programming since nothing else had been programmed into the Controller when we were having that problem.

Would anyone be able to tell me what's going on with the robot? Is there something that I'm not programming correctly?
Please post your autonomous code so we can determine if something is wrong over there.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #4   Spotlight this post!  
Unread 16-02-2006, 11:16
DHarris's Avatar
DHarris DHarris is offline
Professional Procrastinator
AKA: Dana McDanaface
FRC #1845 (Panthera Robotica)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Atlanta
Posts: 74
DHarris is on a distinguished road
Send a message via MSN to DHarris Send a message via Yahoo to DHarris
Re: Problems with Programming

Just some simple programming from one of the tutorials. This is the one that makes the robot continously move in one direction without stopping.


And this is the code that makes the "Code Error" light turn red on the O/I.
  #5   Spotlight this post!  
Unread 16-02-2006, 13:08
mallot1243's Avatar
mallot1243 mallot1243 is offline
Registered User
FRC #1243
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Swartz Creek, MI
Posts: 27
mallot1243 is an unknown quantity at this point
Re: Problems with Programming

Quote:
Originally Posted by DHarris
Just some simple programming from one of the tutorials. This is the one that makes the robot continously move in one direction without stopping.


And this is the code that makes the "Code Error" light turn red on the O/I.
OK. If you want to robot to stop immediately after moving forward the best choice is to "reverse brake" or set the values to the opposite for a moment if you drivetrain can handle it. Also make sure you debug everything, sometimes somewhere in your code you set a very broad if statement or else so that a pwm is 127 and this affects the rest of your code, especially if it occurs under your desired section. Your best bet is to create a flow chart, that always helps with me when I'm in this situation.\

And about that code light, I hate it and I don't know whats up so I compile the code a lot and add it to the controller just to check for the code error and if it works so I know where I screwed up on the code. Good luck.
__________________


WINNER! 2004 West Michigan Regional
2004 Rookie All-Star Pittsburgh Regional
2004 Highest Rookie Seed Pittsburgh Regional
2004 Rookie Inspiration Award West Michigan Regional
2004 Highest Rookie Seed West Michigan Regional (3rd)
2004 #2 Seed Kettering Kick-Off
2004 Kettering Kick-Off "Big Dog" (Finalist)
2005 Qtr-Finalist Pittsburgh Regional
2005 Kettering Kick-Off Qtr-Finalist
2006 Midwest Qtr-Finalist
2006 Midwest 12th Seed

Last edited by mallot1243 : 16-02-2006 at 13:10.
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
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
problems programming knob and switch caderader Programming 4 16-02-2006 16:45
Problems programming a switch caderader Programming 2 18-02-2005 22:06
Programming Sub-Team Problems Phil Paspalas Programming 9 19-01-2005 21:42
Problems and questions about programming hedgehogger Programming 4 15-01-2005 18:18


All times are GMT -5. The time now is 04:14.

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