View Single Post
  #20   Spotlight this post!  
Unread 17-01-2013, 17:34
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: General LabVIEW questions from a VERY new user

Quote:
Originally Posted by Greg McKaskle View Post
Do the two attached images of diagrams work the same? Well, maybe.

The output terminal was added this year to simplify publishing to the SmartDashboard. If you have set the motor to invert or to have a scaling functions, the right-side value will not be the same as the left. But many times it will be.

I'd do it like the left image. Split the wire and connect to both motors.

Greg McKaskle
Worked wonderfully, thank you
We drove our robot for the first time yesterday! It was glorious.

It also showed me that the controls are not sensitive enough at low levels and too at mid levels. So rather than just plugging in the axis values to the Drive Station plugins, I now want to do something like this:

If (axisValue < 0.4)
___axisValue*=1.5;
else if (axisValue > 0.4 && axisValue < 0.75)
___axisValue*=0.8;
(else, no change to the value)

I know (roughly) how to use the simple arithmetic and t/f vi's, but I couldn't quite figure out how to wire the input through so many if-then-else-if type scenarios successfully

EDIT: Added a pic of my attempt
Attached Thumbnails
Click image for larger version

Name:	aaa.jpg
Views:	32
Size:	12.8 KB
ID:	13549  

Last edited by ctccromer : 17-01-2013 at 17:50.
Reply With Quote