Files
sics/doc/programmer/drive.tex

23 lines
1.3 KiB
TeX

\subsection{The Drive and Run Command}
This command implements driving of real motors or virtual motors (variables
which control multiple motors). The drive command has no associated data
structure going with it. There are just a few function:
\begin{description}
\item[int Drive(SConnection *pCon,SicsInterp *pSics, char *name, float
fNew)] drives motor name to fNew and waits for the motor to finish. Possible
errors will be written to the connection object pCon.
\item[int Start2Run(SConnection *pCon, SicsInterp *pSics, char *name, float
fNew)] starts the motor name to run to fNew. This
function will NOT wait for the motor to get there. In spite of this,
possible errors will be printed to the connection object pCon.
\item[int DriveWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[])] the object wrapper
function for the drive command.
\item[int RunWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[])] the object wrapper
function for the run command.
\item[int MakeDrive(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[])]
The factory command which installs the drive and run commands into SICS.
\end{description}