MissionPlanner
MissionPlanner copied to clipboard
Create_terrain.py script issues random crc16 warnings
When using the create_terrain.py script, running on Ubuntu 20.04 with python 3.8.2, I randomly get the following two warnings:
-
create_terrain.py:205: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats block.crc = crc16.crc16xmodem(buf)
-
create_terrain.py:223: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats crc2 = crc16.crc16xmodem(buf[:1821])
Is this expected? Update: I loaded up a virtual Ubuntu 18.04 with python 3.6.9 and I don't get any of the crc16 errors. So something with python 3.8 and the crc16 module I suspect. A hash of the files show no differences between them so that answers the question that the python 3.8 files should be ok.
Hi, I am using create_terrain.py and trying to upload it to drone by Mavftp, I am wondering have you fixed the issue? And how you uploaded the DAT file by mavftp?
Thank you so much!
I figured out and fixed the create_terrain issue... was on windows machine, that code does not support windows