SlideShare a Scribd company logo
1 of 47
KALMAN FILTER BASED GPS
TRACKING
Prepared by: Falak Shah (0BEC082)
Semester VIII (EC), Nirma University
Guided by: Mr. Ankesh Garg (DCTG-SAC/ISRO)
Table of contents
 GPS overview
 Signal structure of GPS
 Acquisition
 Tracking
 Conventional tracking loop
 Conversion from continuous to discrete
domain
 Kalman filter
2
Global positioning system:
overview
 Constellation of 24 satellites
 Performance requirements of GPS systems
 10-30 m accuracy
 User dynamics
 Worldwide coverage
 Minimum number of required references for
determining position in 3-D is 4
 5 used to calculate user position out of 7
visible
3
Global positioning system:
overview
Antenna
RF
chain
ADC
AcquisitionTracking
Ephemeris
and
pseudorange
Satellite
position
User Position
Block diagram of GPS receiver
4
Signal structure of GPS
 Coarse/ Acquisition (C/A code) and P codes
 2 frequencies L1 centered at1575.42 MHz and
L2 at 1227.6 MHz. (multiple of 10.23 MHz
clock)
 where SL1 is the signal at L1 frequency, Ap is
the amplitude of the P code, P(t) and D(t)
represent the phase of the P code and data
code. f1 is the L1 frequency, is the initial
phase.
 GPS signal phase modulated BPSK
L1 p 1 c 1S =A P(t)D(t) cos(2 f t + ) + A C(t)D(t) sin(2 f t + )   

5
Signal structure of GPS
 P code and C/A code are bi-phase modulated at
10.23 MHz and 1.023 MHz Gold codes
 C/A code generated with use of a LSR of length
10 and is 1023 bits long
 1ms data enough to find its beginning
 C/A codes generated and autocorrelation and
cross correlation properties verified
 Peak provides starting point of the code
 Navigation data is 20 ms long- contains 20 C/A
codes
6
C/A code generator
7
Autocorrelation and cross-
correlation properties of C/A code8
Acquisition
 Search for frequency over is +/- 10 kHz which
is maximum Doppler range
 2-D search for carrier frequency and starting
point of C/A code
 IF is at 21.25 MHz, sampling frequency is 5
MHz. So, center of the signal is at 1.25 MHz.
 Maximum data record used for acquisition is
10 ms since data is 20 ms long
 Acquisition uses circular correlation for
detection ( ) ( ) *( )Z k X k H k
9
Tracking loop
 After acquisition- approximate carrier
frequency and starting point of C/A code
known
 More accurate approximation by tracking
 Continuously following the incoming carrier &
code
 Acquisition performed at regular intervals or on
unlocking of loop
 Maximum noise bandwidth, sampling time and
damping factor are known
 Loop gain parameters, filter coefficients
calculated
10
Tracking loop
Costas phase lock
loop
Conventional tracking loop
11
PLL equations
2
0
( )nB H j df

 
2 1
( ) 1 for first order PLL
( ) 1/ for 2nd order PLL
F s
F s s s 

 
0 0H(s)=k ( ) / k ( )d dOverall transfer function k F s s k F s
Where k0 and kd are gain of discriminator and NCO respectively. F(s)
being the loop filter transfer function given by
2 1 are calculated based on given noise bandwidth and sampling frequency.
Noise bandwidth is given by
and 
n
out to be
B / 2 ( 1/ 4 )n
Which comes
    
12
Continuous to discrete domain
transforms
 Bilinear transform and infinite impulse
transform most commonly used
 Convert individual blocks from continuous to
discrete domain rather than complete digital
design
1
1
1
2 /
1
s
Bilinear transform performed as
z
s t
z


 
  
 
invariant transform as
k
k k s
s
k d
and impulse
a a T
s s z e T

 
 
13
0
0
domain becomes
( ) ( )
1 ( ) ( )
d
d
Equation in discrete
k k F z N z
k k F z N z
Kalman Filter
14
Kalman filter
 Optimal recursive data processing algorithm
 Optimal in all aspects- uses all measurements
available regardless of their precision
 Minimises statistical error by doing this
 Recursive-does not need to keep all previous
measurements in memory
 Assumptions- linear system model with white and
Gaussian noise
 Whiteness- noise value not correlated in time &
