(self, new_co_ords)
return x_y, theta%360
offset coordinates according to mapSize settings, with 0,0 as center
offset coordinates according to mapSize settings, with 0,0 as center
offset coordinates according to mapSize settings with 0 0 as center
def offset_coordinates(self, new_co_ords):
        '''
        offset coordinates according to mapSize settings, with 0,0 as center
        ''' 
        if new_co_ords is None: new_co_ords = self.zero_coords()
        x_y = (new_co_ords["x"] + self.mapSize[0] // 2 + self.mapSize[2],
               new_co_ords["y"] + self.mapSize[1] // 2 + self.mapSize[3])

        theta = int(new_co_ords["theta"] - 90 + self.roomba_angle)
        self.old_x_y = x_y  #save co-ordinates
        
        return x_y, theta%360
def offset_coordinates ( self , new_co_ords ) : if new_co_ords is None : new_co_ords = self . zero_coords ( ) x_y = ( new_co_ords [ "x" ] + self . mapSize [ 0 ] // 2 + self . mapSize [ 2 ] , new_co_ords [ "y" ] + self . mapSize [ 1 ] // 2 + self . mapSize [ 3 ] ) theta = int ( new_co_ords [ "theta" ] - 90 + self . roomba_angle ) self . old_x_y = x_y #save co-ordinates return x_y , theta % 360