Space Engineers

Space Engineers

评价数不足
Land based autonomous navigation (Land rover autopilot)
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
17.208 KB
2019 年 3 月 31 日 上午 10:23
2020 年 9 月 25 日 下午 1:25
8 项改动说明 ( 查看 )

订阅以下载
Land based autonomous navigation (Land rover autopilot)

描述
I needed the remote control block's AI to work on wheels, so I came up with this script to implement that functionality.
It is still crude and needs work, but the basic navigation is there.


Needed parts
- A remote control
- Wheels

Optional parts
- One or more displays with "hud" anywhere in the name
- One or more displays with "autopilot" anywhere in the name
- An antenna to recieve remote string commands

Usage
- Put the GPS waypoints in the remote control block
Note: waypoint height to ground is not important, all waypoints are translated onto the planet surface using wizardry and math
- Select an autopilot mode (note, "Patrol" not yet supported)
- IMPORTANT: set an appropriate speed limit in the remote control block
- Switch the remote control block's autopilot to ON

Available string commands for the script (Can be used over an antenna for remote activation)
- AddWaypoint x y z // Adds a waypoint to the waypoint list
- SpeedLimit x // sets the speed limit to x KM/H
- Engage // Engages the autopilot (remote controller switch)
- Disengage // Disengages the autopilot (remote controller switch)

Notes
For now the autopilot will drive a rover to the waypoints you have set
Please keep in mind that in order to avoid damage, you need to manually set a safe path and a safe cruising speed
- Collision avoidance in NOT implemented yet!
- Terrain detection and avoidance is NOT implemented yet!

Credits
This script was made by Marcvs101 and Val
A huge thank you goes to Malware for the MDK-SE and its documentation
51 条留言
Marcvs101  [作者] 2021 年 9 月 24 日 下午 2:51 
DAS is also a nice script to play around with
This was made back when DAS didn't have the autopilot feature (I don't remember if it was in beta or entirely missing)
V L A X 2021 年 9 月 24 日 下午 2:41 
DAS - Driver Assisting System performs functions like this, though it is older
V L A X 2021 年 9 月 24 日 下午 2:40 
There is a driving script that performs a function like this if it's not working or doesn't provide enough features
Marcvs101  [作者] 2021 年 9 月 24 日 下午 2:37 
As far as we know, it should still work
Unfortunately, I have been away from the game, at first due to work and later on due to health issues, so I can't really confirm
Val  [作者] 2021 年 9 月 24 日 下午 1:32 
it should
Tommygunn 2021 年 9 月 4 日 下午 1:20 
Does it still work?
Val  [作者] 2021 年 4 月 19 日 下午 12:38 
I think it is enough to decrease the speed near the destination point (I am planning to implement it in the near future).
Then speed won't be high at the end - and on LowG brake shouldn't be an issue.
Marcvs101  [作者] 2021 年 4 月 19 日 上午 9:24 
About the handbrake true, in the past there have been issues in low g environments (the vehicle would flip over spectacularly).

Before I got overwhelmed with work, I was thinking about implementing a soft brake mechanism which would accelerate and decelerate taking gravity, CoG and inclination into account (basically a PID monitoring the torque of the wheels).

Thanks for the contributions, I have added you as an official contributor, btw
Val  [作者] 2021 年 4 月 19 日 上午 7:54 
prepared second PR (mostly refactoring, but also handbrake true when one way navigation finished)
Val  [作者] 2021 年 4 月 17 日 上午 4:59 
prepared first PR (for now only refactoring, as I am getting closer with the code)