Smartcar Shield
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | List of all members
InfraredAnalogSensor Class Reference

An abstract class to represent the various infrared analog sensors. More...

#include <InfraredAnalogSensor.hpp>

Inheritance diagram for InfraredAnalogSensor:
Inheritance graph
Collaboration diagram for InfraredAnalogSensor:
Collaboration graph

Public Member Functions

 InfraredAnalogSensor (Runtime &runtime)
 
unsigned int getMedianDistance (uint8_t iterations=smartcarlib::constants::analogInfraredSensor::kDefaultIterations) override
 

Detailed Description

An abstract class to represent the various infrared analog sensors.

These sensors are able to conduct measurements by emiting an analog signal that can be read by a microcontroller through the ADC.

Definition at line 25 of file InfraredAnalogSensor.hpp.

Constructor & Destructor Documentation

InfraredAnalogSensor::InfraredAnalogSensor ( Runtime runtime)

Definition at line 11 of file InfraredAnalogSensor.cpp.

Member Function Documentation

unsigned int InfraredAnalogSensor::getMedianDistance ( uint8_t  iterations = smartcarlib::constants::analogInfraredSensor::kDefaultIterations)
override

Definition at line 16 of file InfraredAnalogSensor.cpp.

Here is the call graph for this function:


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