Skip to main content

Drone Tutorial Overview

This section contains step-by-step tutorials for learning drone programming with TensorFleet using JavaScript.

Tutorial Index

Beginner

TutorialTopicPrerequisites
00: PreparationSetup & SimulationNone
01: ConnectionROS Bridge Connection & State MonitoringPreparation
02: TelemetryComprehensive Telemetry CollectionConnection

Intermediate

TutorialTopicPrerequisites
03: Arm/DisarmArm and Disarm the DroneTelemetry
04: Takeoff & LandComplete Flight CycleArm/Disarm
05: OFFBOARD HoverEnter OFFBOARD Mode and HoverTakeoff/Land

Advanced

TutorialTopicPrerequisites
06: Move ForwardVelocity-Based Movement ControlOFFBOARD Hover
07: Go to WaypointPosition-Based NavigationMove Forward

Learning Path

Preparation → Connection → Telemetry → Arm/Disarm

Takeoff & Land

OFFBOARD Hover

Move Forward

Go to Waypoint

Getting Started

  1. Start with Preparation to set up your environment
  2. Follow the tutorials in numerical order
  3. Each tutorial includes:
    • Learning objectives
    • Code examples with expected output
    • Detailed explanations
    • Common troubleshooting tips

Prerequisites

  • TensorFleet VS Code Extension installed
  • Active TensorFleet VM
  • Basic JavaScript knowledge
  • Bun runtime (recommended) or Node.js 14+

Running Tutorial Scripts

All tutorials have corresponding scripts you can run:

# Beginner
bun run src/tutorials/01_connect.js
bun run src/tutorials/02_telemetry.js
bun run src/tutorials/03_arm.js

# Intermediate
bun run src/tutorials/04_takeoff_land.js
bun run src/tutorials/05_offboard_hover.js

# Advanced
bun run src/tutorials/06_move_forward.js
bun run src/tutorials/07_goto_waypoint.js

Also See


Follow the tutorials in order for the best learning experience. Each builds on concepts from previous tutorials.