Introduction
Controlling drones often requires more computing power than the drone's main controller can provide. Using a companion computer like a Raspberry Pi helps solve this by handling complex tasks, making drones smarter and more capable.
Jump into concepts and practice - no test required
Imagine a pilot flying a small plane who also needs a co-pilot to handle navigation, weather updates, and communication. The co-pilot helps by managing extra tasks so the pilot can focus on flying safely.
┌───────────────────────┐ ┌────────────────────────────┐
│ Flight Controller │──────▶│ Raspberry Pi (Companion) │
│ (Main Drone Brain) │ │ (Extra Processing) │
└───────────────────────┘ └────────────────────────────┘
▲ │
│ │
│ ▼
Sensors & Actuators Camera, GPS, Internet
from dronekit import connect
vehicle = connect('udp:127.0.0.1:14550', wait_ready=True)
print(vehicle.mode.name)from dronekit import connect
vehicle = connect('/dev/ttyUSB0', baud=57600, wait_ready=True)
print(vehicle.battery.level)TypeError: connect() got an unexpected keyword argument 'baud'. What is the fix?