Advanced
operation
Connect the drone with LiteBeeGo
1 ) Turn the controller on first and match up with the
drone, then link the controller and computer by Micro
USB wire.
2) Choose the type of drones by clicking the icon “
” in LiteBeeGo to connect the drone
3) Switch to programming model by pressing the 0 key
on the center of the controller
PS: may some drivers are needed, but that depends
Fly the drone as the coding
After connecting with the drone, press the
K-0 key to switch the control model.
Afterward, double click the coding until
they light up with a yellow edge to run
the program.
Programming to fly the drone
Program as the right picture and run
them with the drone
Think about it
How can a racer win a 100-meter race?
Finish the race with the least time
Tips:
According to the formula:
In the programming, we
distance ( x ) =speed ( v)*time(s)
Faster means higher speed.
set the speed to control
the drone to fly fast or
Conclusion: If you want to win the race, you have to run at slow.
a faster speed.
Programming blocks
Time block That is the time the above movement lasted
Speed block
The speed could be set as: 0.3m/s; normal: 0.5m/s; fast: 0.8m/s or
customzied. The drone will not move in the direction when its speed is
ZERO.
Height block The height could be set as: 50cm, 100cm, 150cm,
200cm, 250cm
Practice
Task 1 : Fly the drone with normal speed from a start point to
the 10 meters away endpoint.
Tips : set the time according to distance and speed
Practice
1 ) Guide idea:
Write the programs with Wait for a few seconds Figure out the flying time
these blocks of control. before taking off. by distance and speed.
For example
Note: Run the program after click the green flag
Note: Calibrate the drone before takeoff,
ensuring the drone could fly steadily
Note: To fly the drone with a fixed speed
Note: The drone will land automatically after fly
forward for 7 seconds
Practice
Task 2: Fly across
Write a program to fly the drone across the barrier ring(height: 150cm,
as the picture showing), and then land.
150cm
Reference case
PS : To set the time and speed according to
the real situation
Think about it
1. Excepting the blocks we used, is any other program can
complete the tasks?
2. How could we program to turn the direction of the
drone?
Knowledge
An aircraft in flight is free to rotate in three dimensions:
yaw, nose left or right about an axis running up and
down;
pitch, nose up or down about an axis running from
wing to wing;
roll, rotation about an axis running from nose to tail.
The axes are alternatively designated as vertical,
transverse, and longitudinal respectively.
Flying blocks
Roll: Fly to the left as the speed of _ cm/s; fly to the
right as the speed of _ cm/s
Pitch: Fly forwards as the speed of _ cm/s; fly backward
as the speed of _ cm/s
The drone will not move in the direction when its speed
is ZERO.
Flying blocks
Yaw: Rotate clockwise/anti-clockwise the drone at 45 degrees.
Practice
Practice: To draw a right-angle in the air with the drone by
programming without changing the drone's orientation.
Any idea?
write it first
Guide idea
Collecting your thought will make your programming more effective
Plan the route Choose the blocks Start to program
Decide which Lead the drone
Plan the distance,
blocks to apply fly forwards then
direction, and time
roll left/right
Reference
Note: to run the whole program by pressing
k-5
Note : Calibrate before taking off to make
sure the drone fly steadily
Note : Roll left to draw a right angle
without change orientation
Note : Land after finished
Practice
Practice: To draw a right-angle in the air with the drone by
programming but change drone's orientation
Any idea?
write it first
Guide idea
Collecting your thought will make your programming more effective
Program
Route Yaw angle
Start to program,
Plan the route you Plan when to yaw give at least 4
going to fly and what is the second for
angle to yaw callibration
Set a trigger Time
decide which Calculate the
key to run the time with
program ditance and
speed
Reference
Note: Press the k-8 key to run the program
Note : Calibrate before taking off to make
sure the drone could fly steadily
Note: Let the drone hover before change the
orientation
Note: Rotate the drone at 90 degrees to change
its orientation
Note: Land after finished
Home work
To write a program that leads the
drone to fly along with a
rectangle in 60 seconds
Reference
With the same
Change the
orientation
orientation
Reference
Change the
orientation
Summarization
1 ) What's the difference between rolling and yawing ?
2 ) Is there any difficulty you met during programming?
What is it? and how do you resolve it?
3 ) Can you design a more complicated fly route and
realize it by programming?
Thanks
Thanks