Drivers

Artoo has a extensible system for connecting to hardware devices.

Crazyflie Navigation


Allows user to send navigation control commands to a Crazyflie micro-quadcopter.

How To Connect

Communication with the Crazyflie's navigation control interface takes place using a 2.4GHz radio connection. The Crazyflie is controlled from your computer using a Crazyradio, which is a custom USB 2.4GHz radio device.

require 'artoo'

connection :crazyflie, :adaptor => :crazyflie, :supports_hover => true
device :drone, :driver => :crazyflie_nav, :connection => :crazyflie

How To Use

Example of controlling a Crazyflie.

require 'artoo'

connection :crazyflie, :adaptor => :crazyflie, :supports_hover => true
device :drone, :driver => :crazyflie_nav, :connection => :crazyflie

work do
  drone.log_value("stabilizer.pitch")
  drone.start_logging

  every(1.seconds) {
    puts drone.log
  }
end

Commands

set_value

Sets a value for the Crazyflie.

Returns

nil

start_get_value

Gets a value from the Crazyflie.

Returns

integer

toc

Gets the toc from the Crazyflie.

Returns

integer

values

Gets the values from the Crazyflie.

Returns

integer

log()

Logs a value to the Crazyflie.

Returns

nil

start_driver()

Starts the driver.

Returns

nil

Events

start_driver

Starts the driver

Compatibility