CN109945848B - Method for solving gyroscope drift - Google Patents
Method for solving gyroscope drift Download PDFInfo
- Publication number
- CN109945848B CN109945848B CN201910275379.XA CN201910275379A CN109945848B CN 109945848 B CN109945848 B CN 109945848B CN 201910275379 A CN201910275379 A CN 201910275379A CN 109945848 B CN109945848 B CN 109945848B
- Authority
- CN
- China
- Prior art keywords
- data
- module
- value
- intermediate value
- gyroscope
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Gyroscopes (AREA)
Abstract
The invention is suitable for the technical field of gyroscope drift, and comprises a system module, a sensor concentrator module, a gyroscope module and an acceleration module; respectively acquiring first data output by a gyroscope module and second data output by an acceleration module through a sensor concentrator module, performing algorithm fusion on the first data and the second data to form third data, caching 16 recently obtained third data, sequencing the 16 recently obtained third data, taking nine bits behind a decimal point of an intermediate value, and performing binary integer conversion on the intermediate value; setting a precision value, wherein the precision value is the digital digit which is output at least after the intermediate value is subjected to binary integer conversion; after binary integer conversion, the intermediate value is multiplied by the precision value and then divided by the precision value, seven effective digits are reserved, and finally the reserved seven effective digits are reported to a system module; therefore, the problem of gyroscope drift is solved, and user experience is improved.
Description
Technical Field
The invention belongs to the technical field of solving the drift of a gyroscope, and particularly relates to a method for solving the drift of the gyroscope.
Background
The sensor hub is an optimized intermediate carrier for 9-axis sensor melting; sensor hub produced by part of companies occupies considerable share in the market, and particularly, requirements on sensors are higher and higher due to the appearance of novel exchange scenes such as VR (virtual reality) AR (augmented reality technology) and the like; VR products are very sensitive to shaking, which directly leads to poor user experience; zero drift is a jitter expression in a melting algorithm defaulted by part of companies; the null shift is static, but the gyroscope has a drift phenomenon.
Disclosure of Invention
The invention aims to provide a method for solving the drift of a gyroscope, and aims to solve the problem of poor user experience caused by the fact that the prior art cannot provide a method for solving the drift of the gyroscope.
The invention provides a method for solving gyroscope drift, which comprises the following steps:
and the sensor hub module is used for respectively acquiring first data output by the gyroscope module and second data output by the acceleration module, performing algorithm fusion on the first data and the second data to form third data, and outputting the third data to the system module.
Further preferably, before outputting the third data to the system module, the method further includes:
and caching the 16 third data which are obtained recently, sequencing the 16 third data which are obtained recently, and taking a middle value to report to the system module.
Further preferably, before reporting the intermediate value to the system module, the method further includes:
and taking nine bits behind the decimal point of the intermediate value, and performing binary integer conversion on the intermediate value.
Preferably, a precision value is set, and the precision value is a digital bit number which is output at least after the intermediate value is subjected to binary integer conversion.
Preferably, the intermediate value is subjected to binary integer conversion, multiplied by the precision value and divided by the precision value.
Further preferably, after the intermediate value is subjected to binary integer conversion, multiplied by the precision value and divided by the precision value, seven significant digits are retained.
Preferably, the reserved seven significant digits are reported to the system module.
According to the invention, a sensor hub module is used for respectively acquiring first data output by a gyroscope module and second data output by an acceleration module, the first data and the second data are subjected to algorithm fusion to form third data, 16 recently obtained third data are cached, the 16 recently obtained third data are sequenced, nine bits after a decimal point of an intermediate value are taken, and binary integer conversion is carried out on the intermediate value; setting an accuracy value which is the minimum output digital digit after binary integer conversion of the intermediate value; after binary integer conversion is carried out on the intermediate value, the intermediate value is multiplied by the precision value and then divided by the precision value, seven effective digits are reserved, and finally the reserved seven effective digits are reported to a system module; therefore, the problem of gyroscope drift is solved, and user experience is improved.
Drawings
Fig. 1 is a flowchart of an implementation of a method for solving a drift of a gyroscope according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
fig. 1 shows a flow of implementing the method for solving the drift of the gyroscope provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in step S101, the sensor hub module respectively collects first data output by the gyroscope module and second data output by the acceleration module, and performs algorithm fusion on the first data and the second data to obtain third data.
In the embodiment of the invention, the sensor hub is respectively connected with the gyroscope module and the acceleration module and is also connected with the system module.
In step S102, the latest obtained 16 third data are cached, and the latest obtained 16 third data are sorted, and the intermediate value is fetched.
In the embodiment of the present invention, the most recently obtained 16 third data are sorted in ascending or descending order, and the middle two third data are added and then divided by 2 to obtain a middle value.
In step S103, nine bits after the decimal point of the intermediate value are taken, and binary integer conversion is performed on the intermediate value.
In the embodiment of the invention, the last nine digits of the decimal point of the intermediate value are reserved and converted into a binary format for integer conversion, and the integer conversion is then converted into a decimal format.
In step S104, an accuracy value is set, which is the minimum number of digital bits to be output after binary integer conversion of the intermediate value.
In step S105, the intermediate value is subjected to binary integer conversion, multiplied by the precision value, and divided by the precision value.
In step S106, the seven significant digits are retained.
In the embodiment of the invention, the intermediate value is subjected to binary integer conversion, then multiplied by the precision value, and then divided by the precision value, and then seven significant digits are reserved, and at least six significant digits are reserved.
In step S107, the reserved seven significant digits are reported to the system module.
In the embodiment of the present invention, the remaining seven significant digits are the third data (null shift data) after the third data is subjected to the shift processing.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (1)
1. A method for solving gyroscope drift comprises a system module, a sensor concentrator module, a gyroscope module and an acceleration module; characterized in that the method comprises the following steps:
a sensor hub module respectively collects first data output by the gyroscope module and second data output by the acceleration module, and the first data and the second data are subjected to algorithm fusion to form third data;
caching 16 recently obtained third data, sequencing the 16 recently obtained third data, taking nine bits behind a decimal point of an intermediate value, and performing binary integer conversion on the intermediate value;
setting an accuracy value, wherein the accuracy value is the digital digit which is output at least after the intermediate value is subjected to binary integer conversion;
after binary integer conversion is carried out on the intermediate value, the intermediate value is multiplied by the precision value and then divided by the precision value, and seven significant digits are reserved;
and reporting the reserved seven effective digits to the system module, wherein the reserved seven effective digits are zero-drift data after the drift processing is performed on the third data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910275379.XA CN109945848B (en) | 2019-04-08 | 2019-04-08 | Method for solving gyroscope drift |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910275379.XA CN109945848B (en) | 2019-04-08 | 2019-04-08 | Method for solving gyroscope drift |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109945848A CN109945848A (en) | 2019-06-28 |
CN109945848B true CN109945848B (en) | 2023-04-18 |
Family
ID=67013870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910275379.XA Active CN109945848B (en) | 2019-04-08 | 2019-04-08 | Method for solving gyroscope drift |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109945848B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6426161A (en) * | 1988-03-02 | 1989-01-27 | Honda Motor Co Ltd | Zero point adjusting method for angular velocity sensor |
JPH11148832A (en) * | 1997-11-14 | 1999-06-02 | Sony Corp | Speed measuring device, navigation device, speed measuring method, and speed measuring system and car |
CN102288197A (en) * | 2010-12-30 | 2011-12-21 | 东莞易步机器人有限公司 | Low-cost denoising, null-shift preventing and distortion preventing method for gyroscope |
CN103424115A (en) * | 2013-07-19 | 2013-12-04 | 上海理工大学 | Micro miniature aircraft ground test attitude recorder |
CN103763567A (en) * | 2013-12-31 | 2014-04-30 | 华中科技大学 | Compressed domain distortion drift compensation method for surveillance video privacy protection |
CN105427105A (en) * | 2014-09-11 | 2016-03-23 | 中兴通讯股份有限公司 | Mobile payment method, system and device |
CN106767804A (en) * | 2016-12-28 | 2017-05-31 | 华中科技大学 | The multidimensional data measurement apparatus and method of a kind of moving object |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160047675A1 (en) * | 2005-04-19 | 2016-02-18 | Tanenhaus & Associates, Inc. | Inertial Measurement and Navigation System And Method Having Low Drift MEMS Gyroscopes And Accelerometers Operable In GPS Denied Environments |
-
2019
- 2019-04-08 CN CN201910275379.XA patent/CN109945848B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6426161A (en) * | 1988-03-02 | 1989-01-27 | Honda Motor Co Ltd | Zero point adjusting method for angular velocity sensor |
JPH11148832A (en) * | 1997-11-14 | 1999-06-02 | Sony Corp | Speed measuring device, navigation device, speed measuring method, and speed measuring system and car |
CN102288197A (en) * | 2010-12-30 | 2011-12-21 | 东莞易步机器人有限公司 | Low-cost denoising, null-shift preventing and distortion preventing method for gyroscope |
CN103424115A (en) * | 2013-07-19 | 2013-12-04 | 上海理工大学 | Micro miniature aircraft ground test attitude recorder |
CN103763567A (en) * | 2013-12-31 | 2014-04-30 | 华中科技大学 | Compressed domain distortion drift compensation method for surveillance video privacy protection |
CN105427105A (en) * | 2014-09-11 | 2016-03-23 | 中兴通讯股份有限公司 | Mobile payment method, system and device |
CN106767804A (en) * | 2016-12-28 | 2017-05-31 | 华中科技大学 | The multidimensional data measurement apparatus and method of a kind of moving object |
Non-Patent Citations (1)
Title |
---|
针对移动机器人漂移任务的精确角度获取方法;严寅辉;《万方学位论文在线期刊库》;20130426;第1-68页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109945848A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
HU9602247D0 (en) | Method of converting a series of m-bit information words to a modulated signal, method of producing a record carrier, coding device, decoding device, recording device, reading device, signal, as well as a record carrier | |
CN112328927B (en) | Document processing method and device, readable medium and electronic equipment | |
WO2010135942A1 (en) | Method and device for fast cyclic redundancy check coding | |
WO2022088876A1 (en) | Communication data processing method and apparatus, device, and storage medium | |
CN109945848B (en) | Method for solving gyroscope drift | |
CN106209319A (en) | A kind of modem devices supporting optional sign rate and implementation method | |
CN106773919A (en) | The process chip circuit of multisensor interface | |
KR910006838A (en) | Digital addition circuit | |
CN115695589A (en) | Method, system, device and medium for automatically generating CAN message analysis code | |
CN103546169A (en) | Method for achieving (2, 1, 7) convolutional coding at 3/4 rate in Field Programmable Gate Array (FPGA) | |
JPS61159827A (en) | Digital-to-analog converter | |
CN112187790B (en) | Signal identification generation method, message transmission method and device | |
JPH1098392A (en) | Crc code generating circuit, code error detecting circuit and crc circuit | |
CN106059592A (en) | Encoding and decoding circuit based on low power consumption combination applied to network on chip and encoding and decoding method thereof | |
CN112230879B (en) | Byte and bit data processing and sending method based on FPGA | |
CN102075290A (en) | Aerial bus data coding and decoding methods | |
CN111563600B (en) | System and method for fixed-point conversion | |
Sheidaeian et al. | Parallel Computation of CRC Using Special Generator Polynomials | |
CN101309476B (en) | Mobile apparatus and method for changing image size | |
JPH0199325A (en) | Encoder circuit | |
CN116248232A (en) | Gyro and meter original data transmission method for inertial navigation system | |
JP2550597B2 (en) | Squarer | |
JP2638842B2 (en) | Decoder circuit | |
US20060288063A1 (en) | Method and system for high speed precoder design | |
CN116405996A (en) | Optimization method and device of clock synchronization network, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: B-1303, Haisong building, Tairan jiulu, chegongmiao, Futian District, Shenzhen City, Guangdong Province Applicant after: Shenzhen smart Micro Intelligent Technology Co.,Ltd. Address before: B-1303, Haisong building, Tairan jiulu, chegongmiao, Futian District, Shenzhen City, Guangdong Province Applicant before: JWIPC TECHNOLOGY DEVELOPMENT Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |