Adding MAVLINK_DATA_STREAM bricks px4 on boot-up

I erazed the pymavlink-directory in SITL, downloaded it anew. Then I uninstalled again using pip untill cmd did output, that pymavlink was no longer installed.

I then reinstalled with the command you specified before “python … --user --force”. I verified that the new ardupilotmega.py does contain my new message. But still it does not appear in the mav.tlog…

Try introducing a flaw in that generated file (make a backup first). Do
you get an error when trying to run MAVProxy then?

If you’re willing to push this up to github I can have a look for you.

When installing pymavlink from the source - how are you invoking it? This
is how I typically do it:

MDEF=$HOME/rc/ardupilot/modules/mavlink/message_definitions python
setup.py build install --user --force

I migrated to Ubuntu 18.04. Now everything works like a charm.