Go to Post "Oh, I get why we have Toy Story band-aids!!! The character Woody, and then in FIRST, we have Woodie Flowers. Woody = Woodie? I get it! I GET IT! - Millory [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 20-02-2011, 14:06
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Startup Twitch

After a robot reset, our robot doesn't respond for about 5 seconds after enabling, and then twitches (quite violently) and then responds to our control. We're using Java. Can anyone think of a reason for this twitchiness?
  #2   Spotlight this post!  
Unread 24-02-2011, 12:58
Frenchie461's Avatar
Frenchie461 Frenchie461 is offline
iScout
AKA: Brian, Frenchie, or that guy
FRC #0461 (Westside Boiler Invasion)
Team Role: CAD
 
Join Date: Jan 2011
Rookie Year: 2010
Location: West Lafayette, IN
Posts: 224
Frenchie461 is a jewel in the roughFrenchie461 is a jewel in the roughFrenchie461 is a jewel in the roughFrenchie461 is a jewel in the rough
Re: Startup Twitch

it could twitch from all components powering up and testing, or it could be because of a bad CRiO.
__________________
"As a general rule, the most successful man in life is the man who has the best information." - Benjamin Disraeli (1804-81)
  #3   Spotlight this post!  
Unread 24-02-2011, 13:04
indubitably's Avatar
indubitably indubitably is offline
Registered User
AKA: Ryan Guinn
FRC #2338 (Gear It Forward), FRC #1732 (Hilltoppers)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Oswego, IL
Posts: 172
indubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond reputeindubitably has a reputation beyond repute
Re: Startup Twitch

Check to make sure your automated processes are not initializing and that your variables are not being set to anything odd initially.

Also, if you are using PID, you may have to tweak your gains so that they do not need to work themselves out.
__________________
FRC 1732 (Hilltoppers): Mentor
FRC 2338 (Gear It Forward): Mentor/Alumnus
FRC 4096 (CTRL-Z): Mentor

  #4   Spotlight this post!  
Unread 24-02-2011, 13:24
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Startup Twitch

If you have an I term, you have to reset it continuously while disabled. Or else, when you enable it, it has to unwind the I term before (or while) you begin to use it.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #5   Spotlight this post!  
Unread 24-02-2011, 14:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Startup Twitch

The five second delay might be a camera or gyro initialization. Make sure you aren't calling for something like that in your Teleop code.
  #6   Spotlight this post!  
Unread 20-03-2011, 19:13
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Re: Startup Twitch

Okay I think I finally found the solution. When the robot enables, it doesn't clear out the previous values from the registers of the Jaguars (via CAN). So, upon enabling the robot, the speed controllers start at the same values as the round before, and then stop when they receive a new value. That time between start and stop is the twitch.

Can anyone confirm or deny this?
  #7   Spotlight this post!  
Unread 21-03-2011, 10:49
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 305
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: Startup Twitch

Quote:
Originally Posted by Geek 2.0 View Post
Okay I think I finally found the solution. When the robot enables, it doesn't clear out the previous values from the registers of the Jaguars (via CAN). So, upon enabling the robot, the speed controllers start at the same values as the round before, and then stop when they receive a new value. That time between start and stop is the twitch.

Can anyone confirm or deny this?
Well... I can confirm this is definitely true with PWMs with both Victors and Jaguars but not sure about CAN as we have never used it. I would suggest that you "turn off" everything when leaving both the teleop and autonomous routines in your code (eg. set drive motors to 0.0, and clear any internal states of your control loops, etc). This will ensure that you don't need to be worried when enabling your robot about what it might do. We have definitely experienced this with the gyro initialization as well... but that was more of an issue in the pre-cRIO years.
__________________
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 16:50.

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