3#include <NDEVR/Device.h>
7 class DesignObjectLookup;
10 class TemperatureSensor;
24 virtual void clearDeploymentInfo();
27 virtual void setRawLength(
fltp08 length);
29 virtual void startNewDeployment();
30 virtual void updateModel();
33 virtual fltp08 length()
const;
34 virtual void zeroRaw();
35 fltp08 preferredSegmentLength()
const;
36 virtual void calibrateToLength(
fltp08 length);
37 virtual void setScale(
fltp08 scale);
38 virtual void setOffset(
fltp08 offset);
46 virtual bool isInUse()
const {
return m_is_in_use; }
47 virtual void setInUse(
bool is_in_use);
50 static void SetPrimaryDistanceEncoderCallback(
const std::function<
DistanceEncoder*()>& encoder);
61 fltp08 m_new_deployment_offset = 0.0;
65 bool m_delete_encoder_readings =
false;
66 bool m_is_in_use =
true;
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:57
Definition DesignObjectLookup.h:61
Definition DistanceEncoder.h:20
virtual void setBattery(Battery *battery)
Definition DistanceEncoder.h:42
Bounds< 1, fltp08 > m_bounds
Definition DistanceEncoder.h:54
virtual void setDistanceBounds(const Bounds< 1, fltp08 > &bounds)
Definition DistanceEncoder.h:26
virtual void setCanDeleteReadings(bool can_delete)
Definition DistanceEncoder.h:40
virtual fltp08 scale() const
Definition DistanceEncoder.h:32
virtual void setNewDeploymentOffset(fltp08 offset)
Definition DistanceEncoder.h:43
virtual bool isInUse() const
Definition DistanceEncoder.h:46
virtual TemperatureSensor * temperatureSensor() const
Definition DistanceEncoder.h:44
virtual void setSpeed(fltp08 speed)
Definition DistanceEncoder.h:25
virtual Battery * battery() const
Definition DistanceEncoder.h:41
virtual fltp08 rawLength() const
Definition DistanceEncoder.h:31
virtual void setRawLengthEpsilon(fltp08 epsilon)
Definition DistanceEncoder.h:23
virtual void setTemperatureSensor(TemperatureSensor *battery)
Definition DistanceEncoder.h:45
DeploymentInfo m_deployment_info
Definition DistanceEncoder.h:55
Definition PositionSensor.h:50
Definition ProgressInfo.hpp:43
Definition TemperatureSensor.h:37
A vertex.
Definition Vertex.hpp:54
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
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