Thread: CAN tutorial
View Single Post
  #8   Spotlight this post!  
Unread 14-02-2011, 13:35
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Using CAN BUS in Labview

Quote:
Originally Posted by kamocat View Post
Phil,

Feel free to try using the "position disable" command, and see if it makes a difference. I was under the impression all the "disable" commands function identically. The main purpose of the "enable" and "disable" is to prevent the Jaguar from making wild movements while you are configuring.

In my experience, the BDC-COMM and the LabVIEW implementation treat the position the same; in rotations. I've tested Position Mode with encoders in both LabVIEW and the BDC-COMM, but I've only tested with potentiometers in BDC-COMM.

EDIT:
If you want to control using voltage, you can set your "pot turns" configuration to 3. The Jaguar uses a 3v regulator for the potentiometer.
Now that I've got things working, I'll try the enable/disable again.
Regardless of the original intent for "enable/disable? it seemed the most logical way for me to "stop" the motor from following the slave controller. Changing the mode back to voltage and then setting voltage to zero seemed long winded.

Now that I think back... it's possible that the BDC-COMM WAS running 0-1, but the on-screen text just made me think it was volts...... perceptions...

Setting pot turns to 3 is a clever trick. I wasn't sure how that value effected the controller. I thought that the gear reduction should also come into play there.... but not really..

That parameter could have a paragraph of explanation somewhere so it's more obvious how it effects things.... The Rotations connection just wasn't obvious to me & I've been around the block a few times (or is it arround the bend?)

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote