User Tools

Site Tools


projects:crazyflie:pc_utils:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:crazyflie:pc_utils:index [2013-01-22 13:51]
macke
projects:crazyflie:pc_utils:index [2021-06-24 16:52] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]].
 +</WRAP>
 ====== Crazyflie PC utilities ====== ====== Crazyflie PC utilities ======
 The Crazyflie PC utilities are developed using Python 2.7. The Crazyflie library is used from the command line tools as well as a graphical user interface. For install instructions of PC side software please see [[projects:crazyflie:pc_utils:install|this page]]. The Crazyflie PC utilities are developed using Python 2.7. The Crazyflie library is used from the command line tools as well as a graphical user interface. For install instructions of PC side software please see [[projects:crazyflie:pc_utils:install|this page]].
  
-====== Crazyflie Lib ======+====== Crazyflie Python Library ======
 The Crazyflie library can be used to easily integrate control and communication with the Crazyflie quadcopter into an application. Currently the only implementation is done in Python and can be found [[projects:crazyflie:pc_utils:pylib|here]]. The Crazyflie library can be used to easily integrate control and communication with the Crazyflie quadcopter into an application. Currently the only implementation is done in Python and can be found [[projects:crazyflie:pc_utils:pylib|here]].
  
 ====== List of applications ====== ====== List of applications ======
-===== Control UI ===== +===== Crazyflie control UI ===== 
-A userguide for the GUI application can be found [[projects:crazyflie:pc_utils:qt_ui|here]].+The Crazyflie control UI is used to pilot the Crazyflie using a graphical user interface. A userguide for the GUI application can be found [[doc:crazyflie:client:pycfclient:index|here]]. Normally this is started from the start menu (or similar) if you have used an installer. There's also the option of starting it from the command line:
  
-===== Link driver model ===== 
-All command line tools used the same link diver model. The link driver to use in order to communicate with the copter is chosen with the ''-l'' command line argument. Also the tools accepts the ''-h'' argument that will display help about the link driver as well as the default driver used if none is provided: 
 <code> <code>
-crazyclient$ python gamepadCtrl.py -h +usage: cfclient [-h] [--debug DEBUG]
-CRTP Driver loader options: +
---------------------------- +
- -l <driver_uri> : Load the link driver with the requested URI +
- -h              : Print this help message+
  
-Unless otherwise specified the URI "radio://0" will be used +cfclient - Crazyflie graphical control client
-</code>+
  
-The available drivers are: +optional arguments
- +  -h--help            show this help message and exit 
-  * **%%radio://n[/channel[/speed]]%%** Radio dongle number 'n' (many can be connected to the computer) communicating on a specified channel with a specified speed. The speed and channel are optionaldefault channel is 2 and default speed is 2M. The speed can be 2M, 1M or 250K. For example: +  --debug DEBUG, -d DEBUG 
-    * **%%radio://0%%** uses radio dongle 0 to communicate on channel 2 at 2Mbit/sec +                        set debug level [minimal, info, debug, debugfile]
-    * **%%radio://0/77%%** uses radio dongle 0 to communicate on channel 77 at 2Mbit/sec +
-    * **%%radio://0/77/250K%%** uses radio dongle 0 to communicates on channel 77 at 250Kbit/sec +
-  * **%%loop://%%** Loopback driver. Mainly aims at testing tools without having them to crash because of the missing radio link | +
- +
-===== crazyload.py ===== +
- +
-//crazyload.py// permits to update the copter firmware using the Crazyload radio bootloader. This is a self-documented command line tool (launch ''python crazyload.py -h''). +
- +
-To program a copter with a firmware compile in bootloader mode (see [[projects:crazyflie:devenv:index#compiling_the_copter_code|build environment documentation]]): +
-<code> +
-$ make cload +
-  #or ... +
-$ python crazyload.py flash cflie.bin +
-Restart the CrazyFlie you want to bootload in the next 10 seconds ... +
-Connection established! +
-Flash pages: 128 | Page size: 1024 | Buffer pages: 10 | Start page: 10 +
-118 KBytes of flash avaliable for firmware image. +
- +
-Flashing 43907 bytes (43 pages) ..........10..........10..........10..........10...3 +
-Reset in firmware mode ... +
-Done! +
-+
 </code> </code>
-Here //cflie.bin// is the binary file of the firmware to be flashed. After launching this command the copter has to be restarted and the flash procedure will start. When the flash procedure is finished the copter will boot the new firmware 
- 
  
-===== getinfo.py =====+===== Crazyflie headless client ===== 
 +The Crazyflie headless client is intended to be run on the Raspberry Pi (see [[misc:hacks:rasberrypi|this page]] for more info), but can also be used from a normal PC.
  
-//getinfo.py// recovers some information about a running copter. This tool is slightly bugged but fulfills its purpose (mainly getting the copter CPU ID). Its usage is quite classical: 
 <code> <code>
-crazyclient$ sudo python getinfo.py -l radio://0/77 +usagecfheadless [-h] [-u URI] [-i INPUT] [-d] [-c CONTROLLER] 
-Detected CrazyRadio dongle version 0.32 +                  [--controllers]
-Channel 77 +
-Data rate 2M+
  
-CPU ID52:ff:70:06:48:89:49:53:15:31:10:87 +optional arguments
-Battery voltage: 3.764599V +  -h, --help            show this help message and exit 
-CrazyCopter version: 0.9.0 +  -u URI, --uri URI     URI to use for connection to the Crazyradio dongle, 
-Copter class name: CrazyFlie +                        defaults to radio://0/10/250K 
-CPU ID: 52:ff:70:06:48:89:49:53:15:31:10:87 +  -i INPUT, --input INPUT 
-crazyclient$+                        Input mapping to use for the controller, defaults to 
 +                        PS3_Mode_1 
 +  -d, --debug           Enable debug output 
 +  -c CONTROLLER, --controller CONTROLLER 
 +                        Use controller with specified id, id defaults to 0 
 +  --controllers         Only display available controllers and exit
 </code> </code>
projects/crazyflie/pc_utils/index.1358859072.txt.gz · Last modified: 2015-07-15 16:30 (external edit)