Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

int HAMLIB_API rot_move ( ROT rot,
int  direction,
int  speed 

move the rotator in the specified direction

rot The rot handle
direction Direction of movement
speed Speed of movement
Move the rotator in the specified direction. The speed is a value between 1 and 100.

Definition at line 682 of file rotator.c.

References rot::caps, rot_caps::move, RIG_EINVAL, and RIG_ENAVAIL.

        const struct rot_caps *caps;

        if (CHECK_ROT_ARG(rot))
            return -RIG_EINVAL;

        caps = rot->caps;

        if (caps->move == NULL)
            return -RIG_ENAVAIL;

        return caps->move(rot, direction, speed);

Generated by  Doxygen 1.6.0   Back to index