equal power at all frequencies
 Gaussian- number of noise sources in system and
measurement device so sum Gaussian
15
Review II16
Gain due to Integrate and dump
17
Values of SNR (dB) after integrate and dump block and its constant
processing gain value.
Kalman filter Equations
18
An example tested for Kalman filter
 Test run for
projectile motion
 Measurements
corrupted with noise
provided with
incorrect initial
values yet tracking
done
 Role of parameters
present in the
equation understood
19
Formation of filter equations for
PLL20
 Phase difference and frequency difference
were selected to be the parameters for state
equations
 Requirements: Design of FLL, error variance
in measurement of phase and frequency
 Deciding the control inputs for the state
equations
 Finding variance for different values of C/N0
which are 40 dB-Hz to 80 dB-Hz for GPS
signals
 Measurement matrix becomes [1 2*pi*T ;0 1]

FLL Design
21
 Provides frequency difference between
incoming and locally generated signals
 Equation as follows:
atan2(dot,cross)/(t2-t1)
 Where dot = IP1 IP2 + QP1 QP2
cross = IP1 QP2 − IP2 × QP1
 This discriminator is optimal at low to high
signal to noise ratios
FLL Loop
22
Benefits of kalman filtering and
costas loop23
 Loop is unaffected by sign change due to data
bits due to use of division of in-phase and
quadrature components
 Limitation of low bandwidth of loop filter is
overcome by using kalman filter.
 Able to track even in case of high velocity
users having high doppler frequency
 Optimal estimate using all available
measurements
Different Filter implementations
24
 Smoother-Based GPS Signal Tracking in a
Software Receiver, Mark L. Psiaki, Cornell
University
 Kalman Filter Based Tracking Algorithms For
Software GPS Receivers, Mathew
Lashley, Thesis, Auburn University
 Above two implemented and innovation of
change in input values done- desired output
values obtained
Challenges in design
25
 Non functioning of PLL due to divide by zero at
t=T as sine value dropped to zero
 Kalman filter not showing any output values
beyond first sample as first output came NaN
(not a number)
 Selection of values of error variance in
measurement (open loop or closed loop)
 State equation not producing desired output
 Very high variance in FLL output
Solutions to design challenges
26
 Addition of very small value (10e-6) to
Quadrature phase component to prevent
divide by zero error
 Debugging to find reason for non functioning
Kalman filter after first sample
 Source found to be initial values of FLL set as
zero causing NaN in output and the same loop
iterations again and again
 Initial values altered and output obtained
 Error variance measured for closed loops
Solutions to design challenges
27
 Process error variance and measurement error
variance measured setting up high values for
other
 State equation used input as frequency
difference output from FLL which failed to get
desired output
 So, difference of previous state of frequency
and FLL output taken
 FLL outputs averaged for decreasing variance
Results: Lock even in high
dynamics28
Results: Higher loop bandwidth
and locking29
Review III-Kalman filter based
GPS tracking
30
List of Simulations carried
out31
 PLL and FLL based on thesis by Matthew
Lashley
 PLL based on 2 papers by M L Psiaki - GPS
Signal Tracking in high dynamics and low C/N0
 One innovation in design of FLL using different
equations from those given in the papers
 Cascading of Kalman filter
 All simulations performed at 40 dB-Hz-at lower
value of SNR than the average 45 dB-Hz for
GPS signals
 Test for signal outage and whether or not signal
Kalman filter incorporation
32
Phase
discriminator
Kalman filter Loop filter
NCO to
feedback
Matthew Lashley thesis
33
 Equations
 Just depends on previous state, no input
values.
 Test performed show it is able to maintain
phase lock even after outage situation.
, 1 ,
, 1 ,
,
, 1
1 t 0
0 1 t *
0 0 1
c k c k
c k c k
c k
c k
f f
df df
dt dt
 


   
                     
     
Comparison: discriminator
output and kalman filtered output34
Another variant: Using
frequency difference for feedback35
PLL with 10 ms integration
time in outage36
 Increased integration time improves gain of the
integrate and dump block
 Upper limit is 10ms due to data bit transition
boundary
 Filter coefficients modified as sampling time
changed
 Initially it was taken as 1 ms, now increased to 10
ms which increases gain to 47 dB from 37 dB.
 Entire loop along with Kalman filter now works on
