PointToPointActuator¶
- class lsst.ts.simactuators.PointToPointActuator(min_position: float, max_position: float, speed: float, start_position: Optional[float] = None)¶
Bases:
BasePointToPointActuator
Simulated actuator that moves to a specified position at constant velocity and halts.
- Parameters
- Raises
- ValueError
If speed <= 0, min_position >= max_position, start_position`` is not None and start_position < min_position or start_position > max_position.
Attributes Summary
Direction of current or most recent move, as a
lsst.ts.simactuators.Direction
enum value.Ending position of move.
TAI date at end of move, unix seconds.
Starting position of move.
TAI date at start of move move recent move.
Methods Summary
moving
([tai])Is the axis moving? False before and after the move.
position
([tai])Actual position.
remaining_time
([tai])Remaining time for the move (seconds); 0 after the move.
set_position
(position[, start_tai])Set a new target position and return the move duration.
stop
([tai])Stop motion instantly.
velocity
([tai])Actual velocity.
Attributes Documentation
- direction¶
Direction of current or most recent move, as a
lsst.ts.simactuators.Direction
enum value.lsst.ts.simactuators.Direction.NEGATIVE
if moving or moved in the negative direction,lsst.ts.simactuators.Direction.POSTIVE
otherwise, including for a null movement or if never moved.
- end_position¶
Ending position of move.
- end_tai¶
TAI date at end of move, unix seconds.
- start_position¶
Starting position of move.
- start_tai¶
TAI date at start of move move recent move.
Methods Documentation
- remaining_time(tai: Optional[float] = None) float ¶
Remaining time for the move (seconds); 0 after the move.
- set_position(position: float, start_tai: Optional[float] = None) float ¶
Set a new target position and return the move duration.