Space Engineers

Space Engineers

Pilot Assistant System - PAS - Автопилот
 此主题已被置顶,因此可能具有重要性
[HELLBENT]  [开发者] 2023 年 8 月 27 日 下午 4:24
Any purposes / bugs?
Leave here your purposes or bug reports.
< >
正在显示第 1 - 15 条,共 15 条留言
糖酱今天又在摆烂 2023 年 9 月 5 日 上午 1:51 
I can't seem to get the script to control gyros onboard, thrusters are okay but it won't steer the plane. I've got a flight stick gyro from consty's and a vanilla one both on the same grid though.
[HELLBENT]  [开发者] 2023 年 9 月 5 日 上午 2:03 
I can't seem to get the script to control gyros onboard, thrusters are okay but it won't steer the plane. I've got a flight stick gyro from consty's and a vanilla one both on the same grid though.
Well, please tell me exactly what you did so that I could replicate this bug for myself. Did it not work right away or did it stop working at some point?
Vitos 2023 年 12 月 2 日 下午 8:25 
I set up the script on my plane and placed all necessary blocks according to instructions. At certain moment between waypoints PAS is not setting sufficient thruster force for the plane to maintain its altitude and it beggins to stall. During that moment plane is flying at pitch that is a bit higher from horizon but its vertical speed turns negative and it starts to lose altitude, but despite that, the PAS is not increasing the thruster force above 30%, which results in crash.

Do you know what could be the cause of such behaviour? I can send you screen captured video recording and/or the world save if needed.
最后由 Vitos 编辑于; 2023 年 12 月 2 日 下午 8:40
[HELLBENT]  [开发者] 2023 年 12 月 2 日 下午 8:42 
引用自 Vitos
I set up the script on my plane and placed all necessary blocks according to instructions. At certain moment between waypoints PAS is not setting sufficient thruster force for the plane to maintain its altitude and it beggins to stall. During that moment plane is flying at pitch that is a bit higher from horizon but its vertical speed turns negative and it starts to lose altitude, but despite that, the PAS is not increase thruster force above 30%, which results in crash.

Do you know what could be the cause of such behaviour? I can send you screen captured video recording and/or the world save if needed.
Every time, there are more and more cases that I see for the first time. Sure, send the video, please.
Vitos 2023 年 12 月 2 日 下午 10:29 
I have recorded that issue. The recorded video can be accessed by copying this Dropbox link: https://www.dropbox.com/scl/fi/ika0yevvigfhy6ed5e1g4/Space-Engineers-PAS-Flight_Test_1.mp4?rlkey=2cq7a36bfdy54kari6ubthyph&dl=0

In the footage, one can observe the behaviour that I described before: the plane has negative vertical speed, but it keeps thruster force below 30%. There is a chance that I have set up something incorrectly, but I did everything strictly according to the manual. Let me know if you need more footage or a save of that world. Take as much time as needed and troubleshoot whenever convenient for you. I will be keeping an eye on the development of this script.
最后由 Vitos 编辑于; 2023 年 12 月 2 日 下午 10:31
[HELLBENT]  [开发者] 2023 年 12 月 3 日 上午 5:28 
引用自 Vitos
I have recorded that issue. The recorded video can be accessed by copying this Dropbox link: https://www.dropbox.com/scl/fi/ika0yevvigfhy6ed5e1g4/Space-Engineers-PAS-Flight_Test_1.mp4?rlkey=2cq7a36bfdy54kari6ubthyph&dl=0

In the footage, one can observe the behaviour that I described before: the plane has negative vertical speed, but it keeps thruster force below 30%. There is a chance that I have set up something incorrectly, but I did everything strictly according to the manual. Let me know if you need more footage or a save of that world. Take as much time as needed and troubleshoot whenever convenient for you. I will be keeping an eye on the development of this script.
Hmm, what method of generating lift force are you using? I see that the script maintains the required horizontal speed. Most likely your airplane needs more speed to keep it from going into a stall
Vitos 2023 年 12 月 3 日 下午 12:16 
引用自 HELLBENT
Hmm, what method of generating lift force are you using? I see that the script maintains the required horizontal speed. Most likely your airplane needs more speed to keep it from going into a stall

For generating a lift I am using 8 Small Grid Large Atmospheric Thrusters that point forward. Those Thrusters, along with 2 other Large Atmospheric Thrusters that point backward, are the only thrusters that are installed on that plane from the footage. So the plane only uses forward thrusters for the lift.

But I see what you are getting at. Yes, you are right, the plane reaches the horizontal speed that it was tasked to maintain, and perhaps for that reason, it does not increase thruster force further, because then horizontal speed will increase beyond the tasked value. Increasing the target speed may indeed solve the problem, but the game speed limit is 100 m/s, which was the horizontal speed in the footage. I will try to increase the speed limit with mods and then test the script with a higher speed.
[HELLBENT]  [开发者] 2023 年 12 月 3 日 下午 12:26 
引用自 Vitos
引用自 HELLBENT
Hmm, what method of generating lift force are you using? I see that the script maintains the required horizontal speed. Most likely your airplane needs more speed to keep it from going into a stall

