gyroscope_calibration¶
Source code: gyroscope_calibration.py
A factory test for gyroscopes calibration.
Description¶
This is a calibration test for tri-axis (x, y, and z) gyroscopes.
Test Procedure¶
Put the device (base/lid) on a static plane then press space.
Wait for completion.
Dependency¶
Device API (
cros.factory.device.gyroscope
).
Examples¶
To run calibration on base gyroscope:
{
"pytest_name": "gyroscope_calibration",
"args": {
"location": "base"
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
capture_count |
int |
(optional; default: |
gyro_id |
int, None |
(optional; default: |
freq |
int, None |
(optional; default: |
sample_rate |
int |
(optional; default: |
setup_time_secs |
int |
(optional; default: |
autostart |
bool |
(optional; default: |
setup_sensor |
bool |
(optional; default: |
location |
[‘base’, ‘lid’] |
(optional; default: |