Go to Post I dont compete to win prizes, I compete to win Pride. - CircularLogic [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-03-2003, 19:16
DKolberg DKolberg is offline
Mentor Iron Giants
AKA: David Kolberg
FRC #5069 (Iron Giants)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2000
Location: South Bend
Posts: 44
DKolberg has a spectacular aura aboutDKolberg has a spectacular aura about
Question PB_Mode Sequence

Question for others: What is the correct sequence for the Comp_Mode and Auton_Mode? We thaught it should have been:

Comp_Mode = 1, Auton_Mode = 0 => disabled, Human Mode
Comp_Mode = 0, Auton_Mode = 1 => Autonomous Mode
Comp_Mode = 0, Auton_Mode = 0 => Manual Mode
Comp_Mode = 1, Auton_Mode = 0 => End of Match

Further the sequence would be Auton_Mode would be set to 1 before or at the same time as Comp_Mode = 0. We found at the Pitt comp that Comp_Mode went to 0 prior to Auton_Mode going to 1. We had to add commands to enable auto mode from Manual Mode. Has anyone else found this problem?

Dave
  #2   Spotlight this post!  
Unread 16-03-2003, 20:18
Jeff Waegelin's Avatar
Jeff Waegelin Jeff Waegelin is offline
El Jefe de 148
AKA: Midwest Refugee
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 2001
Location: Greenville, TX
Posts: 3,132
Jeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond repute
This was in one of the team updates. Basically, your code should be based off of Auton_mode, not comp_mode.
__________________
Jeff Waegelin
Mechanical Engineer, Innovation First Labs
Lead Engineer, Team 148 - The Robowranglers
  #3   Spotlight this post!  
Unread 17-03-2003, 08:52
DKolberg DKolberg is offline
Mentor Iron Giants
AKA: David Kolberg
FRC #5069 (Iron Giants)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2000
Location: South Bend
Posts: 44
DKolberg has a spectacular aura aboutDKolberg has a spectacular aura about
Yes, but it did not give the exact sequence. We believe the sequence to be:

Comp_Mode Auton_Mode
1 0
0 0
0 1
0 0
1 0

While smother control would be:

Comp_Mode Auton_Mode
1 0
0 1
0 0
1 0

This would keep from entering Manual mode prior to Autonomous mode. Using multiple program slots requires additional switching that should be unnecessary. We set program slot 0 for disable mode, selection of which autonomous mode to operate in and then run the proper autonomous slot. Each autonomous program then runs the manual slot when autonomous mode is cleared. The sequence that is being used by first now requires going from autonomous slot to manual slot and back to autonomous slot. I am trying to check with others to verify that the above sequence that we are seeing is what FIRST is using and if so to ask FIRST to provide a more concise sequence in the future.

Dave
  #4   Spotlight this post!  
Unread 17-03-2003, 10:54
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
agreed

Based on our experience, I agree that comp_mode is going low for at least one cycle before auton_mode is going high.

We used slot 0 to set up a master variable list, initialize the relay outputs, and initialize the master uP. After that it just sat in a loop until either comp_mode and auton_mode were low, or auton_mode went high. The problem we had was that comp_mode went low before auton_mode, which ran the teleoperation code instead of one of the autonomous programs.

For the first few matches it just sat there and we couldn't figure out what was wrong. After I moved the autonomous selection stuff to the OI program it worked fine.
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
RC bootup sequence Venkatesh Programming 17 18-11-2003 20:56
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Clips of the Closing Animation Sequence from the Nationals? archiver 2001 0 24-06-2002 04:11


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

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