This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| projects:crazyflie:pc_utils:index [2012-03-13 10:20] 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:// | ||
| + | </ | ||
| ====== Crazyflie PC utilities ====== | ====== Crazyflie PC utilities ====== | ||
| - | The Crazyflie PC utilities are developed using Python 2.6. The Crazyflie library is used from the command line tools as well as a graphical user interface. | + | 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: | 
| - | ===== Common install instructions | + | ====== Crazyflie Python Library ====== | 
| - | The following has to be installed for the PC utilities to work: | + | The Crazyflie library can be used to easily integrate control and communication with the Crazyflie quadcopter into an application. Currently | 
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | ===== Graphical User Interface | + | ====== List of applications ====== | 
| - | ==== Install instructions | + | ===== Crazyflie control UI ===== | 
| - | Besides the common bindings the following has to be installed for the user interface | + | The Crazyflie control UI is used to pilot the Crazyflie using a graphical | 
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | ==== Using the GUI ==== | ||
| - | A userguide for the GUI application can be found [[projects: | ||
| - | |||
| - | |||
| - | ===== Command line tools ===== | ||
| - | |||
| - | ==== Install instructions ==== | ||
| - | Besides the common bindings nothing has to be installed. | ||
| - | |||
| - | ==== 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 '' | ||
| < | < | ||
| - | crazyclient$ python gamepadCtrl.py | + | usage: cfclient [-h] [--debug DEBUG] | 
| - | CRTP Driver loader options: | + | |
| - | --------------------------- | + | |
| - | -l < | + | |
| - |  | + | |
| - | Unless otherwise specified the URI " | + | cfclient - Crazyflie graphical control client | 
| - | </ | + | |
| - | The available drivers are: | + | optional arguments: | 
| - | + |  | |
| - |  | + |  | 
| - | * **%%radio:// | + | set debug level [minimal, info, debug, debugfile] | 
| - | * **%%radio:// | + | |
| - | * **%%radio:// | + | |
| - |  | + | |
| - | ==== gamepadCtrl.py ==== | + | |
| - | + | ||
| - | // | + | |
| - | < | + | |
| - | crazyclient$ python gamepadCtrl.py -l radio:// | + | |
| </ | </ | ||
| - | {{: | ||
| - | The gamepad mapping | + | ===== Crazyflie headless client ===== | 
| - | ^ Control ^ Gamepad Key/axis ^ | + | The Crazyflie headless client | 
| - | | Pitch | LY | | + | |
| - | | Roll | LX | | + | |
| - | | Thrust | + | |
| - | | Yaw rate| RX | | + | |
| - | | Emergency stop | Ps button | + | |
| - | |||
| - | ==== crazyload.py ==== | ||
| - | |||
| - | // | ||
| - | |||
| - | To program a copter with a firmware compile in bootloader mode (see build environment documentation): | ||
| < | < | ||
| - | $ python crazyload.py | + | usage: cfheadless [-h] [-u URI] [-i INPUT] [-d] [-c CONTROLLER] | 
| - | </ | + |  | 
| - | Here // | + | |
| - | The bootloader is normally able to automatically reset the copter in bootloader | + | optional arguments: | 
| - | < | + | -h, --help | 
| - | $ python crazyload.py | + | -u URI, --uri URI     URI to use for connection | 
| + | defaults to radio://0/10/250K | ||
| + | -i INPUT, --input INPUT | ||
| + | Input mapping to use for the controller, defaults to | ||
| + |  | ||
| + | -d, --debug | ||
| + | -c CONTROLLER, --controller CONTROLLER | ||
| + | Use controller with specified id, id defaults to 0 | ||
| + | --controllers | ||
| </ | </ | ||
| - | This command is an example that would work if the copter is currently running a crazyflie firmware with radio configured to channel 77. | ||
| - | |||
| - | ==== getinfo.py ==== | ||
| - | |||
| - | // | ||
| - | < | ||
| - | crazyclient$ sudo python getinfo.py -l radio:// | ||
| - | Detected CrazyRadio dongle version 0.32 | ||
| - | Channel 77 | ||
| - | Data rate 2M | ||
| - | |||
| - | CPU ID: 52: | ||
| - | Battery voltage: 3.764599V | ||
| - | CrazyCopter version: 0.9.0 | ||
| - | Copter class name: CrazyFlie | ||
| - | CPU ID: 52: | ||
| - | crazyclient$ | ||
| - | </ | ||
| - | |||