Class blmc_drivers::AnalogSensor

class AnalogSensor : public blmc_drivers::AnalogSensorInterface, public blmc_drivers::AnalogSensorInterface

AnalogSensor class is the implementation of the above interface.

Public Functions

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

Construct a new AnalogSensor object.

Parameters:
  • board – is a motor board which gives access to the motor sensors (position, velocity, current, etc) and to the motor cotrols.

  • sensor_id – is the id of the sensor on the control board

virtual std::shared_ptr<const ScalarTimeseries> get_measurement() const

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

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

Construct a new AnalogSensor object.

Parameters:
  • board – is a motor board which gives access to the motor sensors (position, velocity, current, etc) and to the motor cotrols.

  • sensor_id – is the id of the sensor on the control board

virtual std::shared_ptr<const ScalarTimeseries> get_measurement() const

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