'Go to 0 position. If waitArrival is True, funtion waits until reset is compete to return'

def homeReset(self, speed=None, waitArrival=True):

    if (speed == None):
        speed = self.speed
        if (speed == None):
            raise _RepRapError('Axis    speed    not    set')
    if ((speed >= 0) and (speed <= 255)):
        p = snap.Packet(self.address, snap.localAddress, 0, 1, [CMD_HOMERESET, int(speed)])
        p.send()
        if waitArrival:
            notif = p.getReply()
            if (not (notif.dataBytes[0] == CMD_HOMERESET)):
                raise _RepRapError('Expected    home    reset    notification')
    else:
        raise _RepRapError('Invalid    speed    value')
