CN110645972B - Indoor direction optimization method based on MEMS - Google Patents

Indoor direction optimization method based on MEMS Download PDF

Info

Publication number
CN110645972B
CN110645972B CN201810666810.9A CN201810666810A CN110645972B CN 110645972 B CN110645972 B CN 110645972B CN 201810666810 A CN201810666810 A CN 201810666810A CN 110645972 B CN110645972 B CN 110645972B
Authority
CN
China
Prior art keywords
gyroscope
angle
course angle
party
axis
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
Application number
CN201810666810.9A
Other languages
Chinese (zh)
Other versions
CN110645972A (en
Inventor
卢敏
王培重
张晓东
吴彤
肖登坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinkun Innovation Technology Co ltd
Original Assignee
Beijing Jinkun Innovation Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jinkun Innovation Technology Co ltd filed Critical Beijing Jinkun Innovation Technology Co ltd
Priority to CN201810666810.9A priority Critical patent/CN110645972B/en
Publication of CN110645972A publication Critical patent/CN110645972A/en
Application granted granted Critical
Publication of CN110645972B publication Critical patent/CN110645972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/005Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Gyroscopes (AREA)
  • Navigation (AREA)

Abstract

An indoor direction optimization method based on an MEMS (Micro-Electro-Mechanical System) belongs to the technical field of indoor and outdoor positioning, course information is calculated indoors by using magnetic field information, and accuracy of terminal course information cannot be accurately judged due to influence of ferromagnetic substances in a building. The gyroscope calculates the heading angle without being influenced by the outside, but the error is accumulated along with the time. Based on the advantages and disadvantages of the gyroscope and the magnetic heading, a combined heading algorithm is designed. The method can effectively inhibit the accumulated error of the gyroscope, judge the reliability of the magnetic heading information including but not limited to the magnetic heading information and obtain more accurate heading angle information. When the y axis of the MEMS chip is vertical, a coordinate system rotation algorithm of the carrier is designed, the method avoids the problem of large pitch angle fluctuation caused by instability of an arctangent function near 90 degrees, and further improves course angle precision of combined solution with a magnetometer.

Description

Indoor direction optimization method based on MEMS
Technical Field
The invention belongs to the technical field of indoor and outdoor positioning.
Background
Inertial devices become standard configurations of most intelligent devices such as mobile phones and flat panels, and the inertial devices are widely applied to solving course angles by using acceleration and magnetometers. However, in the indoor environment, due to the influence of the ferromagnetic substance in the building, the magnetic heading error is large, and therefore when the inertial navigation technology is used, the final positioning result deviates from the real position greatly due to the direction error.
The invention combines the characteristics that the gyroscope is not influenced by external environment and the error is accumulated, combines the acceleration, the gyroscope and the third-party course angle to judge the course, improves the reliability and the accuracy of the indoor course angle, and reduces the positioning error caused by inaccurate course angle caused by external interference or the self error of a device. In addition, when the y axis of a carrier coordinate System of an MEMS (Micro-Electro-Mechanical System) chip is vertical, the acceleration meter and the magnetometer are used for resolving the big fluctuation of the course angle, the coordinate rotation algorithm of the carrier is provided, the fluctuation of the magnetic course angle is reduced, and the precision of the course angle is improved.
Disclosure of Invention
The invention provides an indoor direction optimization method based on MEMS, which combines advantages and disadvantages of a gyroscope and a third party course angle, can inhibit accumulated errors of the gyroscope, can judge the accuracy of the current third party course angle, and improves the precision and reliability of indoor direction.
The detailed resolving process of the method is as follows:
step 01: reading IMU sensor data including triaxial accelerometer data, triaxial gyroscope data and triaxial magnetometer data, and entering step 02.
Step 02: judging whether the y axis of the carrier coordinate system is in an upright state, and entering step 03 when the y axis of the carrier coordinate system is in the upright state; otherwise, go to step 04. Step 03: rotating carrier coordinate system, rotating matrix
Figure GDA0003092296630000011
Then the original triaxial acceleration data (a) is processedx,ay,az) Triaxial gyroscope data (w)x,wy,wz) The following treatments were carried out:
Figure GDA0003092296630000012
when the third party course angle is obtained by resolving magnetometer data, the original three-axis magnetometer data (m) is obtainedx,my,mz) The carrier coordinate system rotation process is also performed, and the calculation formula is as follows:
Figure GDA0003092296630000021
and after the carrier coordinate system rotation processing is completed, the step 04 is performed.
Step 04: calculating a pitch angle theta and a roll angle gamma by using the rotated acceleration, and calculating a pitch angle theta and a roll angle gamma by using the three-axis acceleration data and the three-axis magnetometerData resolution third party heading angle phimagThen, step 05 is entered.
Step 05: initial values are given to the gyroscope by utilizing a pitch angle, a roll angle and a third-party course angle which are calculated by acceleration, and then the output course angle phi of the gyroscope is calculated through integrationgyroAnd proceeds to step 06 and step 07.
Step 06: recording the time t of giving an initial value to the gyroscopeoAnd the current time tnowIf (t)now-to)>And starting a time threshold value delta T of third-party course angle correction, and entering a step 10, otherwise, entering a step 11.
Step 07: solving for TwAnd entering step 08 according to the difference angle between the maximum value and the minimum value of the third-party heading angle in the time window.
Step 08: judging whether the difference angle between the maximum value and the minimum value of the gyroscope output course angle is smaller than a threshold value delta Cor or not, and if the difference angle is smaller than the threshold value delta Cor, judging that the gyroscope output course angle is in straight line walking, and entering the step 09; otherwise step 10 is entered.
Step 09: estimating the direction plus or minus of the gyro drift and the speed delta, using said TwThe difference value delta phi of the mean value of the gyroscope output course angles of the last second and the mean value of the gyroscope output course angles of the first second in the time windowgyroThe positive and negative directions and the speed of the gyroscope drift at the moment are estimated according to the following formula:
Figure GDA0003092296630000022
step 10: according to the condition | Φmag-(Φgyro-δ*(tnow-to))|<And delta A judges whether a third-party course angle is used for correcting the current gyroscope output course angle, wherein the formula is as follows: phimagIs the third party heading angle, phigyroOutputting a heading angle for the gyroscope, delta being a direction plus-minus sum of a velocity of the gyroscope offset, tnowIs the current time, toWhen the initial value is given to the gyroscope, delta A is the allowable maximum angle error of third-party course angle correction; when the condition is satisfied, the process proceeds to step 12,otherwise step 11 is entered.
Step 11: and taking the output heading angle of the gyroscope as a final heading angle, and entering the step 15.
Step 12: and correcting the current gyroscope output course angle by using the third-party course angle, and assigning initial values to the gyroscope again by using the pitch angle and the roll angle which are calculated by the accelerated speed and the third-party course angle.
Step 13: the current time tnowUpdating the time t of the initial value given to the gyroscopeo
Step 14: and taking the third-party heading angle as a final heading angle.
Step 15: and outputting the final heading angle.
The invention aims to improve the course angle resolving accuracy of indoor navigation positioning and obtain a more accurate course angle by utilizing an MEMS chip.
Compared with the prior art, the invention has the following advantages and beneficial effects:
(1) the invention adopts the technical method of rotating the carrier coordinate system, can effectively avoid the problem that the heading angle fluctuation is larger by using the acceleration and the magnetometer when the y axis of the carrier coordinate system is vertical, and improves the resolving precision of the magnetic heading angle.
(2) The invention judges whether the third party course angle is in the accurate range according to the allowed maximum angle error, the positive and negative directions and the speed of the gyroscope drifting and the output course angle of the gyroscope, thereby effectively inhibiting the gyroscope drifting and improving the reliability of the third party course angle, thereby achieving the effect of accurately estimating the course.
Drawings
Fig. 1 is a schematic flow chart of a MEMS-based indoor direction optimization method according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto. Fig. 1 is a schematic flow chart of a MEMS-based indoor direction optimization method according to an embodiment of the present invention.
In this embodiment, a user holds a smart phone (the terminal includes an acceleration, a magnetometer, and a gyroscope), the sampling frequency of the acceleration and the magnetometer is 20Hz, the sampling frequency of the gyroscope is 50Hz, and a magnetic heading angle calculated by using triaxial acceleration data and triaxial magnetometer data is used as a third-party heading angle.
The proposed values of the parameters related to the setting of the embodiment are as follows: time window Tw=[10s,15s]The time threshold Δ T for initiating third party course angle correction is [50s,80s ]]The maximum angle error Δ a is allowed to be [5 °,15 ° ]]Determining the time window TwThreshold Δ Cor of whether or not the vehicle travels straight is [15 °,20 °]。
The basic workflow of this embodiment includes the following:
(1) and reading original triaxial acceleration, triaxial magnetometer and triaxial gyroscope data of the smart phone.
(2) And judging whether the y axis of the carrier coordinate system is vertical or not according to the triaxial acceleration data.
(3) And if the three-axis gyroscope is vertical, rotating the carrier coordinate system for the original three-axis acceleration, the three-axis magnetometer and the three-axis gyroscope data, otherwise, not processing.
(4) Utilize triaxial acceleration, triaxial magnetometer data after the rotation to solve attitude angle, include:
the pitch angle theta and the roll angle gamma are calculated by utilizing the rotated acceleration, and the third-party course angle phi is calculated by utilizing the three-axis acceleration data and the three-axis magnetometer datamagAnd initial values are given to the gyroscope by the pitch angle, the roll angle and the third-party course angle.
(5) And integrating to obtain the output course angle of the gyroscope.
(6) And judging whether the current gyroscope output course angle is corrected by using the magnetic course after the time threshold for starting the correction of the magnetic course angle is met, and otherwise, directly outputting the gyroscope output course angle.
(7) And meanwhile, judging whether the straight-line walking condition is met, and if so, calculating the positive and negative directions and the speed of the drift of the gyroscope.
(8) And reversely deducing the accurate range of the magnetic heading angle according to the positive and negative directions and the speed of the drift of the gyroscope and the current heading angle, if the magnetic heading angle meets the accurate range, re-assigning an initial value to the gyroscope by using the magnetic heading angle, outputting the numerical value of the magnetic heading angle as a final heading angle, and otherwise, directly outputting the numerical value of the heading angle output by the gyroscope as the final heading angle.

