| 20 | |
| 21 | |
| 22 | def device_name(device: int): |
| 23 | if device == 0x00: return 'Broadcast address' |
| 24 | if device == 0x0E: return 'Cloud' |
| 25 | if device == 0x10: return 'USB Device' |
| 26 | if device == 0x12: return 'Bluetooth Module/WiFi' |
| 27 | if device == 0x13: return 'Wi-Fi receiver (mobile game/simulator)' |
| 28 | if device == 0x14: return 'Video Receiver' |
| 29 | if device == 0x80: return 'OSD / TBS CORE PNP PRO' |
| 30 | if device == 0x90: return 'ESC 1' |
| 31 | if device == 0x91: return 'ESC 2' |
| 32 | if device == 0x92: return 'ESC 3' |
| 33 | if device == 0x93: return 'ESC 4' |
| 34 | if device == 0x94: return 'ESC 5' |
| 35 | if device == 0x95: return 'ESC 6' |
| 36 | if device == 0x96: return 'ESC 7' |
| 37 | if device == 0x97: return 'ESC 8' |
| 38 | if device == 0xC0: return 'Voltage/ Current Sensor / PNP PRO digital current sensor' |
| 39 | if device == 0xC2: return 'GPS / PNP PRO GPS' |
| 40 | if device == 0xC4: return 'TBS Blackbox' |
| 41 | if device == 0xC8: return 'Flight controller' |
| 42 | if device == 0xCC: return 'Race tag' |
| 43 | if device == 0xCE: return 'VTX' |
| 44 | if device == 0xEA: return 'Remote Control' |
| 45 | if device == 0xEC: return 'R/C Receiver / Crossfire Rx' |
| 46 | if device == 0xEE: return 'R/C Transmitter Module / Crossfire Tx' |
| 47 | return None |
| 48 | |
| 49 | |
| 50 | next_chunk = 0 |