User Tools

Site Tools


misc:hacks:rasberrypi

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
Next revision Both sides next revision
misc:hacks:rasberrypi [2013-05-21 13:48]
foosel [Make the client startup automatically on Crazyradio plug in]
misc:hacks:rasberrypi [2013-05-21 13:52]
foosel [Install the headless client]
Line 81: Line 81:
 INFO:cflib.crazyflie:Param TOC finished updating INFO:cflib.crazyflie:Param TOC finished updating
 INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K] INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K]
 +</code>
 +
 +**Note**: If you have more than one controller attached, you can select the one to use using the commandline parameter ''-c''. See ''cfheadless -h'' for available command line options:
 +
 +<code>
 +usage: cfheadless [-h] [-u URI] [-i INPUT] [-d] [-c CONTROLLER]
 +                  [--controllers]
 +
 +optional arguments:
 +  -h, --help            show this help message and exit
 +  -u URI, --uri URI     URI to use for connection to the Crazyradio dongle,
 +                        defaults to radio://0/10/250K
 +  -i INPUT, --input INPUT
 +                        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>
  
Line 96: Line 115:
   * Still dependent on QT (the plan is to remove this very soon)   * Still dependent on QT (the plan is to remove this very soon)
   * Not much error handling yet (the plan is to improve this)   * Not much error handling yet (the plan is to improve this)
-  * Values are still hardcoded in the script (like mapping and URI for Crazyflie). They can be changed at the bottom in lib/cfheadless.py -> **Update** [[https://bitbucket.org/bitcraze/crazyflie-pc-client/pull-request/7/command-line-options-for-radio-uri/diff|A pull request]] adding some command line options for setting the input mapping and radio URI to use has been accepted, update your client to use that. +  * <del>Values are still hardcoded in the script (like mapping and URI for Crazyflie). They can be changed at the bottom in lib/cfheadless.py</del> -> **Update** [[https://bitbucket.org/bitcraze/crazyflie-pc-client/pull-request/7/command-line-options-for-radio-uri/diff|A pull request]] adding some command line options for setting the input mapping and radio URI to use has been accepted, update your client to use that. 
-  * The headless client will open the first input-device found (so don't plug more than one)+  * <del>The headless client will open the first input-device found (so don't plug more than one)</del> -> **Update** [[https://bitbucket.org/bitcraze/crazyflie-pc-client/pull-request/7/command-line-options-for-radio-uri/diff|A pull request]] adding some command line option for selecting the used input device has been accepted, update your client to use that.
   * No good way to quit it yet so you will have to kill the process   * No good way to quit it yet so you will have to kill the process
 ===== Make the client startup automatically on Crazyradio plug in ===== ===== Make the client startup automatically on Crazyradio plug in =====
misc/hacks/rasberrypi.txt · Last modified: 2021-06-24 16:45 by kimberly