View Single Post
  #1   Spotlight this post!  
Unread 09-02-2009, 23:27
Chipawa's Avatar
Chipawa Chipawa is offline
Registered User
AKA: Mr. Tucker, AKA Chip
FRC #1111 (Powerhawks)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Annapolis, MD
Posts: 41
Chipawa is an unknown quantity at this point
Allocation of PWM and GPIO Channels

We have a lot of motors and limit switches on this year's robot. Is there any reason we cannot use (for example) PWM channels 1-8 and GPIO channels 1-8 from the same digital sidecar?

And if so, how do you address those channels in code?

We're programming in C++. I'm not a programmer, but I understand that you have to specify a slot and a channel number for each signal. I'm just not sure how you differentiate between a PWM channel and a GPIO channel. Any help would be appreciated.
__________________

2010 DC Engineering Innovation Award
2010 DC Spirit Award
2008 Chesapeake Finalist
2008 Chesapeake Rockwell Automation Innovation in Controls award