def set_pos_wmediumd(self, pos): "Set Position for wmediumd" if self.lastpos != pos: self.lastpos = pos for wmIface in self.wmIfaces: inc = '%s' % float('0.' + str(self.wmIfaces.index(wmIface))) w_server.update_pos(w_pos(wmIface, [(float(pos[0])+float(inc)), float(pos[1]), float(pos[2])]))
def set_pos_wmediumd(self, pos): "Set Position for wmediumd" if self.lastpos != pos: self.lastpos = pos for id, wmIface in enumerate(self.wmIfaces): w_server.update_pos( w_pos(wmIface, [(float(pos[0]) + id), float(pos[1]), float(pos[2])]))