Go to Post The losing alliance should know they lost, admit it, and use the desire to win to push themselves even further. - artdutra04 [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
  #16   Spotlight this post!  
Unread 26-03-2003, 10:56
JasonStern JasonStern is offline
Mentor
FRC #1123 (AIM Robotics)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Arlington, VA
Posts: 65
JasonStern is on a distinguished road
Quote:
Human Player Phase: auton_mode = 1, comp_mode = 1
nope, in human player phase, comp_mode =1 and auton_mode = 0! The reason I know this for a fact is because our bot refused to move in auton period during pratice rounds. If auton =1, our bot would have went into auto mode during the human time and would have waited until it could move. Instead, it went into driver mode right away. We use multilple program slots, so the fix was to have the driver code check for autononymous mode and transfer control to its slot if it was on. However, it sounds like you are using one slot with if statements, so this isn't likely to be your problem
__________________
Que será será
  #17   Spotlight this post!  
Unread 26-03-2003, 14:26
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Quote:
Originally posted by Nate Smith
Pre Match: auton_mode = 0, comp_mode = 1
Human Player Phase: auton_mode = 1, comp_mode = 1
Autonomous Phase: auton_mode = 1, comp_mode = 0
Remote Control Phase: auton_mode = 0, comp_mode = 0
Post Match: auton_mode = 0, comp_mode = 1
These are probably the signals that the control system is sending to the OIs. However, the OIs themselves will not send down the autonomous bit to the RC unless BOTH autonomous is set AND it's not disabled.

Originally we had our switch wired up such that by flipping one switch, we grounded the auto pin and un-grounded the disabled pin at the exact same time. When we did it this way, there were 1 or 2 packets that went to the robot that enabled the robot but didn't have autonomous set. When we instead wired it up with two switches such that we could enable autonomous and then after that enable the robot, it would go straight from disabled with no auto to enabled with auto all at once.

My guess is that this is the same change that IFI made to the arena control system.
  #18   Spotlight this post!  
Unread 26-03-2003, 19:11
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
See.. these comp mode and other crap just confuse everyone... heres what we did:


if auto_button = 1 OR auton_mode = 1 then

select (auto_select)
case 0 to 2 'line tracking
run 6
'case 4 to 7 'dead reckoning
run 7
case 8 'joy 1
run 2
case 9 'joy 2
run 3
case 10 'joy 3
run 4
case 11 'joy 4
run 5
case 12 'joy 5
run 2
case 13 'joy 6
run 3
case 14 'joy 7
run 4
case 15 'joy 8
run 5
endselect

else
gosub operator_control
endif


When the autonomous program detects that auton_mode = 0 and someone has moved the joystick then it resets all its varibles and returns control to the first slot.. like so:

if auton_mode = 0 then

if p1_x > 142 OR p1_x < 112 OR p1_y > 142 OR p1_y < 112 then
run 1
endif
endif

This is why multiple slots are so much easier to program with... and by the way, have I mentioned yet that our autonomous mode has worked flawlessly in all of our competition matches?
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net

Last edited by randomperson : 26-03-2003 at 19:16.
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 Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
Autonomous mode AntmanIV General Forum 1 17-02-2003 13:30
autonomous mode timer Don Programming 6 09-02-2003 22:16
autonomous mode Stephanie Programming 2 25-01-2003 19:57
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


All times are GMT -5. The time now is 12:42.

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