Public Member Functions
Sonar Class Reference

#include <sonar.h>

Inheritance diagram for Sonar:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void poll (void)
 Sonar ()

Detailed Description

Interface for Arduino-attached sonars.

Definition at line 50 of file sonar.h.


Constructor & Destructor Documentation

Sonar::Sonar ( ) [inline]

Constructor: sets poll period to ping interval.

Definition at line 54 of file sonar.h.


Member Function Documentation

void Sonar::poll ( void  ) [virtual]

Poll interface.

When this function is called periodically, it sends any previous result in a serial message, then starts polling the next sonar.

Implements ArduinoDevice.

Definition at line 86 of file sonar.cpp.


The documentation for this class was generated from the following files:


segbot_firmware
Author(s): Jose Bigio, Jack O'Quin, Tim Eckel (NewPing library)
autogenerated on Fri Aug 28 2015 13:02:53