startracker.py
def winner_attitude(w):
    """Find attitude of winning match."""
    # w=self.last_match.match.winner
    eci2body = np.array(
        [[1, 0, 0],
         [0, 1, 0],
         [0, 0, 1]],
        dtype=float)
    eci2body[0, 0] = w.R11
    eci2body[0, 1] = w.R12
    eci2body[0, 2] = w.R13
    eci2body[1, 0] = w.R21
    eci2body[1, 1] = w.R22
    eci2body[1, 2] = w.R23
    eci2body[2, 0] = w.R31
    eci2body[2, 1] = w.R32
    eci2body[2, 2] = w.R33
    return np.transpose(eci2body)
Find attitude of winning match.
Find attitude of winning match.
Find attitude of winning match .
def winner_attitude(w):
    eci2body = np.array(
        [[1, 0, 0],
         [0, 1, 0],
         [0, 0, 1]],
        dtype=float)
    eci2body[0, 0] = w.R11
    eci2body[0, 1] = w.R12
    eci2body[0, 2] = w.R13
    eci2body[1, 0] = w.R21
    eci2body[1, 1] = w.R22
    eci2body[1, 2] = w.R23
    eci2body[2, 0] = w.R31
    eci2body[2, 1] = w.R32
    eci2body[2, 2] = w.R33
    return np.transpose(eci2body)
def winner_attitude ( w ) : eci2body = np . array ( [ [ 1 , 0 , 0 ] , [ 0 , 1 , 0 ] , [ 0 , 0 , 1 ] ] , dtype = float ) eci2body [ 0 , 0 ] = w . R11 eci2body [ 0 , 1 ] = w . R12 eci2body [ 0 , 2 ] = w . R13 eci2body [ 1 , 0 ] = w . R21 eci2body [ 1 , 1 ] = w . R22 eci2body [ 1 , 2 ] = w . R23 eci2body [ 2 , 0 ] = w . R31 eci2body [ 2 , 1 ] = w . R32 eci2body [ 2 , 2 ] = w . R33 return np . transpose ( eci2body )
Find attitude of winning match.
Find attitude of winning match .
"""Find attitude of winning match.""" # w=self.last_match.match.winner
w