Case 03: Round Fly
Contents
7. Case 03: Round Fly#
7.1. Introduction#
Program to make the drone fly to a preset place and then get back.
7.2. Products Link#
1 x Drone:bit Kit
7.3. Picture#
7.4. Software Programming#
Click “Advanced” in the MakeCode drawer to see more choices.
For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer and search with “https://github.com/elecfreaks/pxt-Dronebit” in the dialogue box to download it.
Notice: If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.
7.5. Program#
Notice: It is suggested to pause for 2 seconds or longer after triggering the take-off command to make sure the operator run away from the drones in case of any hurting accidents.
Link: https://makecode.microbit.org/_7zU0qEMPVcqT
You can also download it directly:
7.6. Result#
After taking off, it flys forward for 100cm and lands to the ground, then it starts flying back in 100cm by rotating 180 degress, then it lands to the ground.