示例#1
0
def test_yaw_cw():
    _test_rotation(direction=directions.CLOCKWISE,
                   axis=directions.YAW,
                   expected_orientation={directions.YAW: 0.01})
示例#2
0
def test_pitch_ccw():
    _test_rotation(direction=directions.COUNTER_CLOCKWISE,
                   axis=directions.PITCH,
                   expected_orientation={directions.PITCH: -0.01})
示例#3
0
def test_roll_ccw():
    _test_rotation(direction=directions.COUNTER_CLOCKWISE,
                   axis=directions.ROLL,
                   expected_orientation={directions.ROLL: -0.01})
示例#4
0
def test_yaw_cw():
    _test_rotation(direction=directions.CLOCKWISE,
                   axis=directions.YAW,
                   expected_orientation={directions.YAW: 7.5},
                   keep_mass=False)
示例#5
0
def test_pitch_ccw():
    _test_rotation(direction=directions.COUNTER_CLOCKWISE,
                   axis=directions.PITCH,
                   expected_orientation={directions.PITCH: -7.5},
                   keep_mass=False)
示例#6
0
def test_roll_ccw():
    _test_rotation(direction=directions.COUNTER_CLOCKWISE,
                   axis=directions.ROLL,
                   expected_orientation={directions.ROLL: -7.5},
                   keep_mass=False)