View Single Post
  #10   Spotlight this post!  
Unread 11-02-2009, 20:42
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Invalid PWM Channel Index

If you look at a digital sidecar, it has a row of PWM connectors. Each connector can be used for motors or servos depending on if they are jumpered. The SW API needs to deal with this HW resource limitation.

So, once you've designated a PWM channel is used for one thing, it is reserved and cannot be reopened for the other purpose. What Joe is pointing out is that the template code already reserves the first couple channels as being for motors. That means that until they are closed, they cannot be opened for servos and will return an error.

Greg McKaskle
Reply With Quote