Go to Post Having a spare arm that you can put on in 5 minutes or less intimidates the hardware into not breaking. - ChrisH [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 Yesterday, 16:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,141
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: So apparently flat sequence structures don't work well in Teleop.

Quote:
Originally Posted by orangeandblack5 View Post
I have no clue what that does
Can't you click on the node (in LabVIEW of course) and get pop-up help which explains what it does?


Reply With Quote
  #2   Spotlight this post!  
Unread Yesterday, 17:01
orangeandblack5 orangeandblack5 is offline
Hates LabView - Uses It Anyway
AKA: Ian Stewart
FRC #5498 (Wired Devils)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Grosse Ile, MI
Posts: 36
orangeandblack5 will become famous soon enough
Re: So apparently flat sequence structures don't work well in Teleop.

I have before, but I still haven't figured out how that would be useful in that particular situation. Which is where I don't understand its use. The program I made works fine for ours, with the caveat that hitting A at any time the robot isn't enabled requires the limit switch also be hit again to "reset" the cycle by ending the frame diagram. This is likely a non-issue, as the limit switch will always be pressed when our motor-driven gate is closed, although if anybody has some way to avoid this (not activating when not in Teleop, maybe?) we'll take it.
Reply With Quote
  #3   Spotlight this post!  
Unread Yesterday, 17:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,141
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: So apparently flat sequence structures don't work well in Teleop.


Here are some examples showing the usefulness of feedback node in various situations


Reply With Quote
  #4   Spotlight this post!  
Unread Yesterday, 18:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,945
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: So apparently flat sequence structures don't work well in Teleop.

The feedback node in that use prevents the sequence from running again immediately if the driver continues to hold down the button.
The button must be released and pressed again after the sequence ends to get the sequence to run a second (or nth) time.

It's particularly useful with short sequences or forgetful drivers.

You can add in a Disabled check as well to prevent the sequence from being pre-triggered.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread Yesterday, 21:30
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,766
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: So apparently flat sequence structures don't work well in Teleop.

Quote:
I just didn't expect the flat sequence structure to kill Teleop
That was what I thought. It really isn't the flat sequence, but what is in it.

The tele function is effectively a callback. It is called eery 20 milliseconds/fifty times per second. Your teleOp code therefore needs to respond to the joystick inputs and finish in about 20ms or it will be too busy to process the next one. The events aren't queued or you would have the robot running delayed joystick info - acting laggy and generally very difficult to control.

So if you put code into tele that doesn't return, that doesn't work very well. If it takes seconds to return, then tele is delayed for that time. It is the code inside the sequence that delays, not the sequence itself.

The sequence simply runs one frame after the other. When if finishes, the other code downstream runs. When tele is finished, it waits for the next joystick input.

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 19: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