For generating a lift I am using 8 Small Grid Large Atmospheric Thrusters that point forward. Those Thrusters, along with 2 other Large Atmospheric Thrusters that point backward, are the only thrusters that are installed on that plane from the footage. So the plane only uses forward thrusters for the lift.

But I see what you are getting at. Yes, you are right, the plane reaches the horizontal speed that it was tasked to maintain, and perhaps for that reason, it does not increase thruster force further, because then horizontal speed will increase beyond the tasked value. Increasing the target speed may indeed solve the problem, but the game speed limit is 100 m/s, which was the horizontal speed in the footage. I will try to increase the speed limit with mods and then test the script with a higher speed.
Are you using any mods for aerodynamics or wings? Keep in mind that the vanilla game doesn't have physics for calculating lift. So no matter how aerodynamic your grid looks, it will fall without downward thrusters.
Vitos 2023 年 12 月 3 日 下午 1:07 
引用自 HELLBENT
Are you using any mods for aerodynamics or wings? Keep in mind that the vanilla game doesn't have physics for calculating lift. So no matter how aerodynamic your grid looks, it will fall without downward thrusters.

No. The only mod that was used in the footage was your script. I thought that in the vanilla game lift would be achieved by flying aircraft at an angle so the vertical projection of the force vector would be sufficient to counter force of the gravity. If this is not the case then I will also test the script by installing the aerodynamics mod, because I only want the plane to utilize forward-direction thrusters.
Vitos 2023 年 12 月 3 日 下午 3:48 
*UPDATE*
I used Digi's Aerodynamic Wings mod for generating the lift and it worked like a charm. When the plane is equipped with wings from that mod it doesn't stall during the flight and maintains the tasked altitude. I apologize for my stupidity, I wasn't aware that the script relies on aerodynamic mods for generating the lift. It is stated in the Workshop page, but I guess I missed it.

Before trying that Digi's mod I also tested the script with some vertical-pointing thrusters attached to the plane as you suggested, but that didn't work. During the flight the scrip didn't use vertical thrusters and the plane ended up stalling and crashing just like in my footage.
最后由 Vitos 编辑于; 2023 年 12 月 3 日 下午 8:02
[HELLBENT]  [开发者] 2023 年 12 月 3 日 下午 6:54 
引用自 Vitos
*UPDATE*
I used Digi's Aerodynamic Wings mod for generating the lift and it worked like a charm. When the plane is equipped with wings from that mod it doesn't stall during the flight and maintains the tasked altitude. I apologize for my stupidity, I wasn't aware that the script relies on aerodynamic mods for generating the lift. It is stated in the Workshop page, but I guess I missed it.

Before trying that Digi's mod I also tested the script with some vertical-pointing thrusters attached to the plane as you suggested, but that didn't work. During the flight the scrip simply didn't use vertical thrusters and the plane ended up stalling and crashing just like in my footage. So using aerodynamic mods is the only way for the script to generate the lift.
"I forgive you" © Spider-Man.
P. S. If you want to try an airplane with downward thrusters, use the "dampeners always active" function in the script settings.
Vitos 2023 年 12 月 3 日 下午 8:07 
引用自 HELLBENT
"I forgive you" © Spider-Man.
P. S. If you want to try an airplane with downward thrusters, use the "dampeners always active" function in the script settings.

Got it. I should have enabled dampeners in the configs during that test. Thank you for your assistance.
CJ 2024 年 9 月 24 日 上午 3:06 
I seem to have an issue where after takeoff, and before the plane routes towards the first way point within a route, it locks up with the following error.
•––( BuildInfo )–––
(Text from 37s ago)

Caught exception during execution of script:TimeSpan does not accept floating point Not-a-Number values.
at System.TimeSpan.Interval(Double value, Int32 scale)
at Program.AutoPilot.CalcTimeLeft()
at Program.AutoPilot.UpdateNavList()
at Program.AutoPilot.Update()
at Program.Main(String argument, UpdateType uType)
at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.<>cDisplayClass42_0.<ExecuteCode>b0(IMyGridProgram program)
at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.RunSandboxedProgramActionCore(Action`1 action, String& response)
•–––––
[HELLBENT]  [开发者] 2024 年 9 月 24 日 上午 4:17 
Somehow a value other than a number is fed into the function when calculating the arrival time. I can assume two things: 1. It is Space Engineers. (I've had a similar error occurring out of nowhere before, only with gyro controls)
2. There is something special about your route.

Either way, I've already quit the game. I got burned out and don't see a future in scripting and decided to do other things, so I won't be able to help you, sorry.
CJ 2024 年 9 月 24 日 上午 5:19 
引用自 HELLBENT
Somehow a value other than a number is fed into the function when calculating the arrival time. I can assume two things: 1. It is Space Engineers. (I've had a similar error occurring out of nowhere before, only with gyro controls)
2. There is something special about your route.

Either way, I've already quit the game. I got burned out and don't see a future in scripting and decided to do other things, so I won't be able to help you, sorry.
I understand that, and with that your response is welcomed, and I thank you. It turned out that I had the speed and altitude settings withing the config for the PB set to 0, so I guess when it went to use one of those to calculate the arrival time, it was 0 and threw an error due to that. It's all working now, thanks again for the amazing script.
< >
正在显示第 1 - 15 条,共 15 条留言
每页显示数: 1530 50