Go to Post ...when you see someone post about something they don’t like, please don’t post another “I’m sick of all this whining” type of post. If you disagree with them, try to offer an intelligent argument back. - Phil 33 [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 22-04-2012, 23:59
SeanPerez SeanPerez is offline
Registered User
FRC #2625 (Arc Reactor)
Team Role: Driver
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mississauga
Posts: 45
SeanPerez is an unknown quantity at this point
Crio autonomous delay overlaps tele

For this years autonomous i added a delay after our code so that we can shoot and feed balls. we added a delay as a cheap fix to stop the robot from shooting and lifting blanks. So i added a 30 sec delay thinking that would be "good enough". During our match, after auto i had no control over the robot it would not respond at all. the ds was still geting its readings and was telling us that we were good on communication and robo code. we regained control around 20 sec's into the teleop period.

Did the delay overlap into teleop? What may of happened? I thought after auto was disabled and tele enabled, all process in the auto code would stop?
  #2   Spotlight this post!  
Unread 23-04-2012, 00:10
Austin2046's Avatar
Austin2046 Austin2046 is offline
Design, Strategy & Scouting Mentor
FRC #2046 (Bear Metal)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Maple Valley, WA
Posts: 175
Austin2046 has a spectacular aura aboutAustin2046 has a spectacular aura about
Re: Crio autonomous delay overlaps tele

A problem we had in Portland sounds very simular to this... while i do not know all the details, I believe our basic problem was that we could not come out of autonomous... we would run our auto, then it would just sit there for tele-op... we tried disabling our auto, but then it just sat there for the entire match... i'm not sure what all we did to fix it friday night, but it was a problem in our code. We ran the robot in our pit using the FMS simulator and recreated the problem found it in the code and fixed it. we ran the FMS simulator several more times after and never had the issue again... luckily for us, even though we were ranked like 33rd, our 3 matches saturday earned us a spot as the number 3 pick.
  #3   Spotlight this post!  
Unread 23-04-2012, 08:21
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Crio autonomous delay overlaps tele

I don't believe you state what language you are using or where you placed the delay. The frameworks in the different languages are generally the same, but how they check for and transition between states is quite different.

Greg McKaskle
  #4   Spotlight this post!  
Unread 23-04-2012, 15:16
SeanPerez SeanPerez is offline
Registered User
FRC #2625 (Arc Reactor)
Team Role: Driver
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mississauga
Posts: 45
SeanPerez is an unknown quantity at this point
Re: Crio autonomous delay overlaps tele

Im sorry about that.

We are using WindRiver c++. The delay was placed at the very end of our code in the auto function.

If you need any thing else just ask
  #5   Spotlight this post!  
Unread 23-04-2012, 15:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Crio autonomous delay overlaps tele

A delay at the end should effectively keep you from doing anything in auto or teleop during the duration of that delay.

In C++ you need to do a periodic check to see if IsAutonomous is over and done with.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 03-05-2012, 14:43
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Crio autonomous delay overlaps tele

In both C++ and Java using the SimpleRobotTemplate, there is no code that will force you're autonomous method to end. So as was stated, you can loop using the isAutonomous() or isOperatorControl() methods.

We were afraid that there might be locked resources and if we just ended the method, you could have deadlock waiting for those resources to free up.

If you're using the Periodic template (or the command based stuff), then it will get out of Autonomous naturally.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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


All times are GMT -5. The time now is 01:41.

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