10 ms sampling time after integrate & dump
 Improvement in PLL performance even in outage
case as shown in results
Coventional PLL: failure
during outage37
Outage case in PLL with
kalman filter38
How this works
39
 Conventional PLL is not weighted and thus
due to fd being > fpullin it loses lock during
outage
 Kalman filter being weighted filter it effectively
neglects measurements during outage
 It predicts the present state values based on
the values just before signal outage occurs
and thus maintains phase lock
 Measurement error variance values increased
during outage to make it neglect
measurements
 Process error variance nearly zero
Model 2: based on papers
by M L Psiaki40
 Equations:
 Locks frequency but cannot lock phase offset
hence constant phase offset remains
, 1 ,
1 , 1 ,
,
, 1
1 t 0
0 1 t * 2* * * 0
0 0 1 0
c k c k re
k c k c k
c k
c k
f
x f f pi t
df df
dt dt
 
 

   
                                  
     
 ( 1) ( )1 2* * t 4* * t *re k k re kf x f     
Results by use of the model
41
Cascade of kalman filters
42
 Cascade tried for further reduction in noise
error variance
 Too much increase in computational
complexity
 One kalman filter block followed by other with
reduced measurement error variancePhase
discriminator
Kalman filter
Second
Kalman filter
Loop filter
NCO to
feedback
Results comparison
43
Conclusion
44
Criteria Conventional PLL K F based PLL
Constant phase offset Tracks for any value Tracks for any value
Constant frequency
offset
Can track upto certain
range (pull-in)
Can track upto much
higher range than
conventional
Frequency modulated
signal
Can handle for very low
dynamics
Can track high dynamics
Signal outage Completely unlocks and
cannot attain lock again
Attains lock immediately
on re appearance of
signal
Post signal outage Re-acquisition required No requirement of
carrying out acquisition
again
Measurement noise
variance
Same amount as found
in actual measurements
Reduction in variance by
use of state equations
References
45
 Fundamentals of Global Positioning System Receivers: A Software
Approach, James Bao-Yen Tsui, John Wiley & Sons, INC.
 Spilker, Jr., J. J. (1996a). Fundamentals of Signal Tracking Theory
 Parkinson, B.W. (1996). Introduction and Heritage of NAVSTAR, the Global
Positioning System, Volume 1, American Institute of Aeronautics and
Astronautics, Washington, DC.
 Improving Tracking Performance of PLL in High Dynamic
Applications, Department of Geomatics Engineering, by Ping Lian November
2004
 Thesis on Kalman Filter Based Tracking Algorithms For Software GPS
Receivers, Matthew Lashley
 Smoother-Based GPS Signal Tracking in a Software Receiver, Mark L.
Psiaki, Cornell University
 Extended Kalman Filter Methods for Tracking Weak GPS Signals Mark L. Psiaki
and Hee Jung, Cornell University, Ithaca, N.Y.
 Carrier tracking loop using adaptive two-stage kalman filter for high dynamics
situation K H Kim, G I Jee and J H Song, International Journal of
Thank You46
On a lighter note…

More Related Content

What's hot

Chapter2rev011611 student
Chapter2rev011611 studentChapter2rev011611 student
Chapter2rev011611 student
Diogo Lourenço
 

What's hot (20)

Making introductions
Making introductionsMaking introductions
Making introductions
 
Magic tee
Magic tee  Magic tee
Magic tee
 
13 05-curl-and-divergence
13 05-curl-and-divergence13 05-curl-and-divergence
13 05-curl-and-divergence
 
5. lec5 curl of a vector
5. lec5 curl of a vector5. lec5 curl of a vector
5. lec5 curl of a vector
 
Finite word length of IIR filters Limit cycles due to product round-off error...
Finite word length of IIR filters Limit cycles due to product round-off error...Finite word length of IIR filters Limit cycles due to product round-off error...
Finite word length of IIR filters Limit cycles due to product round-off error...
 
Bjt
BjtBjt
Bjt
 
Chapter2rev011611 student
Chapter2rev011611 studentChapter2rev011611 student
Chapter2rev011611 student
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
 
Bank soal antena ceria
Bank soal antena ceriaBank soal antena ceria
Bank soal antena ceria
 
Mobile satellite communication
Mobile satellite communicationMobile satellite communication
Mobile satellite communication
 
