Go to Post ...can I play a computer game during a competition, while i'm suppposed to operate the robot? - Gal Longin [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 19-02-2003, 12:54
authgeek1218's Avatar
authgeek1218 authgeek1218 is offline
Design/Programming Geek
#1218 (CHABots)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Philadelphia
Posts: 26
authgeek1218 is an unknown quantity at this point
Send a message via AIM to authgeek1218
One final fairly massive problem with the code...

In short, our auton_mode is not being set to 1.

We've tried setting the competition port on pins 5 and 8. The controller flashes 'disabled' but auton_mode isn't set to 1.
We've tried setting our team number to 0. Same result.

We have set our auton_mode variable to 1 and our programs do run from there.
Code:
auton_mode		VAR PB_mode.bit6
^This is defined.
I've tried using the variable PB_mode.bit6 instead of auton_mode and this also does not work.

Is their any chance we got a bad OI that doesn't set the bit to 1 when auton mode is on? Something like that? Any help is really appreciated.

-Nick 1218
__________________
  #2   Spotlight this post!  
Unread 19-02-2003, 13:39
authgeek1218's Avatar
authgeek1218 authgeek1218 is offline
Design/Programming Geek
#1218 (CHABots)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Philadelphia
Posts: 26
authgeek1218 is an unknown quantity at this point
Send a message via AIM to authgeek1218
Let me revise... I wasn't serin-ing PB_mode and that was the first problem.
The next problem is a Basic Error when I serin PB_mode. I have it declared, I get the error on the robot and not on the Syntax checker in the stamp editor.

Anything else I need to serout with it? Any other things I have to include when serin-ing PB_mode? It really is one of those things where the only thing I change is PB_mode in the serin. With it, error. Without it, no error but no indication of modes.

Thanks again...
__________________
  #3   Spotlight this post!  
Unread 19-02-2003, 13:42
Skabana159's Avatar
Skabana159 Skabana159 is offline
Robotics and Field Hockey
AKA: Jesse C. Owens
#0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2000
Location: Ft. Collins, CO
Posts: 92
Skabana159 is on a distinguished road
Send a message via AIM to Skabana159
It sounds to me like your init. constants are wrong. Every c_variablename that you wish to serin must be set to 1, all others must be set to 0. Then, if those are correct, check to make sure the order of your variables is consistant with what the order is in the default code.
__________________
"What most people do not understand is that the Buddha, the Godhead, resides just as comfortably in gears and circuits as in hills and trees. To believe otherwise is to dilute the Godhead."
-Robert Pirsig, Zen and the Art of Motorcycle Maintenance
  #4   Spotlight this post!  
Unread 19-02-2003, 13:55
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by Skabana159
It sounds to me like your init. constants are wrong. Every c_variablename that you wish to serin must be set to 1, all others must be set to 0. Then, if those are correct, check to make sure the order of your variables is consistant with what the order is in the default code.
To give you a concrete example...

This works:
Code:
c_p1_y		CON	1
c_p2_y		CON	1
...
c_PB_mode	CON	0

...

   Serin COMA\COMB, INBAUD, [p2_y,p1_y]
This will give you a BASIC Error:
Code:
c_p1_y		CON	1
c_p2_y		CON	1
...
c_PB_mode	CON	0

...

   Serin COMA\COMB, INBAUD, [PB_mode,p2_y,p1_y]
This fixes the BASIC Error:
Code:
c_p1_y		CON	1
c_p2_y		CON	1
...
c_PB_mode	CON	1

...

   Serin COMA\COMB, INBAUD, [PB_mode,p2_y,p1_y]
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 19-02-2003 at 14:02.
  #5   Spotlight this post!  
Unread 19-02-2003, 15:11
authgeek1218's Avatar
authgeek1218 authgeek1218 is offline
Design/Programming Geek
#1218 (CHABots)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Philadelphia
Posts: 26
authgeek1218 is an unknown quantity at this point
Send a message via AIM to authgeek1218
What about the order of serin and constants? Did I hear correctly that they have to correspond?
__________________
  #6   Spotlight this post!  
Unread 19-02-2003, 16:51
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Yes they must go in a specific order, but it is not the order of the constants. It is the order of the line right about the serin (the commented out serin)
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
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Ok one problem cantwell03 Programming 3 13-02-2003 07:28


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

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