4 #include "isonarsensor.h"
20 SonarSensor(
int t_pin,
int e_pin,
int t_len,
int t_out);
21 void init(
int t_pin,
int e_pin,
int t_len,
int t_out);
41 #endif // SONARSENSOR_H
long getRange_in()
Get the range in inches for the previous ranging cycle.
Definition: sonarsensor.cpp:103
void init(int t_pin, int e_pin, int t_len, int t_out)
Initializer function, used to initialize default constructed objects.
Definition: sonarsensor.cpp:46
long getRange_cm()
Get the range in centimeters for the previous ranging cycle.
Definition: sonarsensor.cpp:117
long trigger()
Trigger a sonar ranging cycle.
Definition: sonarsensor.cpp:78
Class to represent standard one or two pin echo timing sonar sensors.
Definition: sonarsensor.h:16
SonarSensor()
Default constructor for sonar sensor.
Definition: sonarsensor.cpp:7
Virtual interface class for any type of sonar sensor.
Definition: isonarsensor.h:12