generic_ec_component_accel ========================== Predefined ec_component_accel tests. ec_component_accel is called "Accelerometer/IMU" in AVL. Inherit ------- - :doc:`generic_common.test_list ` Accelerometers -------------- pytest_name ``````````` :doc:`accelerometers <../pytests/accelerometers>` AccelerometersCalibration ------------------------- pytest_name ``````````` :doc:`accelerometers_calibration <../pytests/accelerometers_calibration>` args ```` ``orientation`` :: { "in_accel_x": 0, "in_accel_y": 0, "in_accel_z": 1 } ``spec_offset`` :: [ 0.5, 0.5 ] AccelerometersLidAngle ---------------------- run_if `````` :: not constants.has_device_data or (device.component.has_lid_accelerometer and device.component.has_base_accelerometer) pytest_name ``````````` :doc:`accelerometers_lid_angle <../pytests/accelerometers_lid_angle>` args ```` ``angle`` :: 180 ``tolerance`` :: 5 ``spec_offset`` :: [ 0.5, 0.5 ] BaseAccelerometers ------------------ run_if `````` :: not constants.has_device_data or device.component.has_base_accelerometer pytest_name ``````````` :doc:`accelerometers <../pytests/accelerometers>` args ```` ``location`` :: "base" BaseAccelerometersCalibration ----------------------------- run_if `````` :: not constants.has_device_data or device.component.has_base_accelerometer pytest_name ``````````` :doc:`accelerometers_calibration <../pytests/accelerometers_calibration>` args ```` ``orientation`` :: { "in_accel_x": 0, "in_accel_y": 0, "in_accel_z": 1 } ``spec_offset`` :: [ 0.5, 0.5 ] ``location`` :: "base" Gyroscope --------- run_if `````` :: not constants.has_device_data or device.component.has_base_gyroscope pytest_name ``````````` :doc:`gyroscope <../pytests/gyroscope>` args ```` ``rotation_threshold`` :: 1.0 ``stop_threshold`` :: 0.1 GyroscopeAngle -------------- run_if `````` :: not constants.has_device_data or device.component.has_base_gyroscope pytest_name ``````````` :doc:`gyroscope_angle <../pytests/gyroscope_angle>` args ```` ``rotation_threshold`` :: 90 ``stop_threshold`` :: 0.1 GyroscopeCalibration -------------------- run_if `````` :: not constants.has_device_data or device.component.has_base_gyroscope pytest_name ``````````` :doc:`gyroscope_calibration <../pytests/gyroscope_calibration>` LidAccelerometers ----------------- run_if `````` :: not constants.has_device_data or device.component.has_lid_accelerometer pytest_name ``````````` :doc:`accelerometers <../pytests/accelerometers>` args ```` ``location`` :: "lid" LidAccelerometersCalibration ---------------------------- run_if `````` :: not constants.has_device_data or device.component.has_lid_accelerometer pytest_name ``````````` :doc:`accelerometers_calibration <../pytests/accelerometers_calibration>` args ```` ``orientation`` :: { "in_accel_x": 0, "in_accel_y": 0, "in_accel_z": 1 } ``spec_offset`` :: [ 0.5, 0.5 ] ``location`` :: "lid" NotebookMode ------------ run_if `````` :: not constants.has_device_data or device.component.has_tabletmode pytest_name ``````````` :doc:`tablet_mode <../pytests/tablet_mode>` args ```` ``timeout_secs`` :: 3600 ``prompt_flip_tablet`` :: false ``prompt_flip_notebook`` :: true ``lid_filter`` :: "cros_ec_buttons" TabletMode ---------- run_if `````` :: not constants.has_device_data or device.component.has_tabletmode pytest_name ``````````` :doc:`tablet_mode <../pytests/tablet_mode>` args ```` ``timeout_secs`` :: 3600 ``prompt_flip_tablet`` :: true ``prompt_flip_notebook`` :: false ``lid_filter`` :: "cros_ec_buttons" TabletRotation -------------- pytest_name ``````````` :doc:`tablet_rotation <../pytests/tablet_rotation>` args ```` ``spec_offset`` :: [ 1.5, 1.5 ] ``timeout_secs`` :: 3600 TabletRotationAll ----------------- run_if `````` :: not constants.has_device_data or (device.component.has_base_accelerometer and device.component.has_lid_accelerometer) pytest_name ``````````` :doc:`tablet_rotation <../pytests/tablet_rotation>` args ```` ``spec_offset`` :: [ 1.5, 1.5 ] ``timeout_secs`` :: 3600 ``degrees_to_orientations`` :: { "base": { "0": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } }, "lid": { "0": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } } } TabletRotationBase ------------------ run_if `````` :: constants.has_device_data and device.component.has_base_accelerometer and not device.component.has_lid_accelerometer pytest_name ``````````` :doc:`tablet_rotation <../pytests/tablet_rotation>` args ```` ``spec_offset`` :: [ 1.5, 1.5 ] ``timeout_secs`` :: 3600 ``degrees_to_orientations`` :: { "base": { "0": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } } } TabletRotationLid ----------------- run_if `````` :: constants.has_device_data and not device.component.has_base_accelerometer and device.component.has_lid_accelerometer pytest_name ``````````` :doc:`tablet_rotation <../pytests/tablet_rotation>` args ```` ``spec_offset`` :: [ 1.5, 1.5 ] ``timeout_secs`` :: 3600 ``degrees_to_orientations`` :: { "lid": { "0": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } } } ScreenRotation -------------- run_if `````` :: not constants.has_device_data or device.component.has_tabletmode Serial subtests ``````````````` - `TabletMode`_ - `TabletRotationAll`_ - `TabletRotationBase`_ - `TabletRotationLid`_ - `NotebookMode`_