Go to Post The robot is talking to you, you must listen to find out what might be wrong. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2011, 11:52
morganfshirley morganfshirley is offline
Registered User
FRC #1571 (BraughtWurst)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Portland, OR
Posts: 3
morganfshirley is an unknown quantity at this point
How does one program their robot to recognize multiple Digital Sidecars?

Greetings, good people of the Chief Delphi forums;

My team has found itself in somewhat of a predicament. Due to our mechanical design, it has become necessary to add two Digital Sidecars to our electrical configuration. However, the programming team (which includes myself) has had difficulty ascertaining the method of specifying which of these Input/Output boards is intended in the code. For example, the initialization process for the Jaguar object in Java requires the inclusion of a Pulse-Width Modulation (PWM) channel, but because there are two sidecars there are two PWM channels of the same number.

Much thanks to any individuals who can help us with our predicament. Praise England.
  #2   Spotlight this post!  
Unread 29-01-2011, 12:04
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,588
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How does one program their robot to recognize multiple Digital Sidecars?

Make sure that you look at all forms of the constructors. For example, the jaguar has one constructor that only takes PWM channel, and assumes the digital sidecar is used with slot 4. There is a second constructor that takes both the PWM channel and the digitial module slot.

Note that slot 6 is the only other slot that works with the digital sidecar.
  #3   Spotlight this post!  
Unread 29-01-2011, 12:10
morganfshirley morganfshirley is offline
Registered User
FRC #1571 (BraughtWurst)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Portland, OR
Posts: 3
morganfshirley is an unknown quantity at this point
Re: How does one program their robot to recognize multiple Digital Sidecars?

Thank you sir! You are a gentleman and a scholar.

Cordially yours,

Morgan
Closed Thread


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 23:31.

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