Go to Post Truly good teasers should give people a good place to start guessing, while still leaving some mystery and uncertainty. - Travis Covington [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 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
  #2   Spotlight this post!  
Unread 09-03-2011, 04:59
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: CAN Jaguars and Software setting of Brake Coast

looks good, though you could also use a for loop with the auto-indexing. I've done that multiple times.

That reminds me, the drivers were complaining I set the motors to be in coast mode.
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:15.

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