Go to Post (Just remember to pack extra warm--when they say the state motto is Live, Freeze, or Die, they're not joking.) - Billfred [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 18-03-2011, 22:37
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 problem.

From your description, my guess is that the motors are starting, and are then being shutdown by the safety timeout. Since there isn't much time, your best option may be to disable it in Begin. The other option is to change your code so that you update the motor speed at least every 100ms, similar to how the initial code did.

Greg McKaskle
Reply With Quote
  #2   Spotlight this post!  
Unread 20-03-2011, 20:28
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Autonomous problem.

I can see a few different things that would cause that. The first is that you forgot to save, rebuild, and reupload the code.

Other than that, did you just delete that large "page"y looking thing (the vi reference) outside the robot main loop? Since there is a feedback node inside the "autonomous enable" part of the case structure, it will just use the last value, which is the old autonomous independent. What you want to do is go inside the "autonomous enabled" state of the case structure and put a diagram disable structure around the case structure inside of that. Or you could replace the vi reference, then put a diagram disable structure around everything inside the vi.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-03-2011, 17:32
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Autonomous problem.

can i simply set the motor values to 0 and have nothing else in autonomous
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #4   Spotlight this post!  
Unread 24-03-2011, 17:50
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Autonomous problem.

If i go to the case structure in the Robot main Vi. and go to the autonomous enabled in the case structure. if i change something in there then will it achieve the same result of having no autonomous or do i just have to set a value of my motors to 0 in the vi itself?
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2011, 21:25
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 problem.

There are many ways to break the autonomous routine so that the robot sits still.

The correct answer as to how you should disable it depends a bit on how you have modified the framework and initial code.

The VI that launches the autonomous has the green light on it. If you disable that, no auto. Periodic tasks will still run, so if you have control code there, be sure to set your setpoints in Begin or elsewhere.

You can also write another autonomous VI that does nothing and drag that over the VI refnum on Begin. That will specify that you would rather it call that VI instead of the Autonomous Init. This is also easy to fix and even make dependent on a DS setting.

And of course there is nothing wrong with disabling the code in the Auto VI.

Greg McKaskle
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 20:39.

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