Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
Lidar Class Reference

#include <lidar.h>

Inheritance diagram for Lidar:
Collaboration diagram for Lidar:

Public Member Functions

 Lidar ()=default
 
 Lidar (Lidar &&)=default
 
 Lidar (const Lidar &)=default
 
Lidaroperator= (Lidar &&)=default
 
Lidaroperator= (const Lidar &)=default
 
 ~Lidar ()
 
 Lidar (Arduino_Device *adev, SensorName name)
 
int init () override
 
float read () override
 
bool available () override
 
void denit () override
 
void set_Outliers (Vec2< float > out)
 
- Public Member Functions inherited from Sensor< float >
 Sensor ()=default
 
 Sensor (Sensor &&)=default
 
 Sensor (const Sensor &)=default
 
Sensoroperator= (Sensor &&)=default
 
Sensoroperator= (const Sensor &)=default
 
virtual ~Sensor ()
 
SensorName get_Name ()
 

Private Attributes

Arduino_Deviceadev_
 
Vec2< float > outliers_
 
float last_data_
 

Additional Inherited Members

- Protected Attributes inherited from Sensor< float >
SensorName name_
 

Constructor & Destructor Documentation

◆ Lidar() [1/4]

Lidar::Lidar ( )
default

◆ Lidar() [2/4]

Lidar::Lidar ( Lidar &&  )
default

◆ Lidar() [3/4]

Lidar::Lidar ( const Lidar )
default

◆ ~Lidar()

Lidar::~Lidar ( )
inline

◆ Lidar() [4/4]

Lidar::Lidar ( Arduino_Device adev,
SensorName  name 
)
inline

Member Function Documentation

◆ available()

bool Lidar::available ( )
overridevirtual

Implements Sensor< float >.

Here is the call graph for this function:

◆ denit()

void Lidar::denit ( )
overridevirtual

Implements Sensor< float >.

◆ init()

int Lidar::init ( )
overridevirtual

Implements Sensor< float >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

Lidar& Lidar::operator= ( Lidar &&  )
default

◆ operator=() [2/2]

Lidar& Lidar::operator= ( const Lidar )
default

◆ read()

float Lidar::read ( )
overridevirtual

Implements Sensor< float >.

Here is the call graph for this function:

◆ set_Outliers()

void Lidar::set_Outliers ( Vec2< float >  out)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ adev_

Arduino_Device* Lidar::adev_
private

◆ last_data_

float Lidar::last_data_
private

◆ outliers_

Vec2<float> Lidar::outliers_
private

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