Space Engineers

Space Engineers

Not enough ratings
Wico Techniker Custom
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
102.542 KB
20 Nov, 2016 @ 12:12am
16 Feb, 2019 @ 5:15pm
34 Change Notes ( view )

Subscribe to download
Wico Techniker Custom

Description
Custom Craft Control.

  • front scanning using camera raycast new in 1.63 DEV
  • uses any number of front-facing cameras for scanning. No naming needed.
  • keeps track of detected entities and reports on GPS text panel.
  • Proximity warning and Emergency stop procedure.
  • reports tool arm position for named rotors (Techniker)
  • 'coast' mode that turns off front-facing thrusters. allows motion to continue like turning off damperners, but keeps steering control from turning.


Naming


Cockpit/Remote Control

A cockpit or remote control is needed to determine the 'direction' of the ship.

The code first looks for a remote control named "Remote Control Techniker"
It then searches for any remote control with "[NAV]" in the name. It will then search for ANY remote control.
And finally it will search for any cockpit

Note: "Front" is determined by the orientation of the cockpit/remote control.

GPS Output LCD
The first text/LCD panel with "[GPS]" in the name is used to output the GPS coordinates.

Cameras

All front-facing cameras are used for scanning unless they have the text "[VIEW]" in the name

E Stop

There are no naming requirements for emergency stop. The front and rear thrusters are automatically determined.

Reporting

The reporting is placed on a text/LCD panel named "LCD Bridge R". If that block is not found, it will use the first block with "Craft Report" in the name.

Name can be changed in the Programing Block's CustomData.

Range Report

The range is placed on a text/LCD panel with "[RANGE]" in the name or CustomData.
Multiple LCDs are supported. Suggest setting text font to Monospace

Name can be changed in the Programing Block's CustomData.

Timer
No Longer needed

The PB needs to be run by a timer. It does not need to be run more than once per second. It should run the main PB with the argument "timer"

FAST Timer
Optionally, a timer can be made to allow the code to be run quickly when needed. For this code, that is only when initializing on each load. This timer must have "[WCCT]" in the name. It should run the main PB with the argument "wcct".

sub-modules
This code is based on my Craft Control scripts and it also supports sub-modules.
See the documentation for Craft Control for specifics.

If you are not using sub-modules, turn off submodule support in CustomData to save performatnce

Name of craft
ADDED 2.0L The script will first check CustomData of the PB for shipname=XXX and use the XXX as the name of the ship.

Otherwise, the name of the craft is determined from the antenna name. Antennas with 'unused' in the name are skipped (Techniker has two antennas).

This name is used in the displays.

Added 2.0L: Setting ship name and long and short range scan values in CustomData.
Example CustomData:
ShipName=Rhino Freighter
ShortRangeMax=1000
LongRangeMax=100000000

V3.2A Added more settings to CustomData. only need lines for items that should be changed from the default

Example:
[TECHKNIKER]
DoForwardScans=true
CheckGasGens=false
TechnikerCalcs=true
GPSFromEntities=true
AirVents=false

shipname=Bob's Big Boat
shortrangemax=1500
longrangemax=15000




24 Comments
Krougal 5 Jan, 2018 @ 3:18pm 
Arghhhh....so I hate to be a PITA, but it's also turning on O2 gens (I didn't notice until I installed on series 4 small craft).
Krougal 4 Jan, 2018 @ 7:52pm 
Ok, that took care of my antenna problem as well as the batteries. Thanks!
Krougal 4 Jan, 2018 @ 7:35pm 
Can hop in my lab if you want to see it in operation?
Still acting a little wierd at times too. It does still need the 1s timer block right? I've also got the WCCT timer and the stored data panel (not really sure I need that for my application?)
Wicorel  [author] 4 Jan, 2018 @ 7:31pm 
I will have a new version in a few minutes to remove the battery thing.

I don't understand where it could be setting antennas back on in this version... But the code IS complex and I may have missed something.
Krougal 4 Jan, 2018 @ 7:00pm 
I am indeed using 3.1A
Maybe KSH reintroduced the bug?
Wicorel  [author] 4 Jan, 2018 @ 6:56pm 
Which version are you using?

The current is 3.1A which should no longer have the antenna forcing on (there was a bug in older verisons of SE where the antenna would turn off if you tried to remote control a grid).
Krougal 4 Jan, 2018 @ 10:40am 
My spare antenna keeps turning on also, tried naming it unused & blank (the actual Techniker it's blank...but it's still running version 2.0) going to blame this on you too ;)
Does the stock craft control have the feaures I need?
Krougal 3 Jan, 2018 @ 10:05pm 
Yeah, would love that. I'd do it myself, but I couldn't make heads or tails of your code lol. I really don't like anyone messing with my batteries; I either have ships that run entirely off batts or they are just for surge and toggled by keybind.
Wicorel  [author] 3 Jan, 2018 @ 9:43pm 
Looking at the code, it should only be turning a battery's RECHARGE to off when it gets to > 99% charged..

I don't have the NOPOWER option in Techniker, but I could add it if you want it to leave batteries alone.
Krougal 3 Jan, 2018 @ 8:05pm 
NM about the timer, somehow the timer lost itself (timer start action had become invalid???) fixed that. The battery thing is still an issue.