Go to Post A good way to minimize the possibility of breaking things is to minimize the number of things that can break. - s_forbes [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 14-01-2014, 15:50
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Measuring Pulse Width

Trying to get a MaxBotix sonar going. We're currently measuring the analog output, which works, but has a pile of (low) spikes in the output.

Want to investigate using the pulse width; looking at the Counter class. Trying to figure out something: does getPeriod() give us the time between two successive up-edges, or between an up-edge and a down-edge? how does setSemiPeriodMode affect this? (the docs indicate that specify highSemiPeriod true means to count up on both rising and failing, so does setting highSemiPeriod mean that it only counts on the rising, but indicates the period between the last rise and the last fall?)
Reply With Quote
 


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


All times are GMT -5. The time now is 08:41.

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