|
Re: Digital IO in C++
I'm not sure what you're application is, but you can measure pulse widths using the Counter objects in semi-period mode. That is exactly what the ultrasonic sensors do and you can look at the Ultrasonic class source code as an example.
There is one problem though - there is currently a bug in the FPGA that will prevent accurate results, but it will be fixed in the next update.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|