Claims (4)

1. An indoor direction optimization method based on MEMS is characterized by comprising the following steps:
(1) judging the state of the MEMS chip, and solving the zero offset of the gyroscope when the MEMS chip is detected to be static;
(2) when the Y axis of the MEMS chip is detected to be vertical, the carrier coordinate system is rotated, the pitch angle and the roll angle are obtained according to the acceleration data after rotation, and the third-party course angle phi is obtained according to the acceleration and magnetometer datamagAn initial value is given to the gyroscope, and the output course angle of the gyroscope is obtained according to the data integration of the gyroscope;
(3) finding TwJudging whether the third party walks in a straight line or not according to the difference angle between the maximum value and the minimum value of the third party course angle in the time window, and if the angle is not the straight line<If the threshold value delta Cor is a straight line walking, estimating the positive and negative directions and the speed of the drift of the gyroscope, otherwise, performing non-straight line walking;
(4) according to the maximum allowable angle error, the positive and negative directions and the speed of the gyroscope drift and the output course angle of the gyroscope, according to the condition of phimag-(Φgyro-δ*(tnow-to))|<And delta A judges whether the third-party course angle is in an accurate range, wherein the formula is as follows: phigyroFor the gyroscope output course angle, delta is the direction plus-minus and speed of the gyroscope drift, tnowIs the current time, toAt the moment of assigning a value to the gyroscope, delta A is an allowable maximum angle error corrected by using a third-party course angle; if the third-party course angle is in the range, the pitch angle and the roll angle calculated by the acceleration and the course angle provided by the third party are used as the attitude angle of the current terminal to give an initial value to the gyroscope, otherwise, the gyroscope is directly used for outputting the course angle.
2. The method of claim 1, wherein detecting that a y-axis of the MEMS chip is standing comprises:
comparing the three-axis acceleration data (a) output by the MEMS chipx,ay,az) If ay|>|axI and | ay|>|azIf yes, the y axis of the current chip is considered to be in a vertical state.
3. The indoor MEMS-based direction optimization method of claim 1, wherein the carrier coordinate system rotation is performed and comprises:
upon detection of y-axis erection of the MEMS chip, raw three-axis acceleration data (a)x,ay,az) Triaxial gyroscope data (w)x,wy,wz) And carrying out carrier coordinate system rotation processing, wherein the calculation formula is as follows:
Figure FDA0003092296620000011
in the formula (I), the compound is shown in the specification,
Figure FDA0003092296620000012
is a rotation matrix;
when the third-party course angle is obtained by resolving acceleration data and magnetometer data, original three-axis magnetometer data (m) are obtainedx,my,mz) The carrier coordinate system rotation process is also performed, and the calculation formula is as follows:
Figure FDA0003092296620000021
4. the indoor MEMS-based direction optimization method of claim 1, wherein estimating the direction plus or minus and the speed of the gyroscope drift comprises:
integrating the data of the rotated three-axis gyroscope to obtain the output course angle phi of the gyroscopegyro(ii) a When the straight line walking is satisfied, T is solvedwThe difference value delta phi of the output course angle mean value of the gyroscope in the last second and the output course angle mean value in the first second in the time windowgyroEstimating the positive and negative directions and the speed delta of the gyro drift at the moment, and the calculation formula is
Figure FDA0003092296620000022
CN201810666810.9A 2018-06-26 2018-06-26 Indoor direction optimization method based on MEMS Active CN110645972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810666810.9A CN110645972B (en) 2018-06-26 2018-06-26 Indoor direction optimization method based on MEMS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810666810.9A CN110645972B (en) 2018-06-26 2018-06-26 Indoor direction optimization method based on MEMS

Publications (2)

Publication Number Publication Date
CN110645972A CN110645972A (en) 2020-01-03
CN110645972B true CN110645972B (en) 2021-08-24

Family

ID=68988984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810666810.9A Active CN110645972B (en) 2018-06-26 2018-06-26 Indoor direction optimization method based on MEMS

Country Status (1)

Country Link
CN (1) CN110645972B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104570033A (en) * 2015-01-06 2015-04-29 中电科航空电子有限公司 Airplane onboard GPS and inertial navigation system combined positioning method
CN105091878A (en) * 2014-04-23 2015-11-25 阿里巴巴集团控股有限公司 Positioning method based on gait and positioning apparatus based on gait
CN107202578A (en) * 2017-05-10 2017-09-26 陕西瑞特测控技术有限公司 A kind of strapdown vertical gyroscope calculation method based on MEMS technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105091878A (en) * 2014-04-23 2015-11-25 阿里巴巴集团控股有限公司 Positioning method based on gait and positioning apparatus based on gait
CN104570033A (en) * 2015-01-06 2015-04-29 中电科航空电子有限公司 Airplane onboard GPS and inertial navigation system combined positioning method
CN107202578A (en) * 2017-05-10 2017-09-26 陕西瑞特测控技术有限公司 A kind of strapdown vertical gyroscope calculation method based on MEMS technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Drift Cancellation of an Orientation Tracker for a Virtual Reality Head-Mounted Display";A. Safaeifar;《Proceedings of the 3rd RSI International Conference on Robotics and Mechatronics》;20151231;正文第296-301页 *
基于二阶插值滤波的室内航向估计算法研究;周广平等;《压电与声光》;20170615(第03期);正文第472-477页 *

