generic_ec_component_accel¶
Predefined ec_component_accel tests. ec_component_accel is called “Accelerometer/IMU” in AVL.
Inherit¶
Accelerometers¶
pytest_name¶
AccelerometersCalibration¶
pytest_name¶
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¶
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¶
args¶
location
"base"
BaseAccelerometersCalibration¶
run_if¶
not constants.has_device_data or device.component.has_base_accelerometer
pytest_name¶
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¶
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¶
args¶
rotation_threshold
90
stop_threshold
0.1
GyroscopeCalibration¶
run_if¶
not constants.has_device_data or device.component.has_base_gyroscope
pytest_name¶
LidAccelerometers¶
run_if¶
not constants.has_device_data or device.component.has_lid_accelerometer
pytest_name¶
args¶
location
"lid"
LidAccelerometersCalibration¶
run_if¶
not constants.has_device_data or device.component.has_lid_accelerometer
pytest_name¶
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¶
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¶
args¶
timeout_secs
3600
prompt_flip_tablet
true
prompt_flip_notebook
false
lid_filter
"cros_ec_buttons"
TabletRotation¶
pytest_name¶
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¶
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¶
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¶
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