User Tools

Site Tools


projects:crazyradio:python_lib

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
Last revision Both sides next revision
projects:crazyradio:python_lib [2015-08-06 12:06]
arnaud [Crazyradio]
projects:crazyradio:python_lib [2019-09-05 14:58]
kimberly
Line 1: Line 1:
 +
 +<WRAP center round important 60%>
 +This page is deprecated and is moved to the main Bitcraze website. Please go to:
 +
 + [[
 +https://www.bitcraze.io/docs/crazyflie-lib-python/master/crazyradio_lib/
 +]]
 +
 +</WRAP>
 ====== Python Crazyradio Library ====== ====== Python Crazyradio Library ======
  
Line 18: Line 27:
 </code> </code>
  
-Ths is an example on how to use the lib:+This is an example on how to use the lib:
  
 <code python> <code python>
Line 53: Line 62:
 ^ Returns     | None | ^ Returns     | None |
 ^ Description | Close the USB device. Should be called before closing the program. | ^ Description | Close the USB device. Should be called before closing the program. |
- 
-==  set_channel(self, channel) == 
-^ Name        | ''set_channel'' | 
-^ Parameters  | (int) channel | 
-^ Returns     | None | 
-^ Description | Set the Crazyradio channel. Channel must be between 0 and 125. Channels are spaced by 1MHz starting at 2400MHz and ending at 2525MHz. | 
  
 ==  set_channel(self, channel) == ==  set_channel(self, channel) ==
Line 117: Line 120:
 ^ Name        | ''send_packet'' | ^ Name        | ''send_packet'' |
 ^ Parameters  | (list or tuple) dataOut | ^ Parameters  | (list or tuple) dataOut |
-^ Returns     | (_radio_ack) Ack status | +^ Returns     | ([[#_radio_ack|_radio_ack]]) Ack status | 
-^ Description | Sends the packet //dataOut// on the configured channel and datarate. Waits for an ack and returns a __radio_ack object that contains the ack status and optional ack payload data. |+^ Description | Sends the packet //dataOut// on the configured channel and datarate. Waits for an ack and returns a _radio_ack object that contains the ack status and optional ack payload data. |
 ==== _radio_ack ==== ==== _radio_ack ====
  
 === Fields === === Fields ===
 +
 +^ (bool) ack | At ''True'' if an Ack packet has been receive (ie. if the packet was received by the device) |
 +^ (bool) powerDet | Indicate the nRF24LU1 power detector status. See nRF24LU1 documentation for more information. |
 +^ (int) retry | Number of retry before an ack was received |
 +^ (tuple) data | Data payload received in the Ack packet |
  
 === Methods === === Methods ===
  
 +None
  
  
  
projects/crazyradio/python_lib.txt · Last modified: 2020-05-12 14:15 by kimberly