MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

Create_terrain.py script issues random crc16 warnings

Open Lazydude opened this issue 4 years ago • 2 comments

When using the create_terrain.py script, running on Ubuntu 20.04 with python 3.8.2, I randomly get the following two warnings:

  1. create_terrain.py:205: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats block.crc = crc16.crc16xmodem(buf)

  2. 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.

Lazydude avatar May 28 '20 12:05 Lazydude

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!

Rand0409 avatar Aug 29 '22 17:08 Rand0409

I figured out and fixed the create_terrain issue... was on windows machine, that code does not support windows

Rand0409 avatar Sep 07 '22 18:09 Rand0409