Boris-Barboris

[1.8.0-1.10.1] AtmosphereAutopilot 1.5.16

Recommended Posts

6 hours ago, Flibble said:

To pick up on this old post, I have made a mod that extends kOS to allow it to control AA from script.

Currently supported are: toggling mode (fbw, director, cruise), setting director vector, setting some cruise params.

Note that the director is not mouse director, I've added a new kOS director to avoid the mouse interfering.

Download (and code) here: https://github.com/RCrockford/kOS-AtmosphereAutopilot/releases

Usage:

You can access it with ADDONS:AA it has the following boolean suffixes: FBW, DIRECTOR, CRUISE, SPEEDCONTROL, PSEUDOFLC, scalar: SPEED, HEADING, ALTITUDE, VERTSPEED, and vector: DIRECTION
 
e.g.

set addons:aa:altitude to reqAltitude.
set addons:aa:heading to reqHeading.
set addons:aa:cruise to true.
or

set addons:aa:direction to heading(reqHeading, reqPitch):Vector.
set addons:aa:director to true.

Interesting addition for both mods, kOS and AA. May I suggest to open dedicated forum thread for this if you didn't already ? Also, it might be a good idea to have full install path in release archive, like "\GameData\kOSAtmosphereAutopilot". Only MM dll should be in root of Gamedata folder. Any other mod should be inside some subfolder within Gamedata folder. While it does not matter much when comes to plugin DLLs to work properly,  with amount of available mods for KSP things can become messy quickly. Also, at some point of develepment you might deceide that you want/need additional config files and so on. Keeping everything in dedicated subfolder will make everything better organised on the long run. Despite having a little more things to do in the begining that does not seems to be necessary at first.

Share this post


Link to post
Share on other sites

It's supposed to be in a separate folder, though I'm not discounting that I messed up the zip.

Share this post


Link to post
Share on other sites

And having double checked I can see that it does have a folder structure in it, so I'm not sure what the issue is.

Share this post


Link to post
Share on other sites
2 hours ago, Flibble said:

And having double checked I can see that it does have a folder structure in it, so I'm not sure what the issue is.

Sorry, my bad, archive does contain " kOSAtmosphereAutopilot" folder in it (I missed it, my eyes are not so good imediately after work). However, comon practice is to have full path in archive "\GameData\kOSAtmosphereAutopilot". You are missing bolded part. No issue for me, but there is a lot of less skilled people, especialy new KSP player who often mess up manual installs. I don't know why I thought that kOSAtmosphereAutopilot folder is missing too. Sorry about that.

Share this post


Link to post
Share on other sites

Anyone "less skilled" I would expect to wait for a CKAN release.

Share this post


Link to post
Share on other sites

Does anyone else have an issue with Atmosphere Autopilot "pulling" the aircraft to the right during initial take off and landing? When I leave AA engaged from takeoff all the way to landing I always seem to get this. It becomes very noticeable during the final breaking after rollout. However, when I was testing this issue I found that the "pulling" goes away when I turn off AA and go back the stock controls/SAS. Is that normal or does anyone know how to tweak AA to stop doing that to my aircraft?

For landing and takeoffs the AA is set to the the Flyby Wire mode. All the setting are pretty much stock with the exception of the setting for coordinated turn is turned on and I have some of the stock G-Limits and AOA lowered.

Share this post


Link to post
Share on other sites
On 5/6/2020 at 2:24 PM, Galland1998 said:

Does anyone else have an issue with Atmosphere Autopilot "pulling" the aircraft to the right during initial take off and landing? When I leave AA engaged from takeoff all the way to landing I always seem to get this. It becomes very noticeable during the final breaking after rollout. However, when I was testing this issue I found that the "pulling" goes away when I turn off AA and go back the stock controls/SAS. Is that normal or does anyone know how to tweak AA to stop doing that to my aircraft?

Check of the SAS was engaged when you turned on AA. I solved some weird behaviours this way. Perhaps it would work to you.

Share this post


Link to post
Share on other sites

Atmospheric Autopilot is making my aircraft nose down in 1.9, but this same version worked in 1.8 just fine. Is there a fix?

Share this post


Link to post
Share on other sites
6 hours ago, lk00david said:

Atmospheric Autopilot is making my aircraft nose down in 1.9, but this same version worked in 1.8 just fine. Is there a fix?

No, it should work just fine. You'll have to diagnose your particular installation: logs, screenshots...

Share this post


Link to post
Share on other sites

Don't know if anyone has ran into this. 

But every time I engage autopilot (any mode) the thrust limiter on my Raipers go to zero.

I've tested on different engine craft and only the Rapiers seem to zero the thrust limiter.

If I change pitch, the thrust limit seem to go up momentarily but as soon as I reach steady fight where my pitch is no longer changing the limit goes back to zero.

Share this post


Link to post
Share on other sites
On 5/5/2020 at 3:38 AM, Flibble said:

To pick up on this old post, I have made a mod that extends kOS to allow it to control AA from script.

Currently supported are: toggling mode (fbw, director, cruise), setting director vector, setting some cruise params.

Note that the director is not mouse director, I've added a new kOS director to avoid the mouse interfering.

Download (and code) here: https://github.com/RCrockford/kOS-AtmosphereAutopilot/releases

Usage:

You can access it with ADDONS:AA it has the following boolean suffixes: FBW, DIRECTOR, CRUISE, SPEEDCONTROL, PSEUDOFLC, scalar: SPEED, HEADING, ALTITUDE, VERTSPEED, and vector: DIRECTION
 
e.g.

set addons:aa:altitude to reqAltitude.
set addons:aa:heading to reqHeading.
set addons:aa:cruise to true.
or

set addons:aa:direction to heading(reqHeading, reqPitch):Vector.
set addons:aa:director to true.

Can you provide a sample script that cruises the plane to a specific altitude? I tried adding this to my script:

set addons:aa:altitude to startingAltitude.
set addons:aa:cruise to true.

but it doesn't work for me. What am I missing?

Share this post


Link to post
Share on other sites

That should be enough, what happens when you run the script?

Also what does AA show when you open the control panel for cruise flight?

Share this post


Link to post
Share on other sites
9 hours ago, Flibble said:

That should be enough, what happens when you run the script?

Also what does AA show when you open the control panel for cruise flight?

When I use the AA code in my script the flight controls don't move. Are we supposed to open the AA control panel in order for the scripted AA to work?

edit: I figured out the problem, Atmosphere Autopilot does not engage when the plane is on the ground, so I had to just give it a slight increase in pitch for 2 seconds to get it in the air, then the AA took over and went to the altitude I wanted.

Edited by delta wee

Share this post


Link to post
Share on other sites
11 hours ago, delta wee said:

When I use the AA code in my script the flight controls don't move. Are we supposed to open the AA control panel in order for the scripted AA to work?

edit: I figured out the problem, Atmosphere Autopilot does not engage when the plane is on the ground, so I had to just give it a slight increase in pitch for 2 seconds to get it in the air, then the AA took over and went to the altitude I wanted.

Opening the panel is just for checking settings are working - it should work fine without.

And yes, nothing happens on the ground, I have been caught by that - I use the kOS steering manager to get my plane off the ground then switch to AA once airborne. That is AA behaviour, not something specific to the kOS interface.

Edited by Flibble

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.