
public class MotorEncoderSimulator extends Object implements Function<MotorPosition,BladePosition>
At present this just takes the relative position and time, adding a random truncated
Gaussian jitter of standard deviation 0.0001 to the relative position. (see BladePosition).
The absolute position, which uses actual length units, is set to zero.
| Modifier and Type | Field and Description |
|---|---|
static double |
JITTER_STDDEV
The standard deviation of the jitter added to the relative position.
|
static double |
MAX_JITTER
The maximum permitted absolute value of the added jitter, i.e., where we
cut off the tails of the Gaussian.
|
| Constructor and Description |
|---|
MotorEncoderSimulator() |
| Modifier and Type | Method and Description |
|---|---|
BladePosition |
apply(MotorPosition p) |
public static final double JITTER_STDDEV
public static final double MAX_JITTER
public BladePosition apply(MotorPosition p)
apply in interface Function<MotorPosition,BladePosition>Copyright © 2016 LSST. All rights reserved.