Guest User

Untitled

a guest
Apr 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rotationMatrix :: (Typed a, Num a) => [Stream a] -> Stream a -> [Stream a]
  2. rotationMatrix (roll:pitch:yaw:[]) time = [ 0,           -yaw*time,  time*pitch,
  3.                                             yaw*time,    0,         -time*roll,
  4.                                             -time*pitch, time*roll,  0          ]
  5.  
  6.   updateMatrix[0] =  0;
  7.   updateMatrix[1] = -G_Dt * correctedRateVector[YAW];    // -r
  8.   updateMatrix[2] =  G_Dt * correctedRateVector[PITCH];  //  q
  9.   updateMatrix[3] =  G_Dt * correctedRateVector[YAW];    //  r
  10.   updateMatrix[4] =  0;
  11.   updateMatrix[5] = -G_Dt * correctedRateVector[ROLL];   // -p
  12.   updateMatrix[6] = -G_Dt * correctedRateVector[PITCH];  // -q
  13.   updateMatrix[7] =  G_Dt * correctedRateVector[ROLL];   //  p
  14.   updateMatrix[8] =  0;
Add Comment
Please, Sign In to add comment