Go to Post I wonder how many games we could come up with that are not the one for FRC 2008. - AndrewN [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 06-02-2017, 19:51
JohnGutowski JohnGutowski is offline
Registered User
FRC #0280
 
Join Date: Feb 2017
Location: United States
Posts: 6
JohnGutowski is an unknown quantity at this point
Periodic Tasks Questions

Here is our periodic tasks vi, it appears to be in order as far as we are aware but when running our code we can't seem to use the button allocated to control the motor allocated. We also tried getting rid of the Wait Counter and we also tried to exclude the While Loop but to no avail. We even changed the joysticks but it didn't make a difference. Please help!

Thanks, John


Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2017, 19:54
JohnGutowski JohnGutowski is offline
Registered User
FRC #0280
 
Join Date: Feb 2017
Location: United States
Posts: 6
JohnGutowski is an unknown quantity at this point
Re: Periodic Tasks Questions

Here is our code


https://ibb.co/cLzHaa
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2017, 20:08
MattBrown MattBrown is offline
Registered User
AKA: Matt Brown
FRC #1501 (T.H.R.U.S.T.)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Indiana
Posts: 2
MattBrown is an unknown quantity at this point
Re: Periodic Tasks Questions

Try moving you Get Values control inside the loop. Controls outside the loop only execute once.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2017, 20:09
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,948
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: Periodic Tasks Questions

You need to put the Joystick Get Values inside the while loop.

The way it is now, it reads the joystick values once when the robot is booted (and before the joysticks are even connected) and those values are never updated or changed.
You want to read new values each loop.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2017, 20:22
JohnGutowski JohnGutowski is offline
Registered User
FRC #0280
 
Join Date: Feb 2017
Location: United States
Posts: 6
JohnGutowski is an unknown quantity at this point
Re: Periodic Tasks Questions

Quote:
Originally Posted by Mark McLeod View Post
You need to put the Joystick Get Values inside the while loop.

The way it is now, it reads the joystick values once when the robot is booted (and before the joysticks are even connected) and those values are never updated or changed.
You want to read new values each loop.
Thanks so much, appreciate the help
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 00:28.

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