Space Engineers

Space Engineers

DAS - Driver Assisting System
Into 2024 年 9 月 8 日 上午 8:28
Suspension strentgth offset
There seems to be an issue how auto strength gets set up. Front Suspension is 5 times stronger than rear Suspensions. Here an img of my setup https://ibb.co/MDVFkNf
< >
正在显示第 1 - 11 条,共 11 条留言
Into 2024 年 9 月 8 日 上午 10:49 
Can I turn strength control off, so I can set it manually in wheels (not inside script).
Wanderer_308  [开发者] 2024 年 9 月 9 日 下午 2:10 
Hi. To completely disable strength control you need to remove this line from the script (line 1463):
if(!StrStMachine.MoveNext()) StrStMachine=UpdateStrenght();
Into 2024 年 9 月 9 日 下午 4:08 
Awesome, it works. Thanks!
Into 2024 年 9 月 9 日 下午 4:21 
Would be awesome if it be possible to set min/max and target values for component. For instance, AdaptiveSteering could be in my use case a bit more aggressive.
最后由 Into 编辑于; 2024 年 9 月 9 日 下午 4:26
Into 2024 年 9 月 10 日 上午 8:20 
started to look into your script to figure it out my self, but it goes way beyond my knowledge
trying to find a way to disable Ackermann steering from Subgrids and/or steering from Subgrids (because I want to handle it elsewhere)

what I could accomplish was deleting the following line
///
if(suspension.IsSubgrid||ForceFullOverride)
suspension.SteerOverrie = -Math.Sign(suspension.WheelPositionAgainstRef.Z) * UserInput.AD;
///

which disabled the steering override, but Ackerman is still calculating maingrid steering angle, as if subgrid steering was still enabled (and I actually want to keep Ackermann, it's awesome, thanks for that!)
最后由 Into 编辑于; 2024 年 9 月 10 日 上午 8:52
Wanderer_308  [开发者] 2024 年 9 月 10 日 下午 2:04 
You can turn off steering in wheels terminal menu, the script will not take such wheels for Ackermann calculations.
Into 2024 年 9 月 11 日 上午 12:48 
I need to have steering to be on.
Wanderer_308  [开发者] 2024 年 9 月 11 日 下午 3:27 
The easiest way would be to set _AckermannFocalPoint variable to AckermannFocalPointRef.RC and then place the RC block to where the main turn axel you want to be. Messing with calculations may have unexpected side effects. Also keep your edits.
Into 2024 年 9 月 11 日 下午 3:55 
didn't worked The trailer sheared into the wrong direction and the main axel wasn't turning at all.
Wanderer_308  [开发者] 2024 年 9 月 13 日 下午 6:08 
Okay, I have an idea. Scrap that about _AckermannFocalPoint and restore this code you have deleted
if(suspension.IsSubgrid||ForceFullOverride) suspension.SteerOverrie = -Math.Sign(suspension.WheelPositionAgainstRef.Z) * UserInput.AD;
In restored code replace
if(suspension.IsSubgrid||ForceFullOverride)
to this
if(!suspension.IsSubgrid&&ForceFullOverride)
Now, find and replace "suspension.Obj.Steering" for "suspension.Obj.Steering&&!suspension.IsSubgrid", there would be three occurrences of it
if(suspension.Obj.Steering) /// if(suspension.Obj.Steering) /// if(suspension.Obj.Steering&&suspension.Obj.IsAttached)
That should be enough.
Into 2024 年 9 月 13 日 下午 7:42 
thanks, it works!
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50