Robôs neutralizadores de bombas
Robôs neutralizadores de  bombasRobôs neutralizadores de  bombas
Robôs neutralizadores de bombas
 
Rangkaian Konverter
Rangkaian KonverterRangkaian Konverter
Rangkaian Konverter
 
dB or not dB? Everything you ever wanted to know about decibels but were afra...
dB or not dB? Everything you ever wanted to know about decibels but were afra...dB or not dB? Everything you ever wanted to know about decibels but were afra...
dB or not dB? Everything you ever wanted to know about decibels but were afra...
 
Laurent's Series & Types of Singularities
Laurent's Series & Types of SingularitiesLaurent's Series & Types of Singularities
Laurent's Series & Types of Singularities
 
Register dan Shift Register
Register dan Shift RegisterRegister dan Shift Register
Register dan Shift Register
 
Unit 8 Space Wave Propagation.pptx
Unit 8 Space Wave Propagation.pptxUnit 8 Space Wave Propagation.pptx
Unit 8 Space Wave Propagation.pptx
 
Linear modulation
Linear modulation Linear modulation
Linear modulation
 
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix DescriptionsRotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
Rotation in 3d Space: Euler Angles, Quaternions, Marix Descriptions
 
Radarve sonar
Radarve sonarRadarve sonar
Radarve sonar
 
CFAR
CFARCFAR
CFAR
 

Similar to Kalman Filter Based GPS Receiver

CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...
CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...
CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...
IJERA Editor
 
Ijsrdv1 i7021
Ijsrdv1 i7021Ijsrdv1 i7021
Ijsrdv1 i7021
ijsrd.com
 

Similar to Kalman Filter Based GPS Receiver (20)

Digital Implementation of Costas Loop with Carrier Recovery
Digital Implementation of Costas Loop with Carrier RecoveryDigital Implementation of Costas Loop with Carrier Recovery
Digital Implementation of Costas Loop with Carrier Recovery
 
Synchronization
SynchronizationSynchronization
Synchronization
 
F0331031037
F0331031037F0331031037
F0331031037
 
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering ChannelsLTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
LTE Physical Layer Transmission Mode Selection Over MIMO Scattering Channels
 
CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...
CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...
CS Based Channel Estimation for OFDM Systems under Long Delay Channels Using ...
 
Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...
Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...
Low Peak to Average Power Ratio and High Spectral Efficiency Using Selective ...
 
Doppler Estimation Method of Using Frequency Channel Response for OFDM System...
Doppler Estimation Method of Using Frequency Channel Response for OFDM System...Doppler Estimation Method of Using Frequency Channel Response for OFDM System...
Doppler Estimation Method of Using Frequency Channel Response for OFDM System...
 
Frequency and Power Estimator for Digital Receivers in Doppler Shift Environm...
Frequency and Power Estimator for Digital Receivers in Doppler Shift Environm...Frequency and Power Estimator for Digital Receivers in Doppler Shift Environm...
Frequency and Power Estimator for Digital Receivers in Doppler Shift Environm...
 
Db33621624
Db33621624Db33621624
Db33621624
 
Db33621624
Db33621624Db33621624
Db33621624
 
Kalman Filter
 Kalman Filter    Kalman Filter
Kalman Filter
 
Adc lab
Adc labAdc lab
Adc lab
 
Jx3417921795
Jx3417921795Jx3417921795
Jx3417921795
 
Peak to avrage power ratio
Peak to avrage power ratioPeak to avrage power ratio
Peak to avrage power ratio
 
System Level 5G Evaluation of GFDM Waveforms in an LTE-A Platform
System Level 5G Evaluation of GFDM Waveforms in an LTE-A PlatformSystem Level 5G Evaluation of GFDM Waveforms in an LTE-A Platform
System Level 5G Evaluation of GFDM Waveforms in an LTE-A Platform
 
Design Ofdm System And Remove Nonlinear Distortion In OFDM Signal At Transmit...
Design Ofdm System And Remove Nonlinear Distortion In OFDM Signal At Transmit...Design Ofdm System And Remove Nonlinear Distortion In OFDM Signal At Transmit...
Design Ofdm System And Remove Nonlinear Distortion In OFDM Signal At Transmit...
 
