Space Engineers

Space Engineers

Not enough ratings
[APck] ThrustProvider (Clang, Vtol, Rov)
   
Award
Favorite
Favorited
Unfavorite
Tags: autopilot
File Size
Posted
Updated
1.003 MB
Dec 11, 2022 @ 3:16pm
Oct 7, 2024 @ 10:25am
3 Change Notes ( view )

Subscribe to download
[APck] ThrustProvider (Clang, Vtol, Rov)

Description
External thrust provider (Merge Drive, Mass Shift Drive, VTOL and Rover) for the AutoPillock script.

Merge Mag Force
This type of drive uses merge blocks pull to generate thrust. It gives constant acceleration independent of grid mass. This is the best possible way of moving large grids simspeed-wise because you don't need hundreds of thrusters.

It can be used as a stand-alone system too, being controlled by WASD directly, it won't do dampening but would do gravity compensation.

Get the assembly blueprint and follow simple instructions on its' page.

VTOL

Add the programmable block with this script into some group, I'll refer to it as ThrustProvider group.
Add VTOL units (rotor and at least one thruster per unit). Add their rotors to ThrustProvider group.
Add grids' forward-gyro, remote, and optionally control seat/cockpit (for WASD controls) to ThrustProvider group.
If you are adding VTOL to an existing APck-controlled grid, you'd have to clear grid definitions so APck could see ThrustProvider PB.
At this point, after APck recompile, you should see TP:True in APck printout (below Services) in terminal.

Then, to tell APck that the movement is handled by TP from this point, run command:thrust-delegation:Vtol. You should see ThrustDelegation in APck printout from now on. ThrustProvider should show "controlling N VTOL units".

Done. Now APck would use VTOL.

Watch the video for full process.

Rover

Rover implementation would control wheels steering and propulsion. It would try to align the wheels that have Steering enabled with destination direction and override steering proportional to distance.

Setting up is the same (see above), but instead of VTOL rotors you would add motor suspensions to the script group, and use "command:thrust-delegation:Rover" in the APck (you should see TP: true in APck PB printout when both scripts are running on the same grid, which means APck did handshake with ThrustProvider).

Note that by default APck does not run Echo printout for performance reasons, you need to "toggle:echo" to see that.

Recommended checklist when setting up

1. Make sure APck runs on the grid (script starts successfully)
2. Add ThrustProvider PB and put it to a new group
3. Add any remote control and forward-gyro to the group (TP won't control the remote, but it is important to have the same block for position reference)
4. Add "hardware" blocks to TP group depending on operation kind (rover, vtol, etc)
5. Recompile TP, it should be working now
6. Recompile APck and have echo toggled on ("toggle:echo"), make sure it sees Thrust Provider (TP: true in the PB detailed info)
7. To make APck pass movement data to TP, run thrust delegation command with the chosen kind (command:thrust-delegation:Rover or command:thrust-delegation:Vtol or command:thrust-delegation:Clang). Normally you'd put that command into APck CustomData boot sequence, unless you have a hybrid grid that works both with normal thrusters and TP.
8. Verify all works by using some simple task, like command:create-task:cruise-fw
* To switch delegation off, use command:thrust-delegation:None
26 Comments
cheerkin  [author] Oct 22, 2024 @ 3:33am 
Added rover set up info and general checklist to the description.
cheerkin  [author] Oct 22, 2024 @ 3:11am 
It is highly recommended to be ran with APck. Some implementations probably still work stand-alone (iirc merge-mag drive and maybe VTOL), but I haven't tested that lately.
APck would configure this script automatically so you don't need any commands.
Based_Stickman Oct 21, 2024 @ 7:18pm 
is their a list of commands for this script anywhere or does it have to be ran with apck?
cheerkin  [author] Oct 7, 2024 @ 10:29am 
1.0.225
Rover provider:
- steering fixes
- back wheels steering inversion (behind grid bounding box center as CoM is not accessible from a script)
- wheels that have Steering property off are now ignored
Space Wolf Feb 26, 2024 @ 12:35am 
Thank you!
cheerkin  [author] Feb 25, 2024 @ 4:38am 
Sure. If you don't issue any specific tasks to AutoPillock, it behaves as a normal grid with a dampening, and also you get a benefit of using "hybrid-thrust" - you can have fixed normal thrusters and "VTOL" thrusters simultaneously.
Space Wolf Feb 24, 2024 @ 11:25am 
can i control autopilock with a cockpit then also i have tried other scripts like "Vector Thrust OS" and Thrust provider is significantly more responsive than it
cheerkin  [author] Feb 24, 2024 @ 3:46am 
If you use it through AutoPillock, it dampens by default.
Space Wolf Feb 23, 2024 @ 3:38pm 
hello is there any way to enable some kind of dampening? for cockpit controlled mode
Abacus Jul 25, 2023 @ 11:53am 
Thanks. What I'm doing is testing the VTOL script on a sort of hover bike to see how it works before doing the drone. The drone will be part of a drop pod as an area denial system. Upon landing the pod will grind off the protective cover and the drone would launch and patrol a predifined area around the pod. The drone would returnnto reload, refuel and/or recharge.