-
Posts
159 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by Michael Kim
-
Well I'm not sure why I had that 100m limit at first... It's annoying sometimes. I'll remove that limit in the next release, so as long as your target vessel is loaded into the game, you can use Docking Assistance
-
I'd like them to engage manually as it's easier for coding (as I think now) but disengage automatically when undock.
-
Since you docked manually, I don't see any reason why the ship starts to spin, as the kill relative v and auto alignment autopilots should disengage themselves after docking. Problem might be 1) You have other controls on the ship, like MechJeb or even ASAS. Try disengage all of them. 2) Some autopilots fail to disengage properly. In this case, check the debug console (Alt + F2) first and see if there's anything in red.
-
new version out w/ loading & saving. check it out!
-
[0.21.1] HydroTech RCS Autopilot v0.5.1 (2013.8.28)
Michael Kim replied to Michael Kim's topic in KSP1 Mod Releases
Coding for joy at the moment. v0.4 out, with loading & saving, so now your settings and panel positions will be remembered. (And that's why I call it 0.4 instead of 0.3.10) Have fun -
Quantum struts already does this, and it's the only way I can think of for now. I may consider adding quantum strut alike stuff to docking cameras and targets in the future These are about orbital rendezvous and it's in my plan (but not in the near future). Good reminder as I forgot things after the forum broke down For now, MechJeb is doing pretty well
-
Good idea! I'm not really a part maker so I'm not sure if it's within my ability, but I'll try it
-
[0.21.1] HydroTech RCS Autopilot v0.5.1 (2013.8.28)
Michael Kim replied to Michael Kim's topic in KSP1 Mod Releases
After having some real trouble updating on KSPort, it's finally there This time with improved landing autopilot -
I'm currently not interested in maintaining HydroTech mods, until the game is in a more complete state, let's say, beta. This is not a promise though that I will come back when KSP beta comes out. However, I would still like to hold all rights of these mods in case I will. If anyone is interested in maintaining HydroTech mods during this time, please contact me via PM. HydroTech RCS Autopilot Any bug report or suggestion goes here. If you want to download the HydroTech RCS Autopilot mod, please go to the release thread. Future plans (plugin), by ETA (may change) - Loading/saving system, remembering panels states and settings (done!) - Jebs as ASAS - Lever arm compensation - Quantum struts on docking parts - Orbit adjustment - Orbital rendezvous - Can't remember more, remind me guys! And tell me what you want! Future plans (parts) - Docking ports with DA system installed How to report a bug? - List what other plugin mods (those with a .dll in Plugins folder) are used, and which of them are functioning. Also, if ASAS is on, please tell me. - Describe what you did with HydroTech mod, and what the problem is. - Check the debug console (Alt + F2) and see if there's anything in red. If yes, please post the content (which can also be found in KSP_Data\output_log.txt). Making suggestions New parts, new features, improvement of current features... Everything is fine and I'm happy to discuss with you. However, please do not suggest: 1) Remodel or change the texture of parts "because they are ugly" Nothing fits everyone's taste. 2) Removing a feature "because MechJeb does it" If you think MechJeb does it better (which is fair because I'm just an undergrad and this mod started much later than MechJeb), use MechJeb. Latest work 2013.08.28 - Finished the new version. Released on Spaceport and Mediafire. HydroTech Mouse Drive Download: http://forum.kerbalspaceprogram.com/showthread.php/26229 Future plans (plugin) - Add saving/loading. - Multiple sizes - ? Latest work 2013.06.03 - Uploaded the new version to mediafire.
-
Share some of my code here, which you can also find in HydroTech RCS Autopilot Method #1: Physics contact, i.e. go down from a point and see how far it can go until hitting the ground protected bool PhysicsContactMethod( Vector3 origin, Vector3 direction, float maxDistance, // the max distance of detection, to pass into Physics.Raycast out float result ) { RaycastHit sfc; if (Physics.Raycast(origin, direction, out sfc, maxDistance, 1 << 15)) { result = sfc.distance; return true; } else { result = 0.0F; return false; } } Method #2: Load main body terrain information and get terrain height of given latitude/longitude protected bool MainBodyTerrainMethod(Vector3 origin, out float result) { if (MainBody.pqsController != null) { result = (float)( altASL - (MainBody.pqsController.GetSurfaceHeight( QuaternionD.AngleAxis(MainBody.GetLongitude(origin), Vector3d.down) * QuaternionD.AngleAxis(MainBody.GetLatitude(origin), Vector3d.forward) * Vector3d.right ) - MainBody.pqsController.radius) ); return true; } else { result = 0.0F; return false; } } where altASL = (float)MainBody.GetAltitude(origin); /* EDIT: forgot this */ CelestialBody MainBody { get { return FlightGlobals.ActiveVessel.mainBody; } } Also, if you want the true altitude (distance to terrain OR sea), make sure to pick the smaller one. BTW, MechJeb has done almost everything, and its code is available online, so it's a good idea to learn things from it if you're new.
-
An officially unofficial title for the recent unfortunate event.
Michael Kim replied to hawkinator's topic in The Lounge
Like!!! LOL -
HydroTech RCS Autopilot focuses on doing all sorts of things with RCS, and provides you a brand new driving experience. v0.5.1 Release Download Download at mediafire Source code available at mediafire (HydroTech_FC.dll, HydroTech_RCS.dll). Everyone is welcome to develop mods based on my work, but as it's still in development and things may undergo major changes in the future. If you have ideas and suggestions, or encounter bugs, please go to the development thread. I will also have my work update there. Now include - Parts: a radial Jeb, several stack Jebs in different sizes, a docking camera, a docking target, and a part with both camera and target on - Main Throttle Control - RCS Thrust Info - Precise Control - Automatic Translation - Landing Autopilot - Docking Assistant What's new? - Removed automatic change of settings with automated docking. - Landing autopilot - Added "hover at ASL altitude" option for landing autopilot. - Improved the landing autopilot GUI. - Improved holding altitude method. - Enable SAS toggle in some autopilots. - Automatic translation, when "holding orientation" is not on. - Precise control. - Docking autopilot, when - Manual docking; AND Camera view not engaged; AND Automatic orientation not engaged. * SAS turned off when - Automatic translation, when "holding orientation is on. - Landing autopilot. - Docking autopilot, when - Automated docking; - Camera view; - Automatic orientation. Screenshots can be found on imgur. Usage, known issues and change logs can be found in Readme.txt. Tutorial on Docking Assistant (v0.3.4) by kurtu5 Acknowledgements maro for giving me a lot of suggestions to improve this mod kurtu5 for making a great video r4m0n for kindly telling me what to look at when I tried to learn something from his source codes And many others in the community for giving me support! License 3D Models and textures: do not modify for own use unless permission given. Plugin: feel free to use any part of my code, but making derived classes is encouraged as I have a lot of methods virtual Announcement There has been someone who (very rudely) say that I am a code stealer. My answer is that every line of code is typed by me. My statement that I am new to C# (which was made when I first started this mod) does not mean I'm a raw coder; I have years of coding experience in C++ and VB so I don't even need to learn C# to start writing it. What I want to say is, my coding habits in C# may be pretty bad (because I'm used to C++) so I would like some advices if one finds it strange when reading my codes. But anyway, I have my own coding style, as an experienced coder can probably tell. I did learn from the wiki and other mods when I first started this mod. It was even dependent on MuMechLib.dll before v0.2. And there are a few methods I use that are very similar to those in other mods (that I learned from), but it's far from stealing codes in perspective of a programmer. In fact there is sometimes hardly a second way to implement what I want. I have marked those methods in my codes.
-
Since our last thread is lost I think I should start one again. Not much to say here as I have a lot to check... So bring it on guys!