Exit camming

If you don't need camming anymore, use AbortCommand to abort SetAxisCam.

In Cam.cpp, add the following code:

Copy
VOID RemoveCamSlave(KsCommandStatus cam)
{
    RtPrintf("Exit camming.\n\n");

    //Remove the cam.
    KsCommandStatus abort = AbortCommand(cam);
    if (abort.Error)
        RtPrintf("The command has not been aborted: %d\n\n", abort.ErrorId);

    else if (abort.CommandAborted)
        RtPrintf("The command has been aborted.\n\n");
}