Ijsrdv1 i7021
Ijsrdv1 i7021Ijsrdv1 i7021
Ijsrdv1 i7021
 
Impact of Clipping and Filtering on Peak to Average Power Ratio of OFDM System
Impact of Clipping and Filtering on Peak to Average Power Ratio of OFDM SystemImpact of Clipping and Filtering on Peak to Average Power Ratio of OFDM System
Impact of Clipping and Filtering on Peak to Average Power Ratio of OFDM System
 
Interference Mitigation & Massive MIMO for 5G - A Summary of CPqDs Results
Interference Mitigation & Massive MIMO for 5G - A Summary of CPqDs ResultsInterference Mitigation & Massive MIMO for 5G - A Summary of CPqDs Results
Interference Mitigation & Massive MIMO for 5G - A Summary of CPqDs Results
 
Filter-Type Fault Detection and Exclusion (FDE) on Multi-Frequency GNSS Receiver
Filter-Type Fault Detection and Exclusion (FDE) on Multi-Frequency GNSS ReceiverFilter-Type Fault Detection and Exclusion (FDE) on Multi-Frequency GNSS Receiver
Filter-Type Fault Detection and Exclusion (FDE) on Multi-Frequency GNSS Receiver
 

More from Falak Shah (8)

Real Time Visual Tracking
Real Time Visual Tracking Real Time Visual Tracking
Real Time Visual Tracking
 
Sherlock holmes
Sherlock holmesSherlock holmes
Sherlock holmes
 
Channel models for fso
Channel models for fsoChannel models for fso
Channel models for fso
 
Free Space Optics
Free Space Optics Free Space Optics
Free Space Optics
 
Role of radar in microwaves
Role of radar in microwavesRole of radar in microwaves
Role of radar in microwaves
 
Fiber Optic connector
Fiber Optic connectorFiber Optic connector
Fiber Optic connector
 
hydrolysis for energy storage
hydrolysis for energy storagehydrolysis for energy storage
hydrolysis for energy storage
 
Wimax
WimaxWimax
Wimax
 

Recently uploaded

