| CPC G01B 21/22 (2013.01) [H04M 1/0214 (2013.01); H04M 1/0268 (2013.01)] | 20 Claims |

|
1. A method for determining a foldable screen included angle, applied to an electronic device with a foldable screen, wherein the foldable screen comprises two display screens, and each display screen comprises an acceleration sensor and a gyroscope sensor, the method comprising:
acquiring, by the acceleration sensor of each display screen, an initial acceleration signal at time t;
acquiring, by the gyroscope sensor of each display screen, an initial angular velocity signal at time t;
performing first preprocessing on the initial acceleration signal at time t for each display screen to determine a target value of a gravitational acceleration signal at time t for each display screen;
performing second preprocessing on the initial angular velocity signal at time t for each display screen to determine an intermediate angular velocity signal at time t for each display screen;
determining a state of the foldable screen at time t according to the target values of the gravitational acceleration signals for the two display screens at time t and the intermediate angular velocity signals for the two display screens at time t, wherein the state of the foldable screen comprises at least one of: the foldable screen being perpendicular to a horizontal plane; the two display screens of the foldable screen being folded, bent, or unfolded; an included angle of the foldable screen at time t changing relative to an included angle at time t−1; and the included angle of the foldable screen at time t not changing relative to the included angle at time t−1; and
determining the included angle of the foldable screen at time t according to the state of the foldable screen at time t.
|