Initialize the console and register it to receive data from the copter.
(self, crazyflie)
| 42 | """ |
| 43 | |
| 44 | def __init__(self, crazyflie): |
| 45 | """ |
| 46 | Initialize the console and register it to receive data from the copter. |
| 47 | """ |
| 48 | |
| 49 | self.receivedChar = Caller() |
| 50 | |
| 51 | self.cf = crazyflie |
| 52 | self.cf.add_port_callback(CRTPPort.CONSOLE, self.incoming) |
| 53 | |
| 54 | def incoming(self, packet): |
| 55 | """ |
nothing calls this directly
no test coverage detected