﻿1
00:00:00,420 --> 00:00:01,230
‫Welcome back.

2
00:00:01,680 --> 00:00:07,650
‫So if you look straight into the x axis, then you should get something like this.

3
00:00:08,070 --> 00:00:12,300
‫This is for the positive rotation and this is for the negative rotation.

4
00:00:12,780 --> 00:00:18,510
‫So you can see that you can make three to the projections.

5
00:00:18,930 --> 00:00:28,800
‫However, no matter which one you choose, you're still rotating about one axis, either X, Y or Z

6
00:00:28,800 --> 00:00:29,400
‫axis.

7
00:00:29,940 --> 00:00:39,240
‫But when you work in 3D, then your body frame or your drone can have an orientation that requires you

8
00:00:39,240 --> 00:00:49,020
‫to rotate your body frame about more than one axis, like in this case here, the frame in red, it's

9
00:00:49,020 --> 00:00:49,920
‫the body frame.

10
00:00:50,250 --> 00:00:55,260
‫You see, you have your body frame, X, Y and Z axis.

11
00:00:55,630 --> 00:01:06,060
‫And here we have rotated the body frame about the Z axis, then about the Y axis and then about the

12
00:01:06,060 --> 00:01:11,480
‫X axis just to avoid to have too many arrows here.

13
00:01:11,850 --> 00:01:19,310
‫I've only taken one axis, the X axis, and I only tracked that in order to reach the body frame.

14
00:01:19,710 --> 00:01:24,080
‫So first we rotate the angle about the Z axis.

15
00:01:24,090 --> 00:01:29,360
‫So we go from here to here, let's call it small X prime.

16
00:01:29,790 --> 00:01:34,210
‫Then we rotate about the Y axis at an angle theta.

17
00:01:34,650 --> 00:01:44,610
‫So then this small X prime goes a little bit down diagonally, let's call it small X double prime.

18
00:01:45,210 --> 00:01:54,690
‫And then we rotate about the x axis and then angle fi and then this X double prime will move here.

19
00:01:55,350 --> 00:02:04,200
‫So one thing that we need to note here is that you won't reach this orientation if you only rotate about

20
00:02:04,200 --> 00:02:05,440
‫one axis.

21
00:02:05,940 --> 00:02:11,820
‫However, you can reach that orientation by rotating about all the three axis.

22
00:02:12,330 --> 00:02:22,170
‫And that is why in three D, you don't only have a your angle BPCI, which is rotating about the Z axis,

23
00:02:22,470 --> 00:02:32,390
‫you also have a pitch angle Seeta, which is rotating about the Y axis and you have a role angle phi

24
00:02:32,430 --> 00:02:34,740
‫which is rotating about the x axis.

25
00:02:35,520 --> 00:02:37,710
‫So here's another exercise for you.

26
00:02:38,380 --> 00:02:46,020
‫We have already seen how the rotation matrix in 3D looks like when you rotate about the Z axis.

27
00:02:46,680 --> 00:02:55,920
‫Now your job is to construct a three D rotation matrix that represents the body frame with respect to

28
00:02:55,920 --> 00:03:01,560
‫the inertial frame when their y axis overlap.

29
00:03:02,070 --> 00:03:05,610
‫And the same thing you have to find for the X axis as well.

30
00:03:06,300 --> 00:03:12,530
‫In other words, you have to find these matrices here.

31
00:03:13,200 --> 00:03:23,370
‫This matrix here would be for this case and this matrix here would be for this case here.

32
00:03:23,910 --> 00:03:33,390
‫When you look straight into the x axis and both the body frame and the inertial frame x axis overlap

33
00:03:33,390 --> 00:03:34,190
‫with each other.

34
00:03:34,680 --> 00:03:40,380
‫So just follow the same logic that we used to derive the rotation matrix about the Z axis.

35
00:03:40,740 --> 00:03:43,080
‫And you will see the solution in the next video.

36
00:03:43,230 --> 00:03:44,220
‫Thank you very much.

37
00:03:44,400 --> 00:03:45,240
‫And see you there.

