blmc_drivers
blmc_drivers::AnalogSensor Class Reference

AnalogSensor class is the implementation of the above interface. More...

#include <analog_sensor.hpp>

Inheritance diagram for blmc_drivers::AnalogSensor:
Collaboration diagram for blmc_drivers::AnalogSensor:

Public Member Functions

 AnalogSensor (std::shared_ptr< MotorBoardInterface > board, bool sensor_id)
 Construct a new AnalogSensor object. More...
 
virtual std::shared_ptr< const ScalarTimeseriesget_measurement () const
 Get the measurement object which is the list of time stamped data. More...
 
- Public Member Functions inherited from blmc_drivers::AnalogSensorInterface
virtual ~AnalogSensorInterface ()
 Destroy the AnalogSensorInterface object. More...
 

Private Attributes

std::shared_ptr< MotorBoardInterfaceboard_
 board_ is the measurement object, it caontains the list of the timed stamped data
 
size_t sensor_id_
 sensor_id_ is the identification number of the sensor on the control board, for now it is either 0 or 1
 

Additional Inherited Members

- Public Types inherited from blmc_drivers::AnalogSensorInterface
typedef real_time_tools::ThreadsafeTimeseries< double > ScalarTimeseries
 This is just a short cut for the time series types.
 

Detailed Description

AnalogSensor class is the implementation of the above interface.

Constructor & Destructor Documentation

◆ AnalogSensor()

blmc_drivers::AnalogSensor::AnalogSensor ( std::shared_ptr< MotorBoardInterface board,
bool  sensor_id 
)

Construct a new AnalogSensor object.

Parameters
boardis a motor board which gives access to the motor sensors (position, velocity, current, etc) and to the motor cotrols.
sensor_idis the id of the sensor on the control board

Member Function Documentation

◆ get_measurement()

std::shared_ptr< const AnalogSensorInterface::ScalarTimeseries > blmc_drivers::AnalogSensor::get_measurement ( ) const
virtual

Get the measurement object which is the list of time stamped data.

Returns
std::shared_ptr<const ScalarTimeseries> which is a pointer to the a list of time stamped data

Implements blmc_drivers::AnalogSensorInterface.


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