In this lesson we will be setting the drone speed for the speed command.
You can set the extra number between 10 to one hundred.
This time the X will stand for X centimeter per second.
Since we will be flying the drone indoors I'll set the default speed to 10.
You might not notice the speed change a lot but if you do want to set the speed higher take your drone
outside in the document.
It doesn't show the default settings but we can change the initial default speed by ourselves.
First we set the default speed to 10 centimeters per second.
We also need to set the initial settings set speed with the default speed.
Also we set it here just as what we did with Imperial
in our previous lesson.
We set the default distance to be set directly in the method.
This made it easier to change the distance each time the direction change when it comes to speed.
We won't be changing it so often.
So we set the default into the initial settings.
Now let's go on and set the speed.
Create self set speed and set speed.
Scroll down so we can set the set speed method defined set speed with speed.
Return will be self centered command followed by F strings of speed.
Curly braces speed.
Now we've completed creating the method.
Let's change the speed using drone manager.
Set speed method to 100.
Move along a few commands.
Change the speed down to 10 here and hover for a second.
As I said earlier you might not notice the speed change.
If you're flying your drone indoors or off the flight distance is too short.
If you want to see the speed change take your drone outside and set your drone to fly a longer distance.
Now I'll show you how my drone works.
You'll see the drone take off.
We set the times speed for 10 seconds.
So bear with me a little during this time
in the beginning.
The drone is set to fly forward at the speed of 100 centimeters per second.
As you can see the flight distance is 30 centimetres so you won't see the drone flying really fast
after we move to the left.
Here is the point.
We changed the drone speed to 10 centimeters per second.
You can see the drone fly up slowly go down and land.
Try changing your drone speed as well and see how they fly faster or slower.
If you were able to see the difference.
That's great.
I'll see you in our next lesson.