﻿1
00:00:00,520 --> 00:00:01,360
‫Welcome back.

2
00:00:01,750 --> 00:00:14,490
‫Let's now apply our rotation matrix using the convention are sub Z, Y and X, so small letters.

3
00:00:14,650 --> 00:00:17,490
‫So we are using the oilor angle approach.

4
00:00:17,950 --> 00:00:23,800
‫We are rotating about the moving body frames for Z, then Y and then X..

5
00:00:24,250 --> 00:00:32,170
‫Now, when we measure velocities of a drone, we typically do it in the body frame, not in the inertia

6
00:00:32,170 --> 00:00:32,620
‫frame.

7
00:00:33,070 --> 00:00:41,260
‫The velocities in the inertia frame would be something like this big X dot, the time derivative, big

8
00:00:41,260 --> 00:00:48,230
‫Y dot and big Z dot and all of them would be in meters per second.

9
00:00:48,820 --> 00:00:57,580
‫However, the last is in the body frame would be something like this small X dot here, small Y dot

10
00:00:57,700 --> 00:01:01,660
‫here and small Z dot here.

11
00:01:02,050 --> 00:01:04,580
‫And in this course we will call them like this.

12
00:01:05,020 --> 00:01:17,440
‫This will be small you this will be small V and this will be small w now remember these are linear velocities

13
00:01:17,440 --> 00:01:22,730
‫in the body frame, so their units are meters per second.

14
00:01:23,200 --> 00:01:35,200
‫We also had body frame angular velocities that we called P, Q and R and these were angular velocities.

15
00:01:35,560 --> 00:01:40,240
‫So their units where radians per second.

16
00:01:40,420 --> 00:01:42,910
‫All right, so don't confuse them.

17
00:01:43,600 --> 00:01:51,190
‫Linear velocities in the body frame make the drone translate in the direction of the body frame axis,

18
00:01:51,400 --> 00:01:57,970
‫meaning that the origin of the body frame actually moves with respect to the inertia frame.

19
00:01:58,420 --> 00:02:03,730
‫So the drone moves from one point in space to another point in space.

20
00:02:04,090 --> 00:02:10,990
‫And in case of angular velocities, the origin of the body frame stays in the same place.

21
00:02:11,260 --> 00:02:17,920
‫But the drone simply rotates about the body frame X, Y and Z axis.

22
00:02:18,430 --> 00:02:25,930
‫And of course, when your drone moves, then it will experience both linear and angular velocities.

23
00:02:26,560 --> 00:02:32,830
‫Now we have the body frame, linear velocities, but in order to control the drone, we also need to

24
00:02:32,830 --> 00:02:36,100
‫have the initial frame, linear velocities.

25
00:02:36,430 --> 00:02:44,560
‫And so the task of the rotation matrix is to convert the velocities in the body frame into the inertial

26
00:02:44,560 --> 00:02:45,030
‫frame.

27
00:02:45,700 --> 00:02:52,210
‫It's exactly the same thing that we did when we worked with a car in 2D.

28
00:02:52,630 --> 00:02:55,330
‫Only now we're working in 3D.

29
00:02:55,870 --> 00:03:04,750
‫So we have one more linear velocity in the inertial frame, big Z dot and one more linear velocity in

30
00:03:04,750 --> 00:03:05,500
‫the body frame.

31
00:03:05,500 --> 00:03:10,810
‫Small WSDOT and remember, the motion of the OV is the same.

32
00:03:11,260 --> 00:03:16,650
‫It's just we are representing the velocity of the drone in different ways.

33
00:03:17,170 --> 00:03:23,620
‫First, we represent the velocity of the drone in the body frame and then using the rotation matrices,

34
00:03:24,040 --> 00:03:31,750
‫we obtain the velocity of the drone represented in the initial frame because we need it for the controller.

