How to Implement Inertial Navigation System Equations in MATLAB?

In summary, Pieter did not understand the relevant equations. He tried to use MATLAB to solve the equations, but he did not understand them well enough. He needs to read more about differential equations and navigation to be able to solve this problem.
  • #1
Pieter-S
10
0
Dear :),
could some one please guide me in the right direction to answer the following questions:

1) using MATLAB, implement the differential equations that describe the evolution with time of along-track , cross-track and vertical position. (Inertial Navigation System).

and

2) for a speed of 250 m/s at a height above the Earth of 10km, calculate the evolution of x,y,z positions over a period of 5 minutes for an initial error in y of 1000 m.

3) for the same conditions, calculate the evolution of x, y and z over the same period (5 minutes)for an initial error in x of 10 m.




Relevant equations:

surfing on websites , I managed to find the following relevant equations:

d(phi)/dt = Vn/(Rm+h),

and d(lamda)/dt=(1/cos*phi(T))*VE/(Rp+h)

Vn and Ve , is the speed of the object in the north and east direction, obviously the speed is given, but not in which direction, so again I need to assume then that the speed is in the mentioned direction.



The attempted solution:

I could calculate these by using World Geodetic System (WGS) and assume Geocentric latitude angle (ΦC) and
Geodetic latitude angle (ΦT). But I am not sure if that is going to be acceptable, I think the question force me to believe that the speed is constant and the path is perfect circular.


any help is more than welcome.

thanks,

Pieter Haagendijk:)
 
Physics news on Phys.org
  • #2
What are the relevant equations here? This is homework, after all. You should have followed the template. You don't need to do a google search for the relevant equations. You need to read your class notes or your textbook.
 
  • #3
Well, I was ill during the lecture sessions, and I don't have contact with my study mates. I sent an email to lecturer though, but he said that I could google this out.

King regards,

Pieter
 
  • #4
Google "Clohessy-Wiltshire equations".
 
  • #5
Thanks you for your prompt response ,

Hill–Clohessy–Wiltshire (HCW) describes two targets chasing each other. mine case is s simple mass point.
 
  • #6
The exact same equations apply to this problem.

Your case is not a simple point mass. You have the true orbit, which is unknown (but which you can model) and the orbit per your IMU. Unless your IMU state is updated per some state measurement, the true and computed orbits will diverge per the CW equations.
 
  • #7
I am so sorry to say, but this sounds like an music to my ears:(
 
  • #8
What did you mean by that? I don't think you really meant "music to my ears." That is an English idiom meaning roughly "exactly what I wanted to hear."
 
  • #9
Hi,
Well I thought in the first place that I could solve this problem by following your recommendation, At least that is what I hoped.

by looking further and reading some of those navigation books, the problem is complicated than it actually looks.

so still I struggle to give a good go.

cheers,

Pieter
 
  • #10
What have you tried?

Part 1 of your question asks you to "implement [in MATLAB] the differential equations that describe the evolution with time of along-track , cross-track and vertical position." Parts 2 and 3 implicitly require you to use your MATLAB script. You aren't going to make any progress on these two part of the problem until you have solved part 1.Have you done anything with regard to part 1? I gave a huge hint in post #4 regarding the differential equations that you need to implement.
 
  • #11
Yes, I did tried to implement those equation in simple m file, but it is not complete due initial conditions as this is unknown:(,

I do appreciate your response and patience:).

cheers,

Pieter
 
  • #12
You do not need to know the details of the initial conditions. They are irrelevant. You are given an initial speed and altitude. Assume a spherical Earth.

Suppose two real vehicles are separated by a small relative position and small relative velocity. The evolution of the relative states of these vehicles can be expressed in terms of a linearized set of differential equations.

Now suppose the state difference between those vehicles at some point in time is exactly equal to your given state error. The evolution of your error state is exactly the same as the state evolution of the relative states of these two vehicles.

Finally, suppose only one of these vehicles is real. The other is a fictitious vehicle whose state is given by your (erroneous) inertial navigation system. It doesn't matter than the other vehicle isn't real. The evolution of your error state is exactly the same as the state evolution of the relative states of the real vehicle and a fictitious one that is moving along with your navigated state.
 
  • #13
Thanks ever so much sir,

I am going to work on it, I will let you know if there still some uncertainties.

have a good night:)

Regards,
Pieter
 
  • #14
Pieter you must be in my class, I have the same assignment. In class he gave us the equations:

ax (x is subscript)= xdotdot - (2v/r0)*zdot - (v/r0)^2*x
ay = ydotdot
az = zdotdot + (2v/r0)*xdot - (v/r0)^2

but he was very vague about the symbol meanings. i don't know what ax refers to, as xdotdot and ax are both accelerations. also there is no definition of v, which I am assuming is a velocity, but I am not sure whether the 250m/s initial condition is v or xdot.

once i have some clarity on this i imagine its just a case of inputting them into MATLAB and integrating them over the time frame. i just don't know where to input the error, is it just as simple as entering the correct initial conditions, as well as the correct initial conditions+error and plotting the two lines to demonstrate the difference? if anyone else recognises these equations and can shed some light on the definition of each term it would be much appreciated. i just need to know the difference between v and xdot and also between ax and xdotdot. the lecturer is too busy to see me before the deadline apparently...
 
  • #15
hmmm, think i figured it out from the derivation. ax,ay,az are the body accelerations and xdotdot, ydotdot and zdotdot are the Earth axis accelerations. still, if someone could confirm that would be appreciated.
 

FAQ: How to Implement Inertial Navigation System Equations in MATLAB?

What is an Inertial Navigation System (INS)?

An Inertial Navigation System (INS) is a navigation device that uses a combination of accelerometers and gyroscopes to track the position, orientation, and velocity of a moving object. It is commonly used in airplanes, ships, and other vehicles.

How does an INS work?

An INS works by measuring the acceleration and rotation of an object in three dimensions. The accelerometers and gyroscopes provide data that is used to calculate the motion of the object and its position relative to a starting point. This data is then used to update the position and velocity of the object as it moves.

What are the advantages of using an INS?

There are several advantages of using an INS for navigation. It is not affected by external factors such as weather or magnetic fields, making it reliable in any environment. It also does not require external references or signals, making it useful for long-distance travel.

What are the limitations of an INS?

An INS is subject to errors over time, as even small inaccuracies in initial position or velocity measurements can accumulate and lead to significant errors in the calculated position. It also requires periodic calibration to maintain accuracy. Additionally, it cannot determine absolute position and may require additional systems for precise navigation.

What are some common applications of INS?

INS is used in a variety of applications, including commercial and military aircraft, ships and submarines, missiles, and spacecraft. It is also used in land vehicles, such as cars and trains, and in navigation systems for drones and robots.

Similar threads

Replies
1
Views
571
Replies
8
Views
1K
Replies
9
Views
2K
Replies
2
Views
6K
Replies
1
Views
2K
Replies
2
Views
8K
Back
Top