Recently uploaded (20)

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Kalman Filter Based GPS Receiver

  • 1. KALMAN FILTER BASED GPS TRACKING Prepared by: Falak Shah (0BEC082) Semester VIII (EC), Nirma University Guided by: Mr. Ankesh Garg (DCTG-SAC/ISRO)
  • 2. Table of contents  GPS overview  Signal structure of GPS  Acquisition  Tracking  Conventional tracking loop  Conversion from continuous to discrete domain  Kalman filter 2
  • 3. Global positioning system: overview  Constellation of 24 satellites  Performance requirements of GPS systems  10-30 m accuracy  User dynamics  Worldwide coverage  Minimum number of required references for determining position in 3-D is 4  5 used to calculate user position out of 7 visible 3
  • 5. Signal structure of GPS  Coarse/ Acquisition (C/A code) and P codes  2 frequencies L1 centered at1575.42 MHz and L2 at 1227.6 MHz. (multiple of 10.23 MHz clock)  where SL1 is the signal at L1 frequency, Ap is the amplitude of the P code, P(t) and D(t) represent the phase of the P code and data code. f1 is the L1 frequency, is the initial phase.  GPS signal phase modulated BPSK L1 p 1 c 1S =A P(t)D(t) cos(2 f t + ) + A C(t)D(t) sin(2 f t + )     5
  • 6. Signal structure of GPS  P code and C/A code are bi-phase modulated at 10.23 MHz and 1.023 MHz Gold codes  C/A code generated with use of a LSR of length 10 and is 1023 bits long  1ms data enough to find its beginning  C/A codes generated and autocorrelation and cross correlation properties verified  Peak provides starting point of the code  Navigation data is 20 ms long- contains 20 C/A codes 6
  • 8. Autocorrelation and cross- correlation properties of C/A code8
  • 9. Acquisition  Search for frequency over is +/- 10 kHz which is maximum Doppler range  2-D search for carrier frequency and starting point of C/A code  IF is at 21.25 MHz, sampling frequency is 5 MHz. So, center of the signal is at 1.25 MHz.  Maximum data record used for acquisition is 10 ms since data is 20 ms long  Acquisition uses circular correlation for detection ( ) ( ) *( )Z k X k H k 9
  • 10. Tracking loop  After acquisition- approximate carrier frequency and starting point of C/A code known  More accurate approximation by tracking  Continuously following the incoming carrier & code  Acquisition performed at regular intervals or on unlocking of loop  Maximum noise bandwidth, sampling time and damping factor are known  Loop gain parameters, filter coefficients calculated 10
  • 11. Tracking loop Costas phase lock loop Conventional tracking loop 11
  • 12. PLL equations 2 0 ( )nB H j df    2 1 ( ) 1 for first order PLL ( ) 1/ for 2nd order PLL F s F s s s     0 0H(s)=k ( ) / k ( )d dOverall transfer function k F s s k F s Where k0 and kd are gain of discriminator and NCO respectively. F(s) being the loop filter transfer function given by 2 1 are calculated based on given noise bandwidth and sampling frequency. Noise bandwidth is given by and  n out to be B / 2 ( 1/ 4 )n Which comes      12
  • 13. Continuous to discrete domain transforms  Bilinear transform and infinite impulse transform most commonly used  Convert individual blocks from continuous to discrete domain rather than complete digital design 1 1 1 2 / 1 s Bilinear transform performed as z s t z          invariant transform as k k k s s k d and impulse a a T s s z e T      13 0 0 domain becomes ( ) ( ) 1 ( ) ( ) d d Equation in discrete k k F z N z k k F z N z
  • 15. Kalman filter  Optimal recursive data processing algorithm  Optimal in all aspects- uses all measurements available regardless of their precision  Minimises statistical error by doing this  Recursive-does not need to keep all previous measurements in memory  Assumptions- linear system model with white and Gaussian noise  Whiteness- noise value not correlated in time & equal power at all frequencies  Gaussian- number of noise sources in system and measurement device so sum Gaussian 15
  • 17. Gain due to Integrate and dump 17 Values of SNR (dB) after integrate and dump block and its constant processing gain value.
  • 19. An example tested for Kalman filter  Test run for projectile motion  Measurements corrupted with noise provided with incorrect initial values yet tracking done  Role of parameters present in the equation understood 19
  • 20. Formation of filter equations for PLL20  Phase difference and frequency difference were selected to be the parameters for state equations  Requirements: Design of FLL, error variance in measurement of phase and frequency  Deciding the control inputs for the state equations  Finding variance for different values of C/N0 which are 40 dB-Hz to 80 dB-Hz for GPS signals  Measurement matrix becomes [1 2*pi*T ;0 1] 
  • 21. FLL Design 21  Provides frequency difference between incoming and locally generated signals  Equation as follows: atan2(dot,cross)/(t2-t1)  Where dot = IP1 IP2 + QP1 QP2 cross = IP1 QP2 − IP2 × QP1  This discriminator is optimal at low to high signal to noise ratios
  • 23. Benefits of kalman filtering and costas loop23  Loop is unaffected by sign change due to data bits due to use of division of in-phase and quadrature components  Limitation of low bandwidth of loop filter is overcome by using kalman filter.  Able to track even in case of high velocity users having high doppler frequency  Optimal estimate using all available measurements
  • 24. Different Filter implementations 24  Smoother-Based GPS Signal Tracking in a Software Receiver, Mark L. Psiaki, Cornell University  Kalman Filter Based Tracking Algorithms For Software GPS Receivers, Mathew Lashley, Thesis, Auburn University  Above two implemented and innovation of change in input values done- desired output values obtained
  • 25. Challenges in design 25  Non functioning of PLL due to divide by zero at t=T as sine value dropped to zero  Kalman filter not showing any output values beyond first sample as first output came NaN (not a number)  Selection of values of error variance in measurement (open loop or closed loop)  State equation not producing desired output  Very high variance in FLL output
  • 26. Solutions to design challenges 26  Addition of very small value (10e-6) to Quadrature phase component to prevent divide by zero error  Debugging to find reason for non functioning Kalman filter after first sample  Source found to be initial values of FLL set as zero causing NaN in output and the same loop iterations again and again  Initial values altered and output obtained  Error variance measured for closed loops
  • 27. Solutions to design challenges 27  Process error variance and measurement error variance measured setting up high values for other  State equation used input as frequency difference output from FLL which failed to get desired output  So, difference of previous state of frequency and FLL output taken  FLL outputs averaged for decreasing variance
  • 28. Results: Lock even in high dynamics28
  • 29. Results: Higher loop bandwidth and locking29
  • 30. Review III-Kalman filter based GPS tracking 30
  • 31. List of Simulations carried out31  PLL and FLL based on thesis by Matthew Lashley  PLL based on 2 papers by M L Psiaki - GPS Signal Tracking in high dynamics and low C/N0  One innovation in design of FLL using different equations from those given in the papers  Cascading of Kalman filter  All simulations performed at 40 dB-Hz-at lower value of SNR than the average 45 dB-Hz for GPS signals  Test for signal outage and whether or not signal
  • 32. Kalman filter incorporation 32 Phase discriminator Kalman filter Loop filter NCO to feedback
  • 33. Matthew Lashley thesis 33  Equations  Just depends on previous state, no input values.  Test performed show it is able to maintain phase lock even after outage situation. , 1 , , 1 , , , 1 1 t 0 0 1 t * 0 0 1 c k c k c k c k c k c k f f df df dt dt                                    
  • 34. Comparison: discriminator output and kalman filtered output34
  • 35. Another variant: Using frequency difference for feedback35
  • 36. PLL with 10 ms integration time in outage36  Increased integration time improves gain of the integrate and dump block  Upper limit is 10ms due to data bit transition boundary  Filter coefficients modified as sampling time changed  Initially it was taken as 1 ms, now increased to 10 ms which increases gain to 47 dB from 37 dB.  Entire loop along with Kalman filter now works on 10 ms sampling time after integrate & dump  Improvement in PLL performance even in outage case as shown in results
  • 38. Outage case in PLL with kalman filter38
  • 39. How this works 39  Conventional PLL is not weighted and thus due to fd being > fpullin it loses lock during outage  Kalman filter being weighted filter it effectively neglects measurements during outage  It predicts the present state values based on the values just before signal outage occurs and thus maintains phase lock  Measurement error variance values increased during outage to make it neglect measurements  Process error variance nearly zero
  • 40. Model 2: based on papers by M L Psiaki40  Equations:  Locks frequency but cannot lock phase offset hence constant phase offset remains , 1 , 1 , 1 , , , 1 1 t 0 0 1 t * 2* * * 0 0 0 1 0 c k c k re k c k c k c k c k f x f f pi t df df dt dt                                                    ( 1) ( )1 2* * t 4* * t *re k k re kf x f     
  • 41. Results by use of the model 41
  • 42. Cascade of kalman filters 42  Cascade tried for further reduction in noise error variance  Too much increase in computational complexity  One kalman filter block followed by other with reduced measurement error variancePhase discriminator Kalman filter Second Kalman filter Loop filter NCO to feedback
  • 44. Conclusion 44 Criteria Conventional PLL K F based PLL Constant phase offset Tracks for any value Tracks for any value Constant frequency offset Can track upto certain range (pull-in) Can track upto much higher range than conventional Frequency modulated signal Can handle for very low dynamics Can track high dynamics Signal outage Completely unlocks and cannot attain lock again Attains lock immediately on re appearance of signal Post signal outage Re-acquisition required No requirement of carrying out acquisition again Measurement noise variance Same amount as found in actual measurements Reduction in variance by use of state equations
  • 45. References 45  Fundamentals of Global Positioning System Receivers: A Software Approach, James Bao-Yen Tsui, John Wiley & Sons, INC.  Spilker, Jr., J. J. (1996a). Fundamentals of Signal Tracking Theory  Parkinson, B.W. (1996). Introduction and Heritage of NAVSTAR, the Global Positioning System, Volume 1, American Institute of Aeronautics and Astronautics, Washington, DC.  Improving Tracking Performance of PLL in High Dynamic Applications, Department of Geomatics Engineering, by Ping Lian November 2004  Thesis on Kalman Filter Based Tracking Algorithms For Software GPS Receivers, Matthew Lashley  Smoother-Based GPS Signal Tracking in a Software Receiver, Mark L. Psiaki, Cornell University  Extended Kalman Filter Methods for Tracking Weak GPS Signals Mark L. Psiaki and Hee Jung, Cornell University, Ithaca, N.Y.  Carrier tracking loop using adaptive two-stage kalman filter for high dynamics situation K H Kim, G I Jee and J H Song, International Journal of
  • 47. On a lighter note…