Go to Post In the end, if our products are crap, then people will not buy them. This is the risk of doing business, and the foundation of capitalism. - Andy Baker [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 21-02-2015, 12:17
Jesus Perea Jesus Perea is offline
Registered User
FRC #4371
 
Join Date: Feb 2015
Location: México
Posts: 10
Jesus Perea is an unknown quantity at this point
Autonomous problem

Hi!
Good morning we have a problem with our autonomous.
How can we put time to an action in our program here is our code:
Attached Thumbnails
Click image for larger version

Name:	Auto..png
Views:	78
Size:	110.0 KB
ID:	18449  
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2015, 12:21
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,833
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: Autonomous problem

Add a Wait for a delay inside the frame, like so:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2015, 12:34
Jesus Perea Jesus Perea is offline
Registered User
FRC #4371
 
Join Date: Feb 2015
Location: México
Posts: 10
Jesus Perea is an unknown quantity at this point
Re: Autonomous problem

We have to put safety config to the piston and the motors that we want to activate?
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2015, 12:39
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,833
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: Autonomous problem

No, you don't need the safety config calls for the motor or solenoid you are using.
That picture of mine is only a generic example.

Just add a Wait in the Autonomous code that you have there.
You can add a wait in the first frame if you want to give the solenoid more time to react before the motor starts, and another wait in the motor frame to tell it how long to run.
Without the Wait(s) the code will execute as fast as it possibly can.

Note: a wait is fine for Autonomous and in Periodic Tasks, but don't ever use them in teleop.vi
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-02-2015 at 12:43.
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 21:27.

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