Go to Post The answer doesn't lie with an all student run team, or an Engineer-fest team... But somewhere in the middle. Moderation is key. - Cody Carey [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 28-01-2008, 21:52
sfs sfs is offline
Registered User
AKA: Steve Siirila
FRC #2220 (Blue Twilight)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Eagan, MN
Posts: 18
sfs is an unknown quantity at this point
Use of PWM outputs 13-16 via WPILib

Has anyone successfully used PWM outputs 13-16 in WPILib? We have not yet needed them, but I wondered if the SetPWM() function does what is necessary internally to allow them to be used in the same manner as ports 1-12. I ask because the default code requires the use of the Generate_Pwms() function when using ports 13-16.
  #2   Spotlight this post!  
Unread 29-01-2008, 09:47
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Use of PWM outputs 13-16 via WPILib

Quote:
Originally Posted by sfs View Post
Has anyone successfully used PWM outputs 13-16 in WPILib? We have not yet needed them, but I wondered if the SetPWM() function does what is necessary internally to allow them to be used in the same manner as ports 1-12. I ask because the default code requires the use of the Generate_Pwms() function when using ports 13-16.
WPILib only drives PWM ports 1-12 directly since those are the ones controlled by the master processor. You can control the other servos using some clever code that Kevin Watson wrote.

There is an explanation of how to do it in easyC here. Even though you are not using easyC, it is based on WPILib and the code works the same way.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with PWM outputs on RC Adam Richards Control System 1 20-02-2007 06:37
Vex start up code run PWM outputs without Rx intellec7 Programming 3 05-05-2006 23:29
pwm outputs vs. joystick y-axis stephenthe1 Programming 4 01-12-2004 17:29
Trouble with pwm outputs misterikkit Programming 16 17-01-2004 10:56
relay and pwm outputs nick_champ_2 Electrical 1 31-01-2003 13:08


All times are GMT -5. The time now is 09:23.

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