Space Engineers

Space Engineers

View Stats:
need reminder - How to set a rotor to return to a set position on command.
As topic just forgot how to set it and need it for my ship.
< >
Showing 1-10 of 10 comments
herrschaftg35 Sep 30, 2023 @ 4:32pm 
You will need to use an event controller and possibly timer blocks. What is the rotor used for?
dragonsphotoworks Sep 30, 2023 @ 4:57pm 
It is for a nose placed mining drill arm. Looks like a propeller on front of mining ship. Never used event controller before.
Dan2D3D  [developer] Sep 30, 2023 @ 5:03pm 
I would let it rotate slowly and use the "Lock" action when in position. can be the rotor added to cockpit toolbar key or button panel... and reset its velocity to 0 right after to completely stop it.
Last edited by Dan2D3D; Sep 30, 2023 @ 5:04pm
Dan2D3D  [developer] Sep 30, 2023 @ 5:10pm 
In more details :

You should have those keys added to cockpit toolbar, for manual control at least :

One key with "Increase Velocity" and one "Decrease Velocity" to make it rotate.
+
One toolbar key "lock ON/OFF" the rotor.


EDIT
Oh! and one to reset Velocity to 0
Last edited by Dan2D3D; Sep 30, 2023 @ 5:11pm
dragonsphotoworks Sep 30, 2023 @ 5:12pm 
I could do that but would take 3 slots on hotbar. Rather keep it cleaner. Also would be hard to get it exact. And I was hoping to have it able to dock into a hanger. And would have to be pretty precise in rotation.
Dan2D3D  [developer] Sep 30, 2023 @ 5:16pm 
It's doable with timers inside a Main Timer to add preset actions that will start in one click or auto using a sensor set to detect player or ship, we use the Timer Start action to start a lot of actions in same time.
Last edited by Dan2D3D; Sep 30, 2023 @ 5:16pm
herrschaftg35 Sep 30, 2023 @ 5:28pm 
I don't think it is possible without a script, since it sounds like you have the rotor angles set to unlimited. I had a rotor on a crane boom stow itself by using a series of timer blocks that changed the rotor torque, but I still had to have an angle limit and the rotor velocity set to make it work.
dragonsphotoworks Sep 30, 2023 @ 6:10pm 
I have made a drill system like that before. Was huge and would retract and compact. But it didnt use unlimted rotor settings
Dantheotherone Sep 30, 2023 @ 8:36pm 
If you don't mind using scripts, there is one that might work for you.
It is called Easy Automation V2.0

This is a example of a code block that will allow you to rotate a rotor to a specified angle at a specified speed.

@My Block{
Rotate MyRotor to 30 at 10
}

As you can see, first you input:

"Rotate" or "ShortRotate"
"ShortRotate" will make the rotor rotate in the direction that is the shortest path to the desired angle
Then the text that is in the name of your rotor(s)
Then "to"
Then a number that represents the angle in degrees you wish the rotor to stop at
(It is important to note that if the torque on the rotor is too high then the rotor will stop a few degrees beyond or below this depending on which direction it approached it from)
Then "at"
Then a number that represents the speed in RPM at which the rotor will be moving A positive number equals a clockwise rotation, a negative number equals counterclockwise
If you use ShortRotate then only the absolute value of this number matters, The direction will be chosen based on current angle compared to desired angle.

Setting limits to Unlimited
As this question has been asked fairly often I will add it to the guide.
In order to set the upper and lower limits of a rotor to unlimited you must set them to greater then 360 for the upper limit or lower then -360 for the lower limit.

Example:
@LimitlessRotor{
UpperLimit of Rotor01 = 361
LowerLimit of Rotor01 = -361
}

In case you're interested, here is the script.
https://steamcommunity.com/sharedfiles/filedetails/?id=694296356

Here is the guide.
https://steamcommunity.com/sharedfiles/filedetails/?id=685206874
dragonsphotoworks Sep 30, 2023 @ 9:26pm 
Awesome will be perfect thank you.
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Sep 30, 2023 @ 4:27pm
Posts: 10