| CPC G01P 15/16 (2013.01) | 20 Claims |

|
1. A sensor data processing method, applied to an electronic device, wherein the sensor data processing method comprises:
obtaining a group of raw sensor data, wherein raw sensor data in the group of raw sensor data is sensor data that is output, based on an actual output data rate (ODR), by a sensor; and
obtaining a group of target sensor data through calculation based on the group of raw sensor data, a target ODR, and the actual ODR, wherein target sensor data of the group of target sensor data is estimated sensor data that is output, based on the target ODR, by the sensor, and the target sensor data is used to implement a function of an application, and wherein obtaining the group of target sensor data through calculation based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
obtaining the group of target sensor data using an interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR, and wherein obtaining the group of target sensor data by using the interpolation algorithm based on the group of raw sensor data, the target ODR, and the actual ODR comprises:
obtaining a total quantity of data entries in the group of target sensor data through calculation based on a time length of the group of raw sensor data and the target ODR, wherein the time length of the group of raw sensor data is a ratio of a total quantity of data entries in the group of raw sensor data to the actual ODR; and
obtaining the group of target sensor data through calculation, after the actual ODR, the target ODR, the time length of the group of raw sensor data, the total quantity of the data entries in the group of raw sensor data, the total quantity of the data entries in the group of target sensor data, and the group of raw sensor data are substituted into the interpolation algorithm.
|