Video summary
Blockly for Robolink Tour | Block Coding with CoDrone EDU
Main summary
Key takeaways
Blockly for Robolink: Platform Tour
This video tours Blockly for Robolink, a visual coding platform for programming the CoDrone EDU. It explains how to connect the drone, build and organize block-based programs, run them, and use the platform’s supporting tools.
Workspace and Connection
The coding area is the main workspace where programs are assembled. It also retains items such as deleted blocks in the trash and saved color data.
Google Chrome is recommended for the best experience; some features may not work in other browsers.
Connect a CoDrone EDU
- Power on the drone with its battery.
- Connect the controller to the computer using the kit’s data cable.
- Check that the drone and controller are paired and that the controller is in link state. If needed, press the drone’s power button once to enter link state.
- For the JROTC edition, hold the power button until the controller turns on, then press it once to enter link state.
- In Blockly’s connection window, click Connect, select the drone, and connect. A successful connection is shown when the window turns green and displays the CoDrone EDU name.
Building and Managing Programs
Open categories in the code blocks menu by clicking their titles. Some categories contain submenus. Drag blocks into the coding area and connect them to build programs. Blocks with a settings wheel offer additional options.
Deleting and Restoring Blocks
Delete blocks by dragging them to the block menu or trash can, selecting a block and pressing Delete, or right-clicking and choosing Delete.
Restore deleted blocks with Undo (or the workspace’s back-arrow button), keyboard shortcuts, or by dragging them out of the trash. Redo is also available.
- Windows:
Ctrl+Zto undo;Ctrl+Yto redo. - Mac:
Command+Zto undo;Command+Shift+Zto redo.
Comments and Workspace Controls
Add a comment by right-clicking a block and choosing Add comment. Then click the question-mark icon and enter text. Comments help explain a program to others.
Use the workspace controls to center and zoom the coding area. Clean up arranges blocks neatly, making it easier to spot unused or off-screen blocks.
Running Code Stacks
When Run is pressed, Blockly attempts to execute every code stack in the coding area, even if a stack does not have an event block. Separate stacks run in order from the upper-left area toward the lower-right.
To test one stack at a time, attach the When run button clicked event block to that stack.
Running and Saving Code
The top program controls are:
- Run: Executes the program.
- Land: Brings the drone down in a controlled way.
- Stop: Performs an emergency stop. The narrator cautions that it should be used only in emergencies and says to try to catch the drone if it falls.
The application menu includes:
- File: Download code as an XML file for later use, open an XML file, start a new tab, or save the program as a PNG image.
- Edit: Clean up blocks, undo, redo, or clear the workspace.
- Help: Access help and system requirements, check for new versions, and refresh to load the latest version.
Tools Panel and Sensor Dashboard
- Console: Print messages or display information from the drone. For example, a print block can show “hello world” or display a color-sensor reading when the drone is sitting flat.
- Color tool: Used with the color sensor. The video notes that it is covered more fully in a related lesson.
- Show in Python: View the Python equivalent of a block program and open it in Python to modify the code.
- Documentation: Browse information about blocks, including their underlying code, descriptions, parameters, return data, and usage examples. Examples can be opened in Blockly for testing.
- Sensor dashboard: Open it with the double-arrow icon in the upper-right corner. It displays readings from the drone’s sensors. Readings change as the drone moves, and some sensors may be disabled while it is being moved. The dashboard can help check sensor data and confirm that sensors are working.
The video concludes by encouraging viewers to practice with these features before building their first program and to visit Robolink Learn to get started.
Speakers and Sources
- Speaker: One narrator presenting the platform tour.
- Sources and platforms featured: Blockly for Robolink, CoDrone EDU and its controller, and Robolink Learn.
Rate this summary
Your feedback will help improve summaries.
Improve this summary
Reprocess with a stronger model when the summary feels incomplete or inaccurate.
Translate summary in another language
Ask questions to this video
Chat for follow-up questions, clarifications, and source-backed answers.