Go to Post There's a stark difference between bragging and taking pride in your work. While "Ha ha! We're better than you! We won seventeen regionals and you didn't!" would clearly fall in the former, listing your achievements would definitely fall in the latter. - artdutra04 [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 09-02-2015, 20:18
Fields's Avatar
Fields Fields is online now
Classic
FRC #5637 (Titanium Polars)
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Minneapolis
Posts: 94
Fields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to allFields is a name known to all
Constant running motor

Our team is having issues with controlling a new motor. We followed an example online and CAN control the motor, but when you take your hand off the control, the motor is spinning. We switched controllers just in case with no luck.
What in our program here could be causing this?
Attached Thumbnails
Click image for larger version

Name:	VortexSnapPicture.PNG
Views:	25
Size:	24.6 KB
ID:	18251  
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2015, 20:26
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Constant running motor

You need to remove the '0' you have at the top (and leave the terminal disconnected).

If you look inside the Joystick "Get Values" function, you will see that the value received from the joystick is divided by this value. And since you cannot divide by 0, LabVIEW calls this infinity. Finally it puts it in the 1 to -1 range, so it will always output '1', which is full speed forward.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
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:27.

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