Avionics calculating orientation of UAV using Direction Cosine Matrix

Few days back we were working on using direction cosine matrix #DCM for calculating the orientation of a #UAV given the angular velocity vector. We decided to publish it hopefully it will be usefull to the students of learning integrated navigation.

So forexample we are given an angular veolcity vector:

 −0.10 · cos (Ω1t)
omegabb/o  = 0.10·sin(Ω1t) 

 where Ω1 = −4 rad/s and Ω2 = 1 rad/s.

We would like to find the spacecraft’s orientation (relative to it’s initial state) at t = 1000 s.

Here is the solution in Matlab: