I'm trying to wrap/modify the RadioDriver and Log classes to send/receive instructions and variable values through two CrazyRadio dongles. Threading is a bit over my head. My question is about the threading in the radiodriver.py module.
In the RadioDriver._thread.run() method, the data is sent by the local cradio passed from the RadioDriver class, which is loaded from the dataOut array:
Code: Select all
dataOut = array.array('B', [0xFF])
waitTime = 0
emptyCtr = 0
while(True):
if (self.sp):
break
try:
ackStatus = self.cradio.send_packet(dataOut)
What does [0xFF] in the data array represent?
Where in this project is the data loaded into the out_queue, because it is not used in the scope of this module or in any of the CRTPDriver classes?