Go to Post Free hugs are excellent things. - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-03-2013, 22:14
moore1320 moore1320 is offline
Registered User
FRC #3496
 
Join Date: Jan 2011
Location: Columbus, OH
Posts: 9
moore1320 is an unknown quantity at this point
Autonomous

Having an odd problem with autonomous.

On our first attempt to run our auto code we were not successful. The bot did nothing. We also noticed that the signal light went solid orange. My first thought was that the code must be buggy, so I stripped autonomous down until it just included the signal light code, but had the same problem. I know it isn't periodic tasks causing the problem , because teleop work like a dream.

My second day thought was that perhaps I had accidentally changed a fundamental piece of the structure, so I can tried making a new project and using the stock frc code... Same problem.

I then thought I may have changed something in the wpi library somehow, so I used the frc disk and repair installed all of the frc components listed, built a new project, and loaded the stock code, and still a solid signal light.

Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-03-2013, 22:57
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,113
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: Autonomous

The Robot Signal Light being on and unblinkiing is proper operation when the robot is Enabled in Autonomous.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2013, 07:32
moore1320 moore1320 is offline
Registered User
FRC #3496
 
Join Date: Jan 2011
Location: Columbus, OH
Posts: 9
moore1320 is an unknown quantity at this point
Re: Autonomous

I thought the same thing, but this is the txt block in the base FRC code for autonomous:


"This code sets the toggle rate used by the Periodic Tasks VI. For autonomous mode we slowly flash the USER1 LED on the cRIO. Look at the Periodic Tasks VI to see how this global value is used."

A 500 numeric value is written to the LED Toggle Rate Global variable.

Is this incorrect?
Reply With Quote
  #4   Spotlight this post!  
Unread 18-03-2013, 07:39
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 864
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Autonomous

USER1 and the RSL are two entirely different indicators.

USER1 is a small led on the crio itself.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #5   Spotlight this post!  
Unread 18-03-2013, 07:51
moore1320 moore1320 is offline
Registered User
FRC #3496
 
Join Date: Jan 2011
Location: Columbus, OH
Posts: 9
moore1320 is an unknown quantity at this point
Re: Autonomous

I see, thank you very much!
Reply With Quote
  #6   Spotlight this post!  
Unread 18-03-2013, 18:26
moore1320 moore1320 is offline
Registered User
FRC #3496
 
Join Date: Jan 2011
Location: Columbus, OH
Posts: 9
moore1320 is an unknown quantity at this point
Re: Autonomous

So, I had an opportunity to work with the practice bot this afternoon, and after taking what I learned here I tried to figure out the problem. Knowing that the light didn't matter I used the code we wrote and deployed it from the development machine and attempted to run while tethered so we could monitor some the code for debugging.. and it worked as expected.

I thought the problem was solved, until we tried it again... and nothing.. the Autonomous program appeared to execute, but a probe on the enum of the state machine read not initiated.

Not sure why it worked the first time, and not the second, I shut everything down and tried again. It did the same thing; worked the first time, but not the second.

I then decided to try building the code, and deploy to run as a start-up item, and it works every time without fail.

Any ideas?
Reply With Quote
  #7   Spotlight this post!  
Unread 18-03-2013, 21:11
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,113
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: Autonomous

Quote:
Originally Posted by moore1320 View Post
Any ideas?
A couple, but none I'd consider worth sharing without seeing the code in question.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-03-2013, 21:19
kgzak's Avatar
kgzak kgzak is offline
Registered User
AKA: Kris
FRC #4392 (Decievers) FRC #2075 (Enigma)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Grand Rapids, Michigan
Posts: 418
kgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to behold
Re: Autonomous

My theory: You have some sort of counter that tells certain parts to run at certain times that don't get reset when you run the second time. Don't know what your code looks like but this is what I have seed happen before.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-03-2013, 21:20
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,752
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: Autonomous

Are you running the Robot Main or just the Auto? If you run the Robot Main VI, it should work the same as a built deployment.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 18-03-2013, 22:13
moore1320 moore1320 is offline
Registered User
FRC #3496
 
Join Date: Jan 2011
Location: Columbus, OH
Posts: 9
moore1320 is an unknown quantity at this point
Re: Autonomous

I have been running robot main, which is why I don't understand it. In the autonomous vi I have a state machine, when the enumerated selector was probed it listed as uninitialized on the times it did not work.
Reply With Quote
Reply


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 22:56.

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