Go to Post But no matter how you place, the thing to watch for is the character change in the team members. The trophies are only important for a few hours. The character that is built will last a lifetime. - BrothersKeepers [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 12-01-2004, 18:52
Larry Barello Larry Barello is offline
http://www.barello.net
#0492 (Titan Robotics Club)
Team Role: Mentor
 
Join Date: Jan 2002
Location: Bellevue, WA
Posts: 85
Larry Barello has a spectacular aura aboutLarry Barello has a spectacular aura about
Generate_pwms() Broken?

Per the edu and frc guides, Generate_pwms() can be used on selected PWM outputs in case you want to update at a higher rate than the standard radio packet rate (26.2 ms for FRC).

Well, when I try that I find that every N'th pulse is missing and that seems to correspond to the main packet loop running (i.e. every 26ms or so). I think there is some sort of undesirable interaction between Generate_pwms() and the main packet driver.

This, of course, makes Generate_pwms(), totally useless as it is only reliable when called within the main packet loop (user_code or autonomous_code)

Anyone else notice this problem? Did I misunderstand what this function is for?

P.s. I want to be able to control my sensor array while the robot is disabled and need the PWM pulse output to drive the scanning servo. Perhaps the way around this is to use the PWM output in CCP mode and form the servo pulses manually? Anyone have a code snippet to generate a single shot pulse out of the CCP module?

Last edited by Larry Barello : 12-01-2004 at 18:54.
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
CD is broken. Rickertsen2 CD Forum Support 62 26-10-2003 13:06
Broken Radios Katie Reynolds Electrical 3 20-06-2003 16:16
What happens to the broken parts after competitions? Greg Needel General Forum 4 31-03-2003 01:46
broken robots Dave_222 General Forum 0 30-01-2002 13:18
broken jumper on controller Mike Soukup Technical Discussion 5 22-10-2001 20:49


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

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