﻿1
00:00:00,760 --> 00:00:01,600
‫Welcome back.

2
00:00:02,140 --> 00:00:07,370
‫In order to write less, I'm going to make some abbreviations instead of cosine.

3
00:00:07,630 --> 00:00:12,810
‫I'm just going to write C and instead of sine I'm just going to write S.

4
00:00:13,150 --> 00:00:23,650
‫So let's say cosine theta would simply be C theta and sine theta would simply be as theta and the same

5
00:00:23,650 --> 00:00:24,880
‫thing with tangent.

6
00:00:25,030 --> 00:00:31,130
‫I'm just going to say that it's t so tangent theta would be t theta.

7
00:00:31,600 --> 00:00:40,540
‫So let's start driving our product of rotation matrices for this convention and the nomenclature for

8
00:00:40,540 --> 00:00:50,620
‫this convention is like this are X, Y, Z and then parentheses Gamma Better and alpha.

9
00:00:51,130 --> 00:01:01,900
‫Now what it means is that first of all, rotate gamma radiance about the inertial x axis.

10
00:01:02,410 --> 00:01:15,430
‫Then after that, rotate beta radiance about the inertial y axis and then finally rotate alpha radiance

11
00:01:15,820 --> 00:01:18,580
‫about the inertial Z axis.

12
00:01:19,030 --> 00:01:22,380
‫And in our course, of course, it would have been like this.

13
00:01:22,720 --> 00:01:30,550
‫This would be Phi, this would be Theta, and then this would be BPCI, because we said that Gamma equals

14
00:01:30,550 --> 00:01:36,500
‫Phi, Beta equals Theta and then Alpha equals PSI.

15
00:01:37,000 --> 00:01:39,430
‫This is our our Z Matrix.

16
00:01:40,090 --> 00:01:42,340
‫This is our r y matrix.

17
00:01:42,880 --> 00:01:45,040
‫And this is our, our X matrix.

18
00:01:45,640 --> 00:01:54,850
‫So our X, Y, Z, Gamma, better and Alpha, it equals this product.

19
00:01:55,360 --> 00:02:05,380
‫And notice if we choose this convention then the angle gamma goes into this r x matrix, the angle better

20
00:02:05,380 --> 00:02:17,380
‫goes into this r y matrix and then the angle alpha goes into this r z matrix y because we first rotate

21
00:02:17,380 --> 00:02:27,670
‫about the X axis, then Y axis and then Z axis, and they are of course inertial axis and the order

22
00:02:27,670 --> 00:02:37,120
‫of the angles in this parenthesis, better and Alpha must follow the order of this axis here.

23
00:02:37,570 --> 00:02:45,310
‫So X, Y, Z, Gamma, better in Alpha and that's what this convention means.

24
00:02:45,760 --> 00:02:54,930
‫You first rotate about the inertial x axis by Gamma Radiance, then about the inertial y axis by better

25
00:02:54,940 --> 00:02:59,400
‫radians and then about the inertia axis by alpha gradients.

26
00:02:59,800 --> 00:03:05,490
‫And so if you write these matrices out, then this is what you need to multiply.

27
00:03:06,040 --> 00:03:15,430
‫And so we will first multiply this thing and the same thing here as well, and then we will multiply

28
00:03:15,850 --> 00:03:26,560
‫this thing and the same thing here like this and so are Y times are X equals this matrix here.

29
00:03:27,190 --> 00:03:34,750
‫And so the red ones, they are the components from this matrix and then the white ones are the components

30
00:03:34,750 --> 00:03:36,250
‫from this matrix here.

31
00:03:36,700 --> 00:03:39,990
‫And then we just put our R Z here.

32
00:03:40,570 --> 00:03:46,930
‫And so now we take this blue matrix and then we're going to multiply by this one here.

33
00:03:47,380 --> 00:03:54,460
‫And so if you multiply these matrices together, then you will get this matrix here and this is your

34
00:03:54,460 --> 00:03:57,040
‫final product matrix.

35
00:03:57,640 --> 00:04:02,910
‫And this product matrix is valid for this convention.

36
00:04:03,580 --> 00:04:06,460
‫When we rotate about the inertia from Axis.

37
00:04:07,060 --> 00:04:15,160
‫And it is also valid for this convention if we rotate about the moving frame axis.

38
00:04:15,670 --> 00:04:20,200
‫But of course, the rotation order is in the opposite direction.

39
00:04:20,800 --> 00:04:24,880
‫And now this is also very important here in the parentheses.

40
00:04:24,880 --> 00:04:30,470
‫I will write Alpha, Beta and Gamma.

41
00:04:31,000 --> 00:04:32,650
‫So notice what just happened.

42
00:04:33,250 --> 00:04:42,280
‫When we go from fixed angles to oilor angles, we change the order of axis and we also change the order

43
00:04:42,280 --> 00:04:43,180
‫of the angles.

44
00:04:43,600 --> 00:04:52,690
‫So now what I'm saying is that first rotate about the moving frame, the axis by Alpha Radians, then

45
00:04:52,690 --> 00:04:59,890
‫about the moving frame y axis by better radians, and then about the moving from X axis.

46
00:05:00,260 --> 00:05:10,340
‫I got my radiance, so that's what you need to keep in mind if you want to apply this product of mattresses

47
00:05:10,850 --> 00:05:14,920
‫to both conventions, this and this.

48
00:05:15,500 --> 00:05:22,520
‫In other words, if you write something like this, ah, and then lowercase letters, the Y X.

49
00:05:23,060 --> 00:05:25,760
‫So we're talking about the moving frame axis.

50
00:05:26,330 --> 00:05:35,300
‫But if you don't change the order of the angles and you still write Gummo Better and Alpha, that would

51
00:05:35,300 --> 00:05:42,380
‫be wrong because you would be saying rotate about the body from axis by Gamma Radiance and then here

52
00:05:42,380 --> 00:05:50,600
‫you would say rotate about the inertia from x axis by Gamma Radiance and then here rotate about the

53
00:05:50,600 --> 00:05:59,180
‫moving from y axis by better radians and then here rotate about the inertia frame y axis bebetter radians

54
00:05:59,660 --> 00:06:07,370
‫and then again here rotate about the moving frame x axis by alpha radians and then here rotate about

55
00:06:07,370 --> 00:06:10,760
‫the inertia frame Z axis by Alpha Radians.

56
00:06:11,270 --> 00:06:12,320
‫This would be wrong.

57
00:06:12,920 --> 00:06:18,740
‫You could not apply this product of matrices to this convention.

58
00:06:19,370 --> 00:06:20,470
‫It would be wrong.

59
00:06:20,930 --> 00:06:29,230
‫So this product is valid for these two conventions if you change the order of axis and the angles.

60
00:06:29,630 --> 00:06:37,100
‫So this convention is for fixed axis, this for moving axis, and for you to know in this course for

61
00:06:37,100 --> 00:06:41,890
‫our drone we will be using this convention here.

62
00:06:42,530 --> 00:06:49,670
‫This will be our convention, which means that this will be our rotation matrix product.

63
00:06:50,120 --> 00:06:59,720
‫And by the way, some videos ago we did this exercise, we used this convention, and then we rotated

64
00:07:00,290 --> 00:07:08,630
‫about the inertial X, Y and then Z axis and all rotations were over to radians.

65
00:07:08,930 --> 00:07:13,580
‫So your Fifita and BPCI, they were all over to radians.

66
00:07:13,970 --> 00:07:19,450
‫In this case, your gamma, beta and Alpha would be pi over to radians as well.

67
00:07:20,000 --> 00:07:28,910
‫So if you substitute all these angles in this product of rotation matrices with PI over to radians,

68
00:07:29,480 --> 00:07:37,490
‫if you make all the angles here power to radians, then you will see that this matrix, it will become

69
00:07:37,640 --> 00:07:42,650
‫this one here because they are the same thing is just here.

70
00:07:42,680 --> 00:07:51,830
‫You are representing this rotation matrix in terms of angle variables and here you have taken a specific

71
00:07:52,040 --> 00:07:56,240
‫value for all the angles, which was power to radians.

72
00:07:56,750 --> 00:07:58,750
‫And so you got a specific matrix.

73
00:07:59,150 --> 00:08:05,990
‫So just try it out, substitute all the angles here with PI over to Radiance, and then you will see

74
00:08:06,290 --> 00:08:13,280
‫that this matrix will become this RCR Y and our X matrix.

75
00:08:13,910 --> 00:08:18,230
‫You will have minus one here, one here and then one here.

76
00:08:18,800 --> 00:08:21,700
‫And then the rest of the elements will be zeros.

77
00:08:22,310 --> 00:08:34,850
‫And remember, in this course, gamma is our fire irradiance, then beta is our theta radiance and then

78
00:08:34,850 --> 00:08:38,620
‫Alpha is our psi radians.

79
00:08:39,110 --> 00:08:47,330
‫So if you want to know this product of rotation matrices in terms of Phi Theta and PSI, then you just

80
00:08:47,330 --> 00:08:55,190
‫replace these angles instead of sine gamma you would write sine PHI and that's it.

81
00:08:55,710 --> 00:09:05,450
‫And now in the next video we will derive this product, but for another convention for R, A, Z, Y,

82
00:09:05,480 --> 00:09:12,620
‫X, where we first rotate about the inertial frames axis, then inertial frame Y axis and then inertial

83
00:09:12,620 --> 00:09:13,660
‫frame x axis.

84
00:09:14,060 --> 00:09:15,500
‫See you in the next video.

