Mateusz Ploski
![](https://forum44.djicdn.com/data/attachment/common/d3/common_10_usergroup_icon.png) lvl.1
Poland
Offline
|
Hi guys,
I've got an error, could you help:
C:\DJI_RC-N1_SIMULATOR_FLY_DCL-master>python main.py
Standardowy port szeregowy przez link Bluetooth (COM5)
Standardowy port szeregowy przez link Bluetooth (COM4)
Standardowy port szeregowy przez link Bluetooth (COM6)
Standardowy port szeregowy przez link Bluetooth (COM3)
Urządzenie szeregowe USB (COM7)
Urządzenie szeregowe USB (COM8)
Dji RC231 emulation started...
Close terminal to stop
Traceback (most recent call last):
File "C:\DJI_RC-N1_SIMULATOR_FLY_DCL-master\main.py", line 183, in <module>
send_duml(s, 0x0a, 0x06, 0x40, 0x06, 0x24, bytearray.fromhex('01'))
^
NameError: name 's' is not defined. Did you mean: 'st'?
Exception in thread Thread-1 (threaded_function):
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1520.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1520.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\DJI_RC-N1_SIMULATOR_FLY_DCL-master\main.py", line 168, in threaded_function
if camera > 32000:
^^^^^^
NameError: name 'camera' is not defined
|
|