top of page

GENERAL & MINI DRONE TABS IN FTW CODE

Code Hopper

On the left side of FTW CODE, there are a series of tabs to select. Let’s take a look at the General tab.


  • When you code, you’ll always need a Program Start block to put your code inside of. This block simply executes your code when you press RUN.


  • There are other blocks that you can use that include blocks to stop your program, as well as to execute code when a certain key is pressed.


  • You can also use a block of code that stalls the program flow for a desired amount of time, as well as a block to completely reset the drone (stopping the motors completely).


  • There is also a print block, which prints text on the console.



Under the Mini Drone tab, there are subtabs Actions, Events, and Values.



When you click on the Actions tab, you can select:


  • take off Mini Drone to take off the drone.


  • land Mini Drone to lower and land the drone.


  • hover Mini Drone to hover the drone in place for a second.


  • cutoff Mini Drone to stop the drone’s motors and drop.


  • fly Mini Drone ____ for seconds at % power to fly the drone forward, backward, right, left, up, or down, which is controlled by a certain time and percentage of power.


  • set Mini Drone ____ to __% to adjust the pitch, yaw, roll, and altitude of the mini drone by a certain percentage.


  • rotate Mini Drone __ degrees ____ to rotate the drone clockwise or counterclockwise at a given degree angle relative to where the drone is facing.



When you click on the Events tab, you can select:


  • when Mini Drone state is ____ to allow the code to be in a state of checking whether the condition is true (whether the drone is in a state of flying or landed), in which you can execute a block of code inside it.


  • when Mini Drone crashes to allow the code to be constantly checking whether the drone has crashed or not.



When you click on the Values tab, you can select:


  • get Mini drone battery level to return the value of the drone’s battery level, which can be used in print blocks or other math, loop, or logic blocks.


  • Mini Drone is ____ to check and return whether the drone is in a state of flying or landing.


Algorithm

a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer

Closed Block

A type of coding block in which other blocks can be placed inside of them but they cannot be placed inside of any other blocks.

Code

Code is a term used to describe text that is written using the protocol of a particular language by a computer programmer

Functions

A function is a block of organized, reusable code that is used to perform a specific action

Program

detailed plan or procedure for solving a problem with a computer;

Snap Block

A type of coding block that can be placed inside a closed block.

INTRODUCTION

COMPUTER SCIENCE TERMINOLOGY

WRITING CODE IN FTW CODE

TOOLS & ACCESSIBILITY TO FTW CODE

CONNECTING HOPPER TO FTW CODE

LOOPS TAB IN FTW CODE

GENERAL & MINI DRONE TABS IN FTW CODE

TIPS FOR CODING IN FTW CODE

bottom of page