3#include <NDEVR/Device.h>
7 class DesignObjectLookup;
10 class TemperatureSensor;
62 virtual bool isInUse()
const {
return m_is_in_use; }
77 fltp08 m_new_deployment_offset = 0.0;
81 bool m_delete_encoder_readings =
false;
82 bool m_is_in_use =
true;
A device which has an accociated voltage or percent that changes. Can have set upper and lower limits...
Definition Battery.h:83
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
A root class which describes some physical object, such as a Motor, Sensor, or Connection....
Definition Device.h:52
A distance encoder is a device that measures distance by generating pulses in response to an object's...
Definition DistanceEncoder.h:36
virtual void setBattery(Battery *battery)
Definition DistanceEncoder.h:58
virtual fltp08 length() const
virtual void setLocation(const Vertex< 3, fltp08 > &location)
virtual void startNewDeployment()
Bounds< 1, fltp08 > m_bounds
Definition DistanceEncoder.h:70
virtual void updateModel()
virtual void setDistanceBounds(const Bounds< 1, fltp08 > &bounds)
Definition DistanceEncoder.h:42
static void SetPrimaryDistanceEncoderCallback(const std::function< DistanceEncoder *()> &encoder)
virtual void setCanDeleteReadings(bool can_delete)
Definition DistanceEncoder.h:56
virtual fltp08 scale() const
Definition DistanceEncoder.h:48
virtual void setNewDeploymentOffset(fltp08 offset)
Definition DistanceEncoder.h:59
virtual bool isInUse() const
Definition DistanceEncoder.h:62
virtual TemperatureSensor * temperatureSensor() const
Definition DistanceEncoder.h:60
virtual void setRawLength(fltp08 length)
static DistanceEncoder * PrimaryDistanceEncoder()
virtual void setSpeed(fltp08 speed)
Definition DistanceEncoder.h:41
virtual Battery * battery() const
Definition DistanceEncoder.h:57
virtual fltp08 rawLength() const
Definition DistanceEncoder.h:47
virtual void setRawLengthEpsilon(fltp08 epsilon)
Definition DistanceEncoder.h:39
fltp08 preferredSegmentLength() const
virtual void setInUse(bool is_in_use)
virtual void setDeploymentInfo(const DeploymentInfo &info)
virtual void setTemperatureSensor(TemperatureSensor *battery)
Definition DistanceEncoder.h:61
DeploymentInfo m_deployment_info
Definition DistanceEncoder.h:71
virtual void clearDeploymentInfo()
virtual void calibrateToLength(fltp08 length)
virtual void setOffset(fltp08 offset)
virtual void setScale(fltp08 scale)
DistanceEncoder(const Model &model, ProgressInfo *log=nullptr, QObject *parent=nullptr)
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
A position sensor is a Device that determines the position of Hardware. This device might be a GPS or...
Definition PositionSensor.h:53
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
A Device responsible for determining the temperature of either the environment or a specific componen...
Definition TemperatureSensor.h:41
A vertex or point. A specific type of Vector used primarily for spacial location information.
Definition Vertex.hpp:48
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Definition DistanceEncoder.h:12
bool active
Definition DistanceEncoder.h:16
fltp08 deployment_segment_length
Definition DistanceEncoder.h:15
PositionSensor * sensor
Definition DistanceEncoder.h:14
DesignObjectLookup * manager
Definition DistanceEncoder.h:13