Boris-Barboris Posted November 2, 2019 Author Share Posted November 2, 2019 2 hours ago, Oscar_Muffin said: 4 - Coordinated turn appears to be stuck on, regardless of whether the button is selected or not. Can't get this one, see if you have some error spam in logs, cause no such thing happens on my machine. Quote Link to comment Share on other sites More sharing options...
Oscar_Muffin Posted November 2, 2019 Share Posted November 2, 2019 13 hours ago, Boris-Barboris said: Can't get this one, see if you have some error spam in logs, cause no such thing happens on my machine. No spam or anything out of the ordinary. I'm on a clean install with just AA. Example, using the Aeris 3A. Fly-by-wire. Moderation (Default settings with AoA disabled) Coordinated turn off. Take off and roll the plane about 20 degrees to the right and hold it there. The heading will slowly drift to the right despite coordinated turn being disabled. Turning it on makes no difference either, it still keeps turning. Only way I've found of stopping it is by turning "Rocket mode" on. That seems to disable coordinated turn. I'm not entirely sure what rocket mode actually does apart from that. Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted November 2, 2019 Author Share Posted November 2, 2019 3 hours ago, Oscar_Muffin said: Take off and roll the plane about 20 degrees to the right and hold it there. The heading will slowly drift to the right despite coordinated turn being disabled. Turning it on makes no difference either, it still keeps turning. Only way I've found of stopping it is by turning "Rocket mode" on. That seems to disable coordinated turn. I'm not entirely sure what rocket mode actually does apart from that. It's working as intended. FBW maintains zero sideslip, and the only way to maintain zero zideslip when you have rolled the craft is to yaw and change heading. Rocket mode makes your yaw similar to pitch and maintains angular velocity. Quote Link to comment Share on other sites More sharing options...
Oscar_Muffin Posted November 3, 2019 Share Posted November 3, 2019 (edited) 8 hours ago, Boris-Barboris said: It's working as intended. FBW maintains zero sideslip, and the only way to maintain zero zideslip when you have rolled the craft is to yaw and change heading. Rocket mode makes your yaw similar to pitch and maintains angular velocity. If that's what you say boss then that's how it's supposed to be. Just didn't happen the same way in 1.7.3 for me. In 1.7.3 rocket mode seemed useless as disabling coordinated turn achieved the same thing. Whereas this time disabling rocket mode activated what I know as coordinated turn. Edit - Okay, so disabling coordinated turn doesn't stop the plane turning when you roll (That's what I thought it did). Instead, it maintains your current pitch. With it disabled the plane will drift perpendicular to the yaw axis relative to itself. whereas with it enabled, AA wil give elevator input to keep the nose of the plane at the same angle so it doesn't drift down the navball as it turns. Got it. Edited November 3, 2019 by Oscar_Muffin Quote Link to comment Share on other sites More sharing options...
Rocketology Posted November 6, 2019 Share Posted November 6, 2019 (edited) @Boris-Barboris I just wanted to take a moment and thank you for this great mod! I have been using this since I discovered it a long time back, and it's everything that I wish SAS was - and more! The "coordinated turn" mode for an aviation enthusiast is pure gold. This one item alone is something that has always bugged the Hell out of me with SAS - as it isn't possible to execute a coordinated turn with it. And for those that are not aware, nearly all aircraft IRL use this for turning, and is one of the very first things taught if you take flying lessons. So once again Boris, Thank you! Edited November 6, 2019 by Rocketology Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted November 12, 2019 Author Share Posted November 12, 2019 https://github.com/Boris-Barboris/AtmosphereAutopilot/releases/tag/v1.5.16 Reasonably stable. Dll by @Morse (thank you) bundled with AA. Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted November 12, 2019 Author Share Posted November 12, 2019 Just some fancy graphs of the telemetry of AA pitch angular acceleration controller during rapid hard pitch down and pitch up vertical snake manoeuvre: You can see the never-ending struggle, caused by the model that is too simple to reflect the real craft and has to be constantly updated. The core assumption is simple: AeroTorque = DynPressure * (Constant + K1 * AoA + K2 * ControlSurfacePos) This is a very useful linear formula that approximates both real and KSP airplanes on small angles of attack. If we were to plot AoA, ControlSurfacePos and AeroTorque as points in 3D space, this linear formula would imply that these points should lie on a plane. Let's see the data from KSP flight: https://i.imgur.com/pQMGsTl.mp4 Quote Link to comment Share on other sites More sharing options...
Morse Posted November 23, 2019 Share Posted November 23, 2019 There are some problems yet with SyncModuleControlSurface aside from update scripts. Right now, I noticed that some engines from Mk2 expansion mod do not work properly. There is this VTOL engine that uses ModuleControlSurface to turn itself into vertical position using the "deploy" action. And it doesn't work properly. The deployment happens fast, much faster than it should be, and the retraction happens instantly. I looked at the code of the vanilla ModuleControlSurface.CtrlSurfaceUpdate, and I see that it differs substantially from what you have. What was the original purpose of this module? Is it still needed? I tried disabling the GimbalRearranger, and it still worked (and fixed the issue with the VTOL deployment). Maybe it was meant to fix the KSP problems that are long gone? Also, why do you use the custom module loader. Isn't it the purpose of the module manager? Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted November 23, 2019 Author Share Posted November 23, 2019 (edited) 1 hour ago, Morse said: What was the original purpose of this module? Is it still needed? I tried disabling the GimbalRearranger, and it still worked (and fixed the issue with the VTOL deployment). Maybe it was meant to fix the KSP problems that are long gone? The purpose is to fix stock module bugs (inversion on angled wings, quaternion comparison bug, less than 1 meter from CoM bug) and to synchronize all surfaces by hardcoding their actuation speed. No, these problems are not gone. https://bugs.kerbalspaceprogram.com/issues/5172https://bugs.kerbalspaceprogram.com/issues/21949https://bugs.kerbalspaceprogram.com/issues/9407https://bugs.kerbalspaceprogram.com/issues/9460 and their duplicates 1 hour ago, Morse said: Also, why do you use the custom module loader. Isn't it the purpose of the module manager? I need features (module reordering, regex matching) that are not present in MM. The easiest way to tackle this is to simply ignore this part, like I do for breaking grounds propeller blades based on their names. What's the part name? Edited November 23, 2019 by Boris-Barboris Quote Link to comment Share on other sites More sharing options...
Morse Posted November 23, 2019 Share Posted November 23, 2019 20 minutes ago, Boris-Barboris said: The easiest way to tackle this is to simply ignore this part, like I do for breaking grounds propeller blades based on their names. What's the part name? Ignoring by name would be cludgy. The ModuleControlSurface that is included with this engine has some very specific set of parameters ctrlSurfaceArea = 0 ignorePitch = true ignoreYaw = true ignoreRoll = true I guess either ctrlSurfaceArea = 0 or the fact that all the controls are ignored will be enough to understand that this is not the part you are looking for . You could safely ignore those. Quote Link to comment Share on other sites More sharing options...
FuzzyG Posted November 25, 2019 Share Posted November 25, 2019 On 10/26/2019 at 9:43 AM, Morse said: BTW, I use the dnSpy tool to decompile and look into KSP sources. Helps me tremendously when work around KSP bugs in my mods. If I may ask ever so humbly, which KSP sources are you referring to? I want to improve my debugging skills. King regards, ~G Quote Link to comment Share on other sites More sharing options...
Morse Posted November 25, 2019 Share Posted November 25, 2019 8 hours ago, FuzzyG said: which KSP sources are you referring to? In Unity game in most of the cases all the game logic is stored in the Assembly-CSharp.dll file. 8 hours ago, FuzzyG said: I want to improve my debugging skills. It has nothing to do with debug. For debug you need to attach to the running process to observe it step-by-step. This is just looking at the sources. And I wouldn't recommend looking at KSP sources for educational purposes. They are terrible. Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted November 25, 2019 Author Share Posted November 25, 2019 21 minutes ago, Morse said: And I wouldn't recommend looking at KSP sources for educational purposes. They are terrible. Fuel flow code is kino. Quote Link to comment Share on other sites More sharing options...
Lisias Posted December 8, 2019 Share Posted December 8, 2019 Hi, @Boris-Barboris I found this DLL on the Installation ZIP, KSPUpgradeScriptFix.dll, and I don't have the smallest clue about what this is neither from where to check the source! The AA doesn't link against it, so I think you can run AA without it (something to be tested when I'm properly awaken ). What it does? Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted December 8, 2019 Author Share Posted December 8, 2019 4 hours ago, Lisias said: Hi, @Boris-Barboris I found this DLL on the Installation ZIP, KSPUpgradeScriptFix.dll, and I don't have the smallest clue about what this is neither from where to check the source! The AA doesn't link against it, so I think you can run AA without it (something to be tested when I'm properly awaken ). What it does? It's a hack to prevent vessel part upgrade code, intoduced by squad in 1.8.0, from crashing on custom control surfaces. Previous page (27) of this forum topic contains the rationale and sources. Quote Link to comment Share on other sites More sharing options...
Lisias Posted December 8, 2019 Share Posted December 8, 2019 (edited) 1 hour ago, Boris-Barboris said: It's a hack to prevent vessel part upgrade code, intoduced by squad in 1.8.0, from crashing on custom control surfaces. Previous page (27) of this forum topic contains the rationale and sources. Ah. now I see. You are talking about this problem, solved by this code? humm.. yeah. Now that I downloaded the file, I can see it. The download link doesn't mention the filename, so it was not indexed, and so I could not find it! So, for indexing reasons: Quote The KSPUpgradeScriptFix.dll and its source can be found on this post (link for convenience). Thanks! Edited December 8, 2019 by Lisias slightly less entertaining grammars =D Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted December 8, 2019 Author Share Posted December 8, 2019 23 minutes ago, Lisias said: Quote The KSPUpgradeScriptFix.dll and its source can be found on this post (link for convenience). Thanks! added to OP Quote Link to comment Share on other sites More sharing options...
kcs123 Posted December 8, 2019 Share Posted December 8, 2019 Maybe it will be good idea to put same piece of code on github too, along with AtmosphereAutopilot. Source might be lost from someone private google drive if current maintainer get bored, need more space on private cloud or for whatever other reason. Then it will be again difficult to track down what this piece code is used for, if someone need to check it for some reason in the future. Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted January 27, 2020 Share Posted January 27, 2020 I'm having a problem using this to launch a tiny SSTO I have. What I do is turn on the Cruise Flight Controller, set the Heading to 90 and Vertical Motion to 100. This SSTO takes a little bit to start climbing, so I use my joystick to keep full up until it climbing at 100m/sec. But when I let go, the autopilot doesn't seem to be activated, the plane pitches forward into the sea. I'm using AFBW, could there be an issue with these two mods? Quote Link to comment Share on other sites More sharing options...
Lisias Posted January 27, 2020 Share Posted January 27, 2020 (edited) 4 hours ago, linuxgurugamer said: I'm having a problem using this to launch a tiny SSTO I have. What I do is turn on the Cruise Flight Controller, set the Heading to 90 and Vertical Motion to 100. This SSTO takes a little bit to start climbing, so I use my joystick to keep full up until it climbing at 100m/sec. But when I let go, the autopilot doesn't seem to be activated, the plane pitches forward into the sea. I'm using AFBW, could there be an issue with these two mods? Check the Crafting Settings, the Director Strength to be more exact. I should be "0.95". Also check the Limiters (Moderate AoA, Moderate G, etc). I have a situation in which the Director Strength value goes to 0 "by itself". I know why, it's something on the way that window reads input, and I'm trying to fix it on my sparing time. I kinda fixed this, but it made entering new values cumbersome. I'm managing to fix it right, I will do a pull request. Edited January 27, 2020 by Lisias additional Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted January 27, 2020 Author Share Posted January 27, 2020 4 hours ago, linuxgurugamer said: I'm using AFBW, could there be an issue with these two mods? There was an option inside AFBW's, something like AA compatibility or similar. Does fly-by-wire mode work as expected? Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted January 27, 2020 Share Posted January 27, 2020 3 hours ago, Boris-Barboris said: There was an option inside AFBW's, something like AA compatibility or similar. Does fly-by-wire mode work as expected? I think so, will try tonite Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted January 27, 2020 Share Posted January 27, 2020 I got a few minutes, so did some testing without my joystick. One thing I noticed was that the entry fields seem to keep focus, so that if I'm using the WASD to control, either the letters end up in the entry field or the field starts increasing, EVEN IF the Vertical Motion was not enabled. I found that if I had the MASTER SWITCH off, that wouldn't happen, and that by doing that and turning the master switch on, I am getting better results. Quote Link to comment Share on other sites More sharing options...
Boris-Barboris Posted January 27, 2020 Author Share Posted January 27, 2020 Yeah, there are separate settings for that, whether the vertical motion is enabled or not has no effect. For better or worse. 3 minutes ago, linuxgurugamer said: EVEN IF the Vertical Motion was not enabled Cruise flight gui: "Advanced options" description: hotkey altitude sens - tweak to manage altitude setpoint change speed. hotkey vertspeed sens - tweak to manage vertical speed setpoint change speed. Frankly, I usually just disable them, numeric input seems overall better. Quote Link to comment Share on other sites More sharing options...
mor128 Posted January 31, 2020 Share Posted January 31, 2020 (edited) I tried using Fly-By-Wire with a single engine prop craft. The torque of the engine seems to be amplified by the autopilot and the craft rolls with maximum roll rate until I disable the autopilot. Is there a way to fix this? Edited January 31, 2020 by mor128 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.