Thread: Autonomous Help
View Single Post
  #2   Spotlight this post!  
Unread 22-03-2016, 13:41
vhcook's Avatar
vhcook vhcook is offline
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Autonomous Help

In your second frame of your sequence, you don't actually tell the wedge arm motor to stop. You need to set output to 0 for that device for it to stop, otherwise it just keeps doing the last thing you told it.

Really, you should have three sequence frames here.
1. One second wait and the code you have for the wedge arm motor,
2. Five second wait, the wedge arm motor stop, and the drivetrain start
3. Stop the drivetrain.

Right now, your first frame ends as soon as you set the motor. If you put a wait block in that first sequence frame for 1 second, that will get it to last a full second. This doesn't have to be connected to any of the other items in that block -- Labview won't leave that frame of the sequence until everything in it has completed. What you're doing in your second frame would have worked without the sequence structure.
__________________



Last edited by vhcook : 22-03-2016 at 13:49. Reason: Noticed a second thing
Reply With Quote