focus_drive_pars
offset, scale, timeout, max_try, tolerance
Configure the servo parameters of one or more telescope axes.
Double offset
Double scale
Double timeout
Count max_try
Double tolerance
focus_tolerance
command.
focus_drive_pars 123.99, -46.78, 0:2:0, 4, 0.5In the above example, the first two arguments tell the control system how to read the current focus position. Specifically it tells it that when the position resolver reads
V
volts, the focus position is (123.99-46.78*V) millimeters.
The 3rd argument tells the control system to give up trying to home in on a specified focus position if this takes more than 2 minutes, and the 4th arguments tells it to give up if it has to reverse direction and try again, more than 4 times.
The final argument tells the control system that when asked to go to a given focus position, it should only attempt to get within 0.5mm of that position.
focus_drive_pars
command, such that when the
position resolver reads V
volts, the position, in
millimeters, is given by:
focus position = offset + scale x V
When asked to move the feed to a given focus position, the control system tells the motor to move the feed towards that position, until the position resolver indicates that the feed is within a specified precision of the desired position. However since the control system only reads the resolver once per servo update, the positioner can overshoot the desired position. When this happens, the control system reverses the direction of motion and tries again in the opposite direction.
If the requested positioning precision is too fine, or the
desired position is beyond the limits that the positioner can
reach, then the positioning operation needs to be timed out. The
timeout
and max_try
arguments of
the focus_drive_pars
command determine when this
happens. Specifically, if the positioner reverses direction more
than max_try
times, or takes more
than timeout
seconds to reach the desired position,
then the operation is aborted.