AHP® GT Controllers API
AHP GT Controllers
Modules | Functions
Movement control

Modules

 Astronomy specific
 

Functions

DLL_EXPORT SkywatcherAxisStatus ahp_gt_get_status (int axis)
 Get an axis status. More...
 
DLL_EXPORT double ahp_gt_get_position (int axis, double *timestamp)
 Get the axis position. More...
 
DLL_EXPORT void ahp_gt_set_position (int axis, double value)
 Set the axis position in radians. More...
 
DLL_EXPORT int ahp_gt_is_axis_moving (int axis)
 Determine if an axis is moving. More...
 
DLL_EXPORT void ahp_gt_stop_motion (int axis, int wait)
 Stop an axis motion. More...
 
DLL_EXPORT void ahp_gt_start_motion (int axis, double speed)
 Move an axis. More...
 
DLL_EXPORT void ahp_gt_goto_relative (int axis, double increment, double speed)
 Move an axis by an offset. More...
 
DLL_EXPORT void ahp_gt_goto_absolute (int axis, double target, double speed)
 Move an axis to a position. More...
 

Detailed Description

Function Documentation

◆ ahp_gt_get_position()

DLL_EXPORT double ahp_gt_get_position ( int  axis,
double *  timestamp 
)
Parameters
axisThe motor to query
timestampThe timestamp of the response
Returns
The position of the specified axis in radians

◆ ahp_gt_get_status()

DLL_EXPORT SkywatcherAxisStatus ahp_gt_get_status ( int  axis)
Parameters
axisThe motor to query
Returns
The current SkywatcherAxisStatus of this axis

◆ ahp_gt_goto_absolute()

DLL_EXPORT void ahp_gt_goto_absolute ( int  axis,
double  target,
double  speed 
)
Parameters
axisThe motor to move
targetThe position to reach by the specified axis in radians
speedThe radial speed in radians per second

◆ ahp_gt_goto_relative()

DLL_EXPORT void ahp_gt_goto_relative ( int  axis,
double  increment,
double  speed 
)
Parameters
axisThe motor to move
incrementThe position offset to cover by the specified axis in radians
speedThe radial speed in radians per second

◆ ahp_gt_is_axis_moving()

DLL_EXPORT int ahp_gt_is_axis_moving ( int  axis)
Parameters
axisThe motor to query
Returns
1 if the axis is in motion, 0 if it's stopped

◆ ahp_gt_set_position()

DLL_EXPORT void ahp_gt_set_position ( int  axis,
double  value 
)
Parameters
axisThe motor to configure
valueThe position to set on the specified axis in radians

◆ ahp_gt_start_motion()

DLL_EXPORT void ahp_gt_start_motion ( int  axis,
double  speed 
)
Parameters
axisThe motor to move
speedThe radial speed in radians per second

◆ ahp_gt_stop_motion()

DLL_EXPORT void ahp_gt_stop_motion ( int  axis,
int  wait 
)
Parameters
axisThe motor to stop
waitIf 1 this function will block until the axis stops completely, 0 code flow will continue