All Projects → michaelgira23 → Swarms

michaelgira23 / Swarms

Licence: mit
The ultimate node.js library for controlling Bitcraze Crazyflie 2.0 drones

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Swarms

sbus
Arduino and CMake library for communicating with SBUS receivers and servos.
Stars: ✭ 277 (+2418.18%)
Mutual labels:  drone, drones
Rappids
Rectangular Pyramid Partitioning using Integrated Depth Sensors (RAPPIDS): A Fast Planner for Multicopter Navigation
Stars: ✭ 17 (+54.55%)
Mutual labels:  drone, quadcopter
RaspberryPilot
RaspberryPilot
Stars: ✭ 31 (+181.82%)
Mutual labels:  drone, quadcopter
multi uav simulator
A quadrotor swarm simulator based on ROS (Robot Operating System).
Stars: ✭ 73 (+563.64%)
Mutual labels:  drone, swarm
QUICKSILVER
Flight Controller Firmware
Stars: ✭ 45 (+309.09%)
Mutual labels:  drone, quadcopter
goliath-quadcopter
Design files for the Goliath Quadcopter
Stars: ✭ 25 (+127.27%)
Mutual labels:  drone, quadcopter
bme280
Arduino and CMake library for communicating with the Bosch Sensortec BME280 environmental sensor.
Stars: ✭ 21 (+90.91%)
Mutual labels:  drone, drones
Imageprocessing
MicaSense RedEdge and Altum image processing tutorials
Stars: ✭ 139 (+1163.64%)
Mutual labels:  drone, drones
hardware
PCB designs for the Waterloo Aerial Robotics Group
Stars: ✭ 42 (+281.82%)
Mutual labels:  drone, drones
ublox
Arduino and CMake library for communicating with uBlox GPS receivers.
Stars: ✭ 89 (+709.09%)
Mutual labels:  drone, drones
Dronin
The dRonin flight controller software.
Stars: ✭ 238 (+2063.64%)
Mutual labels:  drone, quadcopter
Dronebridge
DroneBridge is a system based on the WifiBroadcast approach. A bidirectional digital radio link between two endpoints is established using standard WiFi hardware and a custom protocol. DroneBridge is optimized for use in UAV applications and is a complete system. It is intended be a real alternative to other similar systems, such as DJI Lightbridge or OcuSync.
Stars: ✭ 370 (+3263.64%)
Mutual labels:  drone, quadcopter
Gymfc
A universal flight control tuning framework
Stars: ✭ 210 (+1809.09%)
Mutual labels:  drone, quadcopter
CDTM-Deep-Learning-Drones
Course Material for CDTM Deep Learning Drones Course
Stars: ✭ 23 (+109.09%)
Mutual labels:  drone, drones
Clover
ROS-based framework and RPi image to control PX4-powered drones 🍀
Stars: ✭ 177 (+1509.09%)
Mutual labels:  drone, quadcopter
specification
The Cyphal specification documents are maintained here.
Stars: ✭ 38 (+245.45%)
Mutual labels:  drone, drones
Jankdrone
The jankest autonomous drone ever built and programmed from scratch
Stars: ✭ 127 (+1054.55%)
Mutual labels:  drone, quadcopter
Esp Drone
Mini Drone/Quadcopter Firmware for ESP32 and ESP32-S Series SoCs.
Stars: ✭ 132 (+1100%)
Mutual labels:  drone, quadcopter
source x
Open Source Giant FPV Racing Drone Frame
Stars: ✭ 19 (+72.73%)
Mutual labels:  drone, drones
QuadKit
Communicate with your Quadcopter from a native app
Stars: ✭ 36 (+227.27%)
Mutual labels:  quadcopter, drones

swarms

The ultimate node.js client for controlling Bitcraze Crazyflie 2.0 drones

npm npm Travis Dependency Status Dev Dependency Status

Motive

There were too many outdated and undocumented node.js libraries out there for programming Crazyflies. This package's goal is to fix that.

Prerequisites

Crazyflie Firmware

This package assumes you have the latest version of the Crazyflie firmware.

Crazyradio Driver on Windows

If on a Windows machine, look on the Bitcraze wiki for instructions to install the correct driver onto your Crazyradio. You do not need to do this on macOS or Linux!

Installation

This package's main dependency is node-usb. Refer to its installation directions for any help installing it on your operating system.

$ npm install swarms

Note: On Windows, you may get errors installing the node-usb package like the following: you may fail to install the node-usb package getting errors like:

error C2011: 'timespec': 'struct' type redefinition

You can fix this by following the directions here.

Usage

The following script moves the drone's propellers. More examples are located in the /examples directory.

const { Crazyradio } = require('swarms');

const radio = new Crazyradio();

// Because you can only use `await` within an async function...
main();
async function main() {
	try {
		await radio.init();
		const drones = await radio.findDrones();

		if (drones.length < 1) {
			throw 'Could not find any drones!';
		}

		const drone = await radio.connect(drones[0]);

		await drone.commander.setpoint({
			roll  : 0,
			yaw   : 0,
			pitch : 0,
			thrust: 32500
		});

	} catch (err) {
		console.log('Uh oh!', err);
		await radio.close();
	}
}

Documentation

Check out the repository documentation for information, tutorials, and more!

Troubleshooting

Got a problem? Refer to the troubleshooting page in the documentation. If that doesn't help, create an issue.

Contributing

Encounter a bug or have an idea for a new feature? Open up an issue! Pull requests also welcome! Check out the Contributing Guide for more details.

License

This project is under the MIT License.

Acknowledgments

Special thanks to the following people, whose libraries were used as a reference:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].