Go to Post "And we will transform our schools and colleges and universities to meet the demands of a new age. All this we can do. And all this we will do." - OScubed [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 30-01-2012, 19:10
Sarah2542's Avatar
Sarah2542 Sarah2542 is offline
Registered User
AKA: Sarah Walker
FRC #2542 (Go4bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gresham, OR
Posts: 2
Sarah2542 is an unknown quantity at this point
Disable.vi

I just finished most of my team's program for driving and for the motor on our shooter to shoot the basketballs (in LabVIEW). I have the begin.vi, the finish.vi, and the teleop.vi done. I am working on the disable.vi right now. I know how to code the disabled for the drive motors (by wiring a constant 0 to the x and y axes of the holonomic drive vi) but I am not sure how to wire the other motor (I got it from the actuator panel from the WPI library) to set it for disabled. I know it doesn't have axis inputs and I don't think wiring it to "closed" for disabled mode will work. Anyone have any ideas?

Thanks, and have a great build season!
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2012, 07:00
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Disable.vi

we don't do anything with that vi on our team, are you sure you need to modify it?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2012, 09:29
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,713
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: Disable.vi

Use the Set Output from the same motor palette and wire in a zero.

Any motor that might possibly have been moving at the moment when the robot was Disable should be set to neutral.
The reason is that you might come out of the Disabled state doing something different than when you entered Disabled, e.g., switch to Autonomous from Teleop, or switch to Teleop from Autonomous, or restart Autonomous.
If Teleop last had an arm motor moving up when you disabled, then if you don't set it to neutral in Disabled.vi and switch over to test autonomous, but autonomous doesn't use the arm until later, the arm will immediately continue moving upwards on it's own. The motor will continue executing the last output it was told.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-02-2012 at 09:37.
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 08:49.

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