def get_vector(self, l_motor: float, r_motor: float) -> typing.Tuple[float, float]:
        """
            Given motor values, retrieves the vector of (distance, speed) for your robot
        
            :param l_motor:    Left motor value (-1 to 1); -1 is forward
            :param r_motor:    Right motor value (-1 to 1); 1 is forward

            :returns: speed of robot (ft/s), clockwise rotation of robot (radians/s)
        """
        if self.deadzone:
            l_motor = self.deadzone(l_motor)
            r_motor = self.deadzone(r_motor)

        l = -l_motor * self.speed
        r = r_motor * self.speed

        # Motion equations
        fwd = (l + r) * 0.5
        rcw = (l - r) / float(self.x_wheelbase)

        self.l_speed = l
        self.r_speed = r
        return fwd, rcw
def get_vector ( self , l_motor : float , r_motor : float ) -> typing . Tuple [ float , float ] : if self . deadzone : l_motor = self . deadzone ( l_motor ) r_motor = self . deadzone ( r_motor ) l = - l_motor * self . speed r = r_motor * self . speed fwd = ( l + r ) * 0.5 rcw = ( l - r ) / float ( self . x_wheelbase ) self . l_speed = l self . r_speed = r return fwd , rcw
Given motor values, retrieves the vector of (distance, speed) for your robot
        
            :param l_motor:    Left motor value (-1 to 1); -1 is forward
            :param r_motor:    Right motor value (-1 to 1); 1 is forward

            :returns: speed of robot (ft/s), clockwise rotation of robot (radians/s)