Go to Post I think the "F" in FIRST really stands for "friendly." - Rick TYler [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 14-02-2014, 21:15
LEDFire LEDFire is offline
Registered User
FRC #4633
 
Join Date: Jan 2014
Location: Canada
Posts: 2
LEDFire is an unknown quantity at this point
Question Problem with Tank drive when activating double solenoids with Joystick Button

Hey everyone, i was recently attempting to program my joystick button in my tank drive code, and when i un-bundled the buttons to access a specific one and put it on a loop to activate if pressed. and when i went to test it, the driving code did not function at all. I don't understand how the drive code is faulty, if what i did was add a parallel operation. If anyone has any insight as to why this is happening, please share.

PS. ill add a picture of the code when time allows, so that you can see what is wrong if you don't get it from my explanation.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2014, 21:48
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Problem with Tank drive when activating double solenoids with Joystick Button

Teleop is already in a loop. If you added another loop inside teleop, you're now blocking other things in teleop from running. If you want a parallel loop, put your loop in periodic tasks. However, you can probably just remove the loop you added (but keep the solenoid code).
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2014, 12:17
JesusC JesusC is offline
Registered User
FRC #4633
 
Join Date: Jan 2013
Location: Calgary
Posts: 26
JesusC is an unknown quantity at this point
Re: Problem with Tank drive when activating double solenoids with Joystick Button

Alright, ill test that out, thank you for the reply, hopefully its fixed

PS. oh and im the guy who posted, i was using a friends account when i posted
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:06.

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