Mobile terminal and its geomagnetic sensor data correction processing method, and storage medium
A technology of geomagnetic induction and mobile terminals, applied in the field of mobile terminals, can solve problems such as affecting use, inaccurate processing of geomagnetic induction data, and inability to measure geomagnetic raw data of geomagnetic sensors, so as to achieve accurate measurement data and avoid problems.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] The mobile terminal described in the embodiment of the present invention is as figure 1 As shown, it includes a geomagnetic sensor, a speaker, and a central processing unit; wherein, the geomagnetic sensor is used to sense the magnetic intensity sensed by the mobile terminal, and the speaker is used to make a sound according to the magnitude of the geomagnetic field; the central processing unit obtains the geomagnetic field sensed by the geomagnetic sensor value, and control the volume of the loudspeaker according to the geomagnetic value; the geomagnetic inductor, the central processing unit, and the loudspeaker are connected in sequence;
[0040] Wherein, the central processing unit also includes: a geomagnetic acquisition module, a volume calculation module, and a volume control module connected in sequence; the details are as follows:
[0041] The geomagnetic acquisition module is connected with the geomagnetic sensor, and is used to obtain the geomagnetic value ind...
Embodiment 2
[0057] See figure 2 , figure 2 It is a flow chart of a preferred embodiment of the method for correcting and processing the geomagnetic sensor data of the mobile terminal in the present invention. Such as figure 2 As shown, the mobile terminal geomagnetic sensor data correction processing method described in the embodiment of the present invention includes:
[0058] S10. The mobile terminal acquires geomagnetic values (x, y, z) sensed by the geomagnetic sensor.
[0059] In this embodiment, the mobile terminal acquires geomagnetic values sensed by the geomagnetic sensor, and the acquired geomagnetic values include geomagnetic component values in three directions of the x-axis, y-axis, and z-axis.
[0060] S20. The mobile terminal compares the absolute values of the geomagnetic values x, y, and z, assigns the largest value to A, and calculates the corresponding speaker volume VOL according to formula 1;
[0061] Wherein, the formula 1 is as follows:
[0062] ...
Embodiment 3
[0072] Based on the mobile terminal in the above-mentioned embodiments, the present invention provides a method for correcting and processing the geomagnetic sensor data of the mobile terminal, such as image 3 shown, including the following steps:
[0073] Step S1, setting a timer T, and then performing step S2;
[0074] Step S2, judging whether the timer T is overtime, if so, execute step S3, otherwise execute step S2;
[0075] Step S3, the geomagnetic acquisition module acquires the geomagnetic value (x, y, z) sensed by the geomagnetic sensor, and then executes step S4;
[0076] Step S4, the volume calculation module first compares the absolute values of the three values of x, y, and z, assigns the largest value to A, then calculates the corresponding loudspeaker volume according to formula 1, and then executes step S5;
[0077] Step S5, the volume control module 330 controls the volume corresponding to the volume of the speaker according to the volume of the speaker ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


