View Single Post
  #1   Spotlight this post!  
Unread 06-03-2011, 13:51
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
CAN Jaguars and Software setting of Brake Coast

I think, I've got this correct, however, I'm not 100% certain, when it comes to parsing out the needed data.

What we are doing is setting BRAKE mode for Autonomous, and COAST mode for Teleop regardless of the jumper settings on the Jaguars.

We perform an open 4 motor CAN Jaguar in BEGIN.VI, we are using ID's 2-5.
In Autonomous we take the Drive Device Ref, do an un-bundle by name for the motors[] array, select out the first for elements, passing that to CAN Jaguar Config Brake Coast.VI, setting each to BRAKE for Autonomous and COAST for Teleop.

I've attached a jpg showing an overview of what I'm doing.

The questions I have are:
1) Are the element numbers in the Motors[] array equal to the CAN ID of the Jaguar, or are they simply the first 4 elements as I assuming.

2) Is this a valid way to perform this given my sample

3) Is there anything else I might be missing or forgetting.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	CANBrakeCoast.jpg
Views:	51
Size:	54.4 KB
ID:	10346  
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote