﻿1
00:00:00,700 --> 00:00:01,520
‫Welcome back.

2
00:00:02,170 --> 00:00:06,010
‫Let's now look at our controller on a global scale.

3
00:00:07,080 --> 00:00:16,620
‫So you have a plant model box here and we're going to treated as a black box now, meaning that we don't

4
00:00:16,620 --> 00:00:18,520
‫care what's inside there.

5
00:00:18,690 --> 00:00:25,080
‫We only see the control inputs coming in and the state's going out.

6
00:00:26,190 --> 00:00:33,270
‫Now, if you think of this, that box as our general controller.

7
00:00:34,360 --> 00:00:43,720
‫Then inside it, we have two sub controllers, one of them follows the NPC approach and the other one.

8
00:00:44,950 --> 00:00:47,980
‫The feedback calendarization approach.

9
00:00:49,110 --> 00:00:57,210
‫And then finally, we have something called the planner in this planner box, this is where you generate

10
00:00:57,210 --> 00:01:01,500
‫your trajectories and we have six of them in our code.

11
00:01:02,660 --> 00:01:12,170
‫We have this spiral here, and so the task of the drone is to follow this spiral trajectory, then we

12
00:01:12,170 --> 00:01:14,970
‫have this tornado like spiral.

13
00:01:15,800 --> 00:01:24,260
‫The only difference here is that here the radius of the circle on the x Y plane is increasing.

14
00:01:25,320 --> 00:01:27,850
‫Then we have a straight line.

15
00:01:28,760 --> 00:01:32,210
‫So this is probably the easiest trajectory to follow.

16
00:01:33,250 --> 00:01:37,510
‫Then this is a combination of a spiral and then a straight line.

17
00:01:38,840 --> 00:01:44,630
‫Then this is a combination of a spiral and then a parabolic line up.

18
00:01:45,800 --> 00:01:51,910
‫So you can see how the Z value here starts going up like that in a parabolic way.

19
00:01:52,970 --> 00:01:59,710
‫And finally, you have a mix of a spiral and then this sinusoidal shape as well.

20
00:02:00,770 --> 00:02:09,320
‫And so these have been our six trajectories, and to generate these trajectories, we need to have their

21
00:02:09,320 --> 00:02:13,090
‫X, Y and Z coordinates as a function of time.

22
00:02:14,060 --> 00:02:21,050
‫So perhaps something like this, you have time here and then you have your reference X value, X are

23
00:02:21,860 --> 00:02:26,900
‫then reference Y value and reference Z value.

24
00:02:28,130 --> 00:02:36,050
‫And then you start from time equals zero seconds, and then you go with some kind of interval into the

25
00:02:36,050 --> 00:02:36,770
‫future.

26
00:02:37,800 --> 00:02:45,780
‫And then for each time value, you have some kind of reference, X value reference, Y value and reference

27
00:02:45,780 --> 00:02:46,810
‫Z value.

28
00:02:47,730 --> 00:02:55,650
‫And these arrays will, of course, be sent to the controller and more precisely to the feedback in

29
00:02:55,650 --> 00:02:57,390
‫a recession controller.

30
00:02:58,440 --> 00:03:07,180
‫And so the reference values for X X are there for Y, Y, R, and for Z, the Z.

31
00:03:07,230 --> 00:03:15,660
‫Are these values will move from the planner box to the feedback notarization box.

