Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Use of PWM outputs 13-16 via WPILib (http://www.chiefdelphi.com/forums/showthread.php?t=62749)

sfs 28-01-2008 21:52

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.

BradAMiller 29-01-2008 09:47

Re: Use of PWM outputs 13-16 via WPILib
 
Quote:

Originally Posted by sfs (Post 687692)
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.


All times are GMT -5. The time now is 10:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi