Application of state observers in attitude estimation using low-cost sensors

Similar documents
Smartphone sensor based orientation determination for indoor navigation

1 Kalman Filter Introduction

Automated Tuning of the Nonlinear Complementary Filter for an Attitude Heading Reference Observer

UAVBook Supplement Full State Direct and Indirect EKF

Quaternion based Extended Kalman Filter

Inertial Odometry using AR Drone s IMU and calculating measurement s covariance

Chapter 4 State Estimation

Invariant Extended Kalman Filter: Theory and application to a velocity-aided estimation problem

Angle estimation using gyros and accelerometers

Lecture 9: Modeling and motion models

Fundamentals of attitude Estimation

Investigation of the Attitude Error Vector Reference Frame in the INS EKF

EE565:Mobile Robotics Lecture 6

Attitude Estimation Version 1.0

Evaluation of different wind estimation methods in flight tests with a fixed-wing UAV

Attitude determination method using single-antenna GPS, Gyro and Magnetometer

Two dimensional rate gyro bias estimation for precise pitch and roll attitude determination utilizing a dual arc accelerometer array

with Application to Autonomous Vehicles

Satellite Attitude Determination with Attitude Sensors and Gyros using Steady-state Kalman Filter

Angle estimation using gyros and accelerometers

IMU Filter. Michael Asher Emmanuel Malikides November 5, 2011

An Adaptive Filter for a Small Attitude and Heading Reference System Using Low Cost Sensors

Extension of Farrenkopf Steady-State Solutions with Estimated Angular Rate

MAE 142 Homework #5 Due Friday, March 13, 2009

Real-time Attitude Estimation Techniques Applied to a Four Rotor Helicopter

TSRT14: Sensor Fusion Lecture 6. Kalman Filter (KF) Le 6: Kalman filter (KF), approximations (EKF, UKF) Lecture 5: summary

On the Observability and Self-Calibration of Visual-Inertial Navigation Systems

Attitude Estimation for Augmented Reality with Smartphones

Inertial navigation for divers

Simplified Filtering Estimator for Spacecraft Attitude Determination from Phase Information of GPS Signals

Generalized Multiplicative Extended Kalman Filter for Aided Attitude and Heading Reference System

Tracking for VR and AR

Effective Use of Magnetometer Feedback for Smart Projectile Applications

Rao-Blackwellized Particle Filtering for 6-DOF Estimation of Attitude and Position via GPS and Inertial Sensors

A Miniaturized Satellite Attitude Determination and Control System with Autonomous Calibration Capabilities

Space Surveillance with Star Trackers. Part II: Orbit Estimation

Inertial Navigation and Various Applications of Inertial Data. Yongcai Wang. 9 November 2016

Extended Kalman Filter for Spacecraft Pose Estimation Using Dual Quaternions*

A Low-Cost GPS Aided Inertial Navigation System for Vehicular Applications

Date: 31 March (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

VN-100 Velocity Compensation

MEMS Gyroscope Control Systems for Direct Angle Measurements

Cubature Particle filter applied in a tightly-coupled GPS/INS navigation system

Refinements to the General Methodology Behind Strapdown Airborne Gravimetry

Attitude Determination System of Small Satellite

Development of an Extended Operational States Observer of a Power Assist Wheelchair

Optimization-Based Control

Calibration of a magnetometer in combination with inertial sensors

Discrete Time-Varying Attitude Complementary Filter

Kinetics of Spatial Mechanisms: Kinetics Equation

Estimation and Control of a Quadrotor Attitude

A Machine Learning Approach for Dead-Reckoning Navigation at Sea Using a Single Accelerometer

c 2009 John Gregory Warner

State Estimation for Autopilot Control of Small Unmanned Aerial Vehicles in Windy Conditions

Question 1: A particle starts at rest and moves along a cycloid whose equation is. 2ay y a

Research Article Design of an Attitude and Heading Reference System Based on Distributed Filtering for Small UAV

Locating and supervising relief forces in buildings without the use of infrastructure

Attitude Determination for NPS Three-Axis Spacecraft Simulator

FIBER OPTIC GYRO-BASED ATTITUDE DETERMINATION FOR HIGH- PERFORMANCE TARGET TRACKING

Date: 1 April (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

Discussions on multi-sensor Hidden Markov Model for human motion identification

Fundamentals of High Accuracy Inertial Navigation Averil B. Chatfield Table of Contents

Development of Magnetometer and Sun Sensors Based Orbit and Attitude Determination for Cubesat

Verification of a Dual-State Extended Kalman Filter with Lidar-Enabled Autonomous Hazard- Detection for Planetary Landers

Research Article Error Modeling, Calibration, and Nonlinear Interpolation Compensation Method of Ring Laser Gyroscope Inertial Navigation System

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

NAVAL POSTGRADUATE SCHOOL THESIS

IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL. 53, NO. 5, JUNE

Spacecraft Angular Rate Estimation Algorithms For Star Tracker-Based Attitude Determination

Sine Rotation Vector Method for Attitude Estimation of an Underwater Robot

Personal Positioning based on Walking Locomotion Analysis with Self-Contained Sensors and a Wearable Camera Masakatsu Kourogi Takeshi Kurata

Lecture. Aided INS EE 570: Location and Navigation. 1 Overview. 1.1 ECEF as and Example. 1.2 Inertial Measurements

Spacecraft Dynamics and Control

Miscellaneous. Regarding reading materials. Again, ask questions (if you have) and ask them earlier

Institutionen för systemteknik

Left-invariant extended Kalman filter and attitude estimation

Presenter: Siu Ho (4 th year, Doctor of Engineering) Other authors: Dr Andy Kerr, Dr Avril Thomson

= m(0) + 4e 2 ( 3e 2 ) 2e 2, 1 (2k + k 2 ) dt. m(0) = u + R 1 B T P x 2 R dt. u + R 1 B T P y 2 R dt +

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Tremor Detection for Accuracy Enhancement in Microsurgeries Using Inertial Sensor

Adaptive Two-Stage EKF for INS-GPS Loosely Coupled System with Unknown Fault Bias

A Sensor Driven Trade Study for Autonomous Navigation Capabilities

Integrated Motion Measurement for Flexible Structures

Adaptive State Estimation Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 2018

Calibration and data fusion solution for the miniature attitude and heading reference system

A Complementary Filter for Attitude Estimation of a Fixed-Wing UAV

Filtering and Fusion based Reconstruction of Angle of Attack

Multi-layer Flight Control Synthesis and Analysis of a Small-scale UAV Helicopter

SOFTWARE ALGORITHMS FOR LOW-COST STRAPDOWN INERTIAL NAVIGATION SYSTEMS OF SMALL UAV

EE 570: Location and Navigation

Adaptive Kalman Filter for Orientation Estimation in Micro-sensor Motion Capture

The Research of Tight MINS/GPS Integrated navigation System Based Upon Date Fusion

NAWCWPNS TM 8128 CONTENTS. Introduction Two-Dimensinal Motion Three-Dimensional Motion Nonrotating Spherical Earth...

Off-the-Shelf Sensor Integration for mono-slam on Smart Devices

An Inverse Dynamics Attitude Control System with Autonomous Calibration. Sanny Omar Dr. David Beale Dr. JM Wersinger

ENHANCED PROPORTIONAL-DERIVATIVE CONTROL OF A MICRO QUADCOPTER

ᓸᯏ㔚ㆇ ᗵ ℂ ᙥ ޕ ᑞ ᇷ ݾ ᔭ ஃ რऄתᖄ ៰ⷐ ᓸᯏ㔚ᛛⴚ ข ᓸᯏ㔚ㆇ ᗵ ℂ ᧂ น ਯ ᣂᙥ inemo ᘠᕈ㊂

Multi-Objective Robust Control of Rotor/Active Magnetic Bearing Systems

SYSTEMTEORI - KALMAN FILTER VS LQ CONTROL

Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Transcription:

Application of state observers in attitude estimation using low-cost sensors Martin Řezáč Czech Technical University in Prague, Czech Republic March 26, 212

Introduction motivation for inertial estimation unit stabilized platform employed sensors Kalman vs. Complementary Filter attitude estimation implementation issues correction of translational and centripetal accelerations measured by accelerometer

Sensors models 3-axis gyroscope: ω m = ω + η + b

Sensors models 3-axis accelerometer: a = v + ω v + R ϕ G + η 3-axis magnetometer: m = R ϕ [M ] T x M y M z + η magnetic field calculator: http://www.ngdc.noaa.gov/geomagmodels/igrfwmm.jsp With neglecting translational acceleration term and centripetal term a = R ϕ [ G z ] T + η

Single axis problem The Kalman Filter

Single axis problem The Complementary Filter ω m (t) ˆb(t) - k 1 θ m (t) e(t) Complementary Filter ˆθ(t) ˆb(t) ωm(t) k 2 - k 1 θm(t) e(t) Complementary Filter with bias estimation θ(s) = s + k 1 θ(s) = k 1 θ(s) + s θ(s) (1) s + k 1 s + k 1 s + k 1 θ(s) = k 1 s + k 1 θ(s) + 1 s + k 1 ω(s) (2) ˆθ(s) = k 1 s + k 1 θ m(s) + 1 s + k 1 ω m(s) (3) ˆθ(t) ˆθ(s) = k 1 ˆθ + k1 θ m + ω m (4) = ω m + k 1 (θ m ˆθ) }{{} ˆb (5)

From 1D to 3D 1D: single axis φ = 1 ω m 3D: Euler angles φ θ = ψ 3D: quaternions q q 1 q 2 q 3 = 1 2 1 tan θ sin φ tan θ cos φ cos φ sin φ sin φ/ cos θ cos φ/ cos θ ω x ω y ω z ω x ω z ω y ω y ω z ω x ω z ω y ω x ω x ω y ω z q q 1 q 2 q 3

Attitude estimation the principle 3 types of MEMS sensors gyroscopes (ω), accelerometers (a), magnetometers (m) gyros signal is integrated to obtain attitude (ϕ), which is also measured through magnetic and gravitational fields. error signal between measured and predicted sensor outputs is fed back through gain K to attitude derivative. [ ] ω q ˆq Rˆq M R ω (ˆq) [ ˆm ] Rˆq G K [ m a] â

Equations for estimation of the attitude [ ] ω q ˆq Rˆq M R ω (ˆq) [ ˆm ] Rˆq G â K [ m a] q q 1 q 2 q 3 = = = = 1 2 ( ωx q 1 ω y q 2 ω z q 3 ) 1 2 (+ωx q + ω z q 2 ω y q 3 ) 1 2 (+ωy q ω z q 1 + ω x q 3 ) 1 2 (+ωz q + ω y q 1 ω x q 2 ) R(q) = ax a y = R(q) [ ] T G z a z mx m y = R(q) [M ] T x M y M z m z (1 2q 2 2 2q2 3 ) 2(q q 3 + q 1 q 2 ) 2(q 1 q 3 q q 2 ) 2(q 1 q 2 q q 3 ) (1 q 2 1 q2 3 ) 2(q q 1 + q 2 q 3 ) 2(q q 2 + q 1 q 3 ) 2(q 2 q 3 q q 1 ) (1 q 2 1 q2 2 )

Extended Kalman Filter Compute partial derivative of the state equation and use it to perform time update of the state estimate and estimation-error covariance: A t 1 = f(x, u) x x=ˆx + t 1, u=u t 1 x t = f(x t 1, u t 1 ) + w t 1 y t = h(x t, u t) + v t w t (, Q) v t (, R), P t = A t 1 P + t 1 AT t 1 + Q, ˆx t = f(ˆx + t 1, u t 1 ) System Compute partial derivative of the output equation and use it to perform measurement update of the state estimate and estimation-error covariance: u(t) B D w(t) A x(t) C v(t) y(t) C t = h(x, u) x x=ˆx t, u=u t K t = P t C T t (C t P ) t C T 1 t + R ˆx + t = ˆx t + K t (y t h(ˆx ) t, u t ) P + t = P t P t C T t KT t B D A ˆx(t) K e(t) ŷ(t) C Observer

Using feedback linearization to obtain gain K h(ˆq) [ ] ω q ˆq Rˆq M R [ ω (ˆq) ˆm â] Rˆq G q q 1 q 2 q 3 = = = = 1 2 ( ωx q 1 ω y q 2 ω z q 3 ) 1 k 2 (+ωx q + ω z q 2 ω y q 3 ) 1 2 (+ωy q ω z q 1 + ω x q 3 ) 1 2 (+ωz q + ω y q 1 ω x q 2 ) R(q) = q (C T C) 1 C T C = h(q) q e [ m a] ax a y = R(q) [ ] T G z a z mx m y = R(q) [M ] T x M y M z m z (1 2q 2 2 2q2 3 ) 2(q q 3 + q 1 q 2 ) 2(q 1 q 3 q q 2 ) 2(q 1 q 2 q q 3 ) (1 q 2 1 q2 3 ) 2(q q 1 + q 2 q 3 ) 2(q q 2 + q 1 q 3 ) 2(q 2 q 3 q q 1 ) (1 q 2 1 q2 2 )

Estimation of the bias in the gyro h(ˆq) [ ] ω q ˆq Rˆq M R [ ˆm ] ω (ˆq) Rˆq G â k 1 ω k 2 (B T B) 1 B T B = R ω (ˆq) ˆq q (C T C) 1 C T C = h(q) q e [ m a] - we are interested in the impact of bias (present in ω) to quaternions q B = R ω(ˆq) ω feedback is done using the inverse of B times some stabilizing constant k 2 ] B # = (B T B) 1 B T = 2 [ q1 q q 3 q 2 q 2 q 3 q q 1 q 3 q 2 q 1 q

Designed hardware I I I I I I output: CAN bus, RS232, possible USB ARM7 microcontroller LPC2368 Analog Devices sensor ADIS 164 (3-axis gyro, accelerometer and magnetometer), pressure sensor, GPS module 1Hz codes written in C using GnuARM compiler EKF algorithm computational speed 2 Hz (CF)algorithm computational speed 2 Hz

Implementation issues need to implement matrix operations (EKF) inversion of covariance matrix (better than gauss elimination is to use of matrix factorization) is it necessary to compute the inverse in itself? (CF) implementation of the pseudo-inverse paying attention on proper antialiasing filtering

Realtime experiments with inertial unit

Experiments

Troubles 7 6 5 Magnetometer data mx my mz.25.2.15 Gyroscope data gx gy gz Magnetic field [mgauss] 4 3 2 1 1 2 3 5 1 15 2 25 3 Time [s] Acceleration [scaled] 1.5.5 1 1.5 Original (measured) accelerometer ax ay az Angular rate [rad/s].1.5.5.1.15.2.25 5 1 15 2 25 3 35 Time [s] Angle [deg] 15 1 5 Euler angles, K 1 =.5 pith roll yaw 2 5 1 15 2 25 3 35 Time [s] 5 5 1 15 2 25 3 Time [s]

GPS derivative 1.5 Original (measured) accelerometer ax ay az 1.5 Accelerometer after correction ax ay az Acceleration [scaled].5 1 Acceleration [scaled].5 1 1.5 1.5 Acceleration [ms 2 ] 2 5 1 15 2 25 3 35 Time [s] 5 5 Measured accelerometer vs. filtered second derivative of GPS accelerometer GPS sec. der. Angle [deg] 2 5 1 15 2 25 3 35 Time [s] 15 1 5 Euler angles, K 1 =.5 pith roll yaw 1 5 1 15 2 25 3 35 Time [s] 5 5 1 15 2 25 3 Time [s]

Lowering feedback gain 15 1 Euler angles, K 1 =.5 pith roll yaw 15 1 Euler angles, K 1 =.1 pith roll yaw Angle [deg] 5 Angle [deg] 5 5 5 1 15 2 25 3 Time [s] 5 5 1 15 2 25 3 Time [s]

Implementation of GPS derivative using filtfilt in matlab (requires all data) central vs. backward finite difference filtering of the derivative noncausal = zero phase filter filter must be FIR!!! the order is DelayTime/SamplingTime.15 Coeficients of the FIR filter 5 Derivative filter bode Coef. value.1.5.5.1.15.2.25 Magnitude [db] (db) Phase (deg) 5 1 15 2 18 9 9.3 3 2 1 1 2 3 Filter shift z i 18 1 2 1 1 1 1 1 FRequency [Hz] (Hz)

Obtaining quaternion in actual time - integrate the whole gyro buffer (by using euler discretization with period T ) q (k + 1) q 1 (k + 1) q 2 (k + 1) q 3 (k + 1) = 1 T /2 ω x T /2 ω y T /2 ω z T /2 ω x 1 T /2 ω z T /2 ω y T /2 ω y T /2 ω z 1 T /2 ω x T /2 ω z T /2 ω y T /2 ω x 1 } {{ } A(ω(k)) which although requires a lot of computer time. q(k + 1) = A(ω k )q(k) q(k + 2) = A(ω k+1 )q(k + 1) = A(ω k+1 ) A(ω k )q(k) q(k + 5) = A(ω k+499 ) A(ω k+498 ) A(ω k ) q(k) }{{} A 1 5 adding the new sample means: q(k + 51) = A(ω k+5 ) A 1 5 A(ω k ) 1 q(k + 1) q (k) q 1 (k) q 2 (k) q 3 (k) troubles with quaternion normalization? Introduction matrix normalization using Frobenius norm.

Conclusion possible extensions introducing not only rotational model for estimation but also translational double integrator for accelerometer compared with GPS. other possible schemes used for quaternion estimation show the experiment of bias estimation Martin Řezáč rezac.martin@fel.cvut.cz