Ejemplo n.º 1
0
    def ismoving(self, axis_list=None):
        """Returns true if at least one axis is moving"""

        # Get all axis status
        stats = self.status(axis_list)

        # Check each axis
        for axis in stats:
            if libaxis.status_ismoving(stats[axis]):
                return True

        # None axis is moving
        return False
Ejemplo n.º 2
0
    def status(self):
        """
        Returns an IcePAP status bitmask

        There is no command to get a parameter status
        therefore emulate the bitmask from all axes bitmaks.
        """
        ret  = 0
        stats = self._group.status()
        for axis in stats:
            stat = stats[axis]
            ret  = libaxis.status_set_ismoving(
                ret, libaxis.status_ismoving(stat))
            ret  = libaxis.status_set_isready(
                ret, libaxis.status_isready(stat))

        # Return a unique status value
        return ret
Ejemplo n.º 3
0
 def ismoving(self):
     """Returns true if at least one axis is moving"""
     return libaxis.status_ismoving(self.status())