Motion time calculation method, device and apparatus, and computer-readable storage medium
AssigneeGoertek Inc.
InventorMingming WANG
Life of this patent
Estimating the term…
Abstract
A motion time calculation method, device and apparatus and a computer-readable storage medium are disclosed, the motion time calculation method comprises: acquiring a motion flag corresponding to a first preset time period, wherein the motion flag comprises a first motion flag and a second motion flag; if motion flags corresponding to two consecutive first preset time periods are first motion flags, entering a motion mode; after entering the motion mode, if motion flags corresponding to three consecutive first preset time periods are second motion flags, exiting the motion mode; and counting a time from entering the motion mode to exiting the motion mode into a motion time. Thus, more accurate calculation of the motion time is achieved.
Claims10
A motion time calculation method comprising the following steps:
- acquiring a motion flag corresponding to a first preset time period, wherein the motion flag comprises a first motion flag and a second motion flag;
- if motion flags corresponding to two consecutive first preset time periods are first motion flags, entering a motion mode;
- after entering the motion mode, if motion flags corresponding to three consecutive first preset time periods are second motion flags, exiting the motion mode;
- and
- counting a time from entering the motion mode to exiting the motion mode into a motion time.
A motion time calculation device, wherein the motion time calculation device comprises:
- a motion flag acquisition module, configured to acquire a motion flag corresponding to a first preset time period, wherein the motion flag comprises a first motion flag and a second motion flag;
- a motion mode entering module, configured to drive the device to enter a motion mode if motion flags corresponding to two consecutive first preset time periods are first motion flags;
- a motion mode exiting module, configured to drive the device to exit the motion mode if motion flags corresponding to three consecutive first preset time periods are second motion flags after entering the motion mode;
- and
- a motion time calculation module, configured to count a time from entering the motion mode to exiting the motion mode into a motion time.
Dependencies are inferred from the claim text.