Also Published As

Publication number Publication date
CN110645972A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN110398245B (en) Indoor pedestrian navigation attitude estimation method based on foot-worn inertial measurement unit
CN107270893B (en) Lever arm and time asynchronous error estimation and compensation method for real estate measurement
CN108225324B (en) Indoor positioning method based on intelligent terminal and integrating geomagnetic matching and PDR
CN112577521B (en) Combined navigation error calibration method and electronic equipment
CN108061560B (en) Inertial navigation correction method of communication-in-moving antenna and hybrid navigation method formed by inertial navigation correction method
CN107063254B (en) Gesture resolving method for gyros and geomagnetic combination
WO2016198009A1 (en) Heading checking method and apparatus
CN108458714B (en) Euler angle solving method without gravity acceleration in attitude detection system
JP2014006248A5 (en)
CN103712622B (en) The gyroscopic drift estimation compensation rotated based on Inertial Measurement Unit and device
CN106153069B (en) Attitude rectification device and method in autonomous navigation system
CN110057356B (en) Method and device for positioning vehicles in tunnel
CN107990901B (en) User direction positioning method based on sensor
KR101576424B1 (en) Automatic calibration method of magnetometer for indoor positioning
CN110986997A (en) Method and system for improving indoor inertial navigation precision
CN110361031A (en) A kind of IMU population parameter error quick calibrating method theoretical based on backtracking
CN111189474A (en) Autonomous calibration method of MARG sensor based on MEMS
CN110672095A (en) Pedestrian indoor autonomous positioning algorithm based on micro inertial navigation
JP2019120587A (en) Positioning system and positioning method
CN106595669B (en) Method for resolving attitude of rotating body
CN112362057A (en) Inertial pedestrian navigation algorithm based on zero-speed correction and attitude self-observation
JPWO2007020702A1 (en) Sensor device
El-Diasty An accurate heading solution using MEMS-based gyroscope and magnetometer integrated system (preliminary results)
CN110030991B (en) High-speed rotation angle movement measuring method for flyer integrating gyroscope and magnetometer
CN110645972B (en) Indoor direction optimization method based on MEMS

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A MEMS based indoor directional optimization method

Effective date of registration: 20231226

Granted publication date: 20210824

Pledgee: China Construction Bank Corporation Beijing Suzhou bridge sub branch

Pledgor: BEIJING JINKUN INNOVATION TECHNOLOGY CO.,LTD.

Registration number: Y2023110000548

PE01 Entry into force of the registration of the contract for pledge of patent right