View Single Post
  #2   Spotlight this post!  
Unread 22-01-2014, 10:04
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Programming MaxSonar EZ1 Ultrasonic Rangefinder in Simple Robot Template

If I remember correctly, the analog configuration is the default, and doesn't offer as many options but is very easy to setup.

In 2012 when I last used this sensor, there was no WPILib class that supported it, but if they've added one, you'll want to use it; otherwise you are welcome to use my 2012 code here:

https://github.com/TeamExcel/Project...angeFinder.cpp
https://github.com/TeamExcel/Project...gRangeFinder.h

You may have to configure the sensitivity ANALOG_RANGE_FINDER_DEFAULT_INCHES_PER_VOLT in the .h
Reply With Quote