Space Engineers

Space Engineers

"Behind you" drone-companion script
Switch Sep 25, 2019 @ 10:38am
Bug report : drone flying into the sky (detailed)
Hi I am having a similar issue to Enkar (2017 bug post) : I was testing out a custom drone in follow mode on an ice lake (had no issues for the first 100 m or so).

Then I wanted to test the drone's collision avoidance by digging out a hole and seeing if the drone would follow me if it had the space. I saw it was stopping since the hole was too small (it was going down to the ground and bouncing up before it hit).

After excavating a bit more around the entry point, the drone should have had enough space to enter just barely. At that point the drone hit one of it's downwards facing thrusters into the ground at about 2 m/s (no damage was done to the block) and it shot into the sky at about 150m and hovered there, occasionally coming down a few meters slowly and then returning to it's position up in the sky.

No amount of restarting the PB or renaming blocks did anything to fix the issue and the land function did nothing.

Hope this helps you find an issue.
< >
Showing 1-4 of 4 comments
Skleroz  [developer] Oct 2, 2019 @ 9:10am 
Aha, quite interesting and something new! I'm definitely sure, that collision avoidance should be switched off in gravity field, mostly due to no possibility to get exact ground surface, but... I also see no other reason. I'll try to replicate this bug, hope this helps to create some quick fix.
Switch Oct 4, 2019 @ 6:38pm 
a possible fix for the ground collision would be the use of the built-in altimeter when controlling the remote control (the one we get when in a flight seat along with the artificial horizon). I don't know if it is accessible via programmable block but that could help
Skleroz  [developer] Oct 12, 2019 @ 11:13am 
Hi! I've changed calculation method for the result vector. Now it includes natural gravity vector, no workarounds are needed. And I deleted several workarounds, that were in the script only in case grid will be in he gravity conditions. Surprisingly, it works quite well, hope problem is finally solved!
Last edited by Skleroz; Oct 12, 2019 @ 11:13am
Skleroz  [developer] Oct 12, 2019 @ 11:16am 
Altimeter shows only vertical distance, good for the vertical movement, and not so for the horizontal one. Unfortunately, for the planets I have no good solution, most of the methods show only low resolution surface in the result (sensor and camera).
< >
Showing 1-4 of 4 comments
Per page: 1530 50