ttb
Members-
Posts
93 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by ttb
-
[PYTHON][ALL OS] basaGC - Apollo Guidance Computer for KSP
ttb replied to ttb's topic in KSP1 Tools and Applications
Hi, Yip sure am. I'm going to rewrite the app using Kivy rather than wxPython, as Kivy is cross-platform. Also lots more nav features to come, stay tuned! Cheers ttb -
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Hi all, Have moved to the Tools and Applications subforum here. New version 0.1.1 available there. Thanks, ttb -
basaGC Apollo Guidance Computer for KSP Version 2.2.0 I am pleased to present to you for your guidance needs, the basaGC. The interface is run in a seperate window to KSP. To grab a copy of the code, head to https://github.com/cashelcomputers/basaGC . Please feel free to test and report any bugs here or on github. ***IMPORTANT!!!1!!*** Make sure to read the readme and manual on github. It will tell you how to use the basaGC, and a list of prerequisites. Please note that this is NOT a plugin for KSP, it merely runs alongside KSP and gets its information from the Telemachus plugin. Download, or checkout from Github. Thanks, ttb
-
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Hi all, I am pleased to announce the the release of basaGC 0.1. Now with a actual navigation function! Check out the changelog and manual for the gory details. Download Changelog Manual Github New features Coming Soonâ„¢: - Change the Hohmann Transfer program to continuously update the Delta-V display during the burn - Add new nav functions such as inclination change, circularisation, etc - A version for Android using Kivy - Ability to run on a different computer over a network - And lots more! Thanks, ttb -
Outstanding! Thanks for the mod! I've been looking into maths for my AGC replica, this will definitely come in handy (even if I just read the source)! Thanks ttb
-
Hi NeoMorph, Thanks for your post. I would be interested to see your approach as well Unfortunately I'm a wee way away from building a prototype due to financial constrains Thanks ttb
-
Hi ArsenioDev, I'm afraid that I can't even afford cheap parts at the moment, but I would be interested in your sources for cheap parts when the time comes Specifically I need 74HC595 shift registers, 7 segment displays (green), and momentary square pushbuttons (these seem to be the most expensive). Thanks ttb
-
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Thanks for the reply. I have messaged Ledenko. Note that this script isn't implemented in KSP, its a pure Python script using wxPython. However I have a big interest in the Apollo Project so I may be able to help (I'm not a graphic artist tho, but *possibly* would be able to contribute somehow. Thanks ttb -
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Hi all, Just a quick note for the geeks amongst us (me included!) you can use this as a clock without running KSP Simply fire up the script, then enter [VERB]16[NOUN]36[ENTR] On another note, I would be really really keen to hear from anyone who has used this for your feedback! Thanks ttb -
The Linux compatibility thread!
ttb replied to sal_vager's topic in KSP1 Technical Support (PC, unmodded installs)
Hi all, Just thought I should throw in my (belated) method to get text to appear on Fedora 20: wget [url]http://winetricks.org/winetricks[/url] chmod +x winetricks ./winetricks eufonts that solved the no text issue for me. Just a observation: I always have trouble installing proprietary drivers, am running on stock drivers and it runs just fine. I reckon at least equivalent to running on M$ windoze Thanks ttb -
Mo prob re MonoDevelop, I was just playing around with it. I'm a Linux bloke so was trying to compile on Linux Just spotted a error in the code I quoted: registerAPI(new PlotableAPIEntry( dataSources => { return dataSources.vessel.orbit.referenceBody.gravParameter; }, "b.o.gravParameter", "Epoch", formatters.Default, APIEntry.UnitType.TIME)); I think the APIEntry.UnitType shouldn't be TIME, it would seem the KSP API returns a float, not sure what this corresponds to in your code. Thanks a bunch, looking forward to your update! Cheers Tim P.S. C# does my head in
-
Hi Richard, After perusing the MechJeb sources, it sounds like a bunch of work to implement this in Telemachus. I can do the math in my script, however I would be greatful if you could expose a few extra parameters over the Telemachus API, namely o.referenceBody.gravParameter and o.epoch. Here is a snippet of what I think the changes entail to DataLinkHandlers.cs: registerAPI(new PlotableAPIEntry( dataSources => { return dataSources.vessel.orbit.epoch; }, "o.epoch", "Epoch", formatters.Default, APIEntry.UnitType.TIME)); and registerAPI(new PlotableAPIEntry( dataSources => { return dataSources.vessel.orbit.referenceBody.gravParameter; }, "b.o.gravParameter", "Epoch", formatters.Default, APIEntry.UnitType.TIME)); I have attempted to make the changes and recompile using MonoDevelop, however I get the following error: Unable to compile (/usr/bin/resgen2) /home/ttb/sources/Telemachus_working/Servers/Servers/Properties/Resources.resx to .resources. Reason: Error: Invalid ResX input. Position: Line 123, Column 5. Inner exception: Encoding name 'gb2312' not supported Parameter name: name Thanks Tim
-
Hi Richard, Thanks for your reply. I have dug out this snippet from the MechJeb sources: //Computes the delta-V and time of a burn to match planes with the target orbit. The output burnUT //will be equal to the time of the first descending node with respect to the target after the given UT. //Throws an ArgumentException if o is hyperbolic and doesn't have a descending node relative to the target. public static Vector3d DeltaVAndTimeToMatchPlanesDescending(Orbit o, Orbit target, double UT, out double burnUT) { burnUT = o.TimeOfDescendingNode(target, UT); Vector3d desiredHorizontal = Vector3d.Cross(target.SwappedOrbitNormal(), o.Up(burnUT)); Vector3d actualHorizontalVelocity = Vector3d.Exclude(o.Up(burnUT), o.SwappedOrbitalVelocityAtUT(burnUT)); Vector3d desiredHorizontalVelocity = actualHorizontalVelocity.magnitude * desiredHorizontal; return desiredHorizontalVelocity - actualHorizontalVelocity; } And //Computes the delta-V and time of a burn to match planes with the target orbit. The output burnUT //will be equal to the time of the first ascending node with respect to the target after the given UT. //Throws an ArgumentException if o is hyperbolic and doesn't have an ascending node relative to the target. public static Vector3d DeltaVAndTimeToMatchPlanesAscending(Orbit o, Orbit target, double UT, out double burnUT) { burnUT = o.TimeOfAscendingNode(target, UT); Vector3d desiredHorizontal = Vector3d.Cross(target.SwappedOrbitNormal(), o.Up(burnUT)); Vector3d actualHorizontalVelocity = Vector3d.Exclude(o.Up(burnUT), o.SwappedOrbitalVelocityAtUT(burnUT)); Vector3d desiredHorizontalVelocity = actualHorizontalVelocity.magnitude * desiredHorizontal; return desiredHorizontalVelocity - actualHorizontalVelocity; } EDIT: also found this: //Returns the next time at which a will cross its descending node with b. //For elliptical orbits this is a time between UT and UT + a.period. //For hyperbolic orbits this can be any time, including a time in the past if //the descending node is in the past. //NOTE: this function will throw an ArgumentException if a is a hyperbolic orbit and the "descending node" //occurs at a true anomaly that a does not actually ever attain public static double TimeOfDescendingNode(this Orbit a, Orbit b, double UT) { return a.TimeOfTrueAnomaly(a.DescendingNodeTrueAnomaly(, UT); } EDIT 2: found some more maybe relevant stuff: //Gives the true anomaly (in a's orbit) at which a crosses its descending node //with b's orbit. //The returned value is always between 0 and 360. public static double DescendingNodeTrueAnomaly(this Orbit a, Orbit { return MuUtils.ClampDegrees360(a.AscendingNodeTrueAnomaly( + 180); } and from MuUtils: public static double ClampDegrees360(double angle) { angle = angle % 360.0; if (angle < 0) return angle + 360.0; else return angle; } Hope this helps. Tim
-
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
I'll contact Ledenko, could you post a link to the project you are referring to? I found a IVA project he's working on, is that what you are refering to? Cheers ttb -
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Hey all, an update is up on GitHub (https://github.com/cashelcomputers/basaGC). Added noun 44 (attitude display, roll, pitch, yaw), refactored code to reduce line count, and bug fixes. Also added a manual, I strongly suggest you read it! Enjoy! ttb -
Hi Richard, Thanks for the excellent mod! I am using it to send data to an external python script that implements a Apollo guidance computer. However, to calculate orbital plane change maneuvers to match the plane of a target (say, minmus) I need to get data for the time to descending (or ascending) node. I have looked through the source for Telemachus to try to understand how the mod gets its info from KSP, but I am at a loss on how this works (I don't know C# at all, but have managed to pick some of it up from reading sources). I was wondering if you could please help me to modify Telemachus to expose this information over the web API? Thanks, Tim
-
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Images are up on GitHub now -
basaGC (Apollo Guidance Computer (AGC) implementation for KSP) [WIP]
ttb replied to ttb's topic in KSP1 Mod Releases
Hi, Yip thats definately the plan. Lol oops i forgot to upload the image files to Github, going to fix this now Thanks ttb -
Hey all, So i cant possibly afford the $$ to build this properly at the moment, so I've written a version in Python. Check out the thread http://forum.kerbalspaceprogram.com/threads/68657-basaGC-%28Apollo-Guidance-Computer-%28AGC%29-implementation-for-KSP%29-WIP for more info. Thanks ttb
-
Hi folks, I am pleased to present to you for your guidance needs, the basaGC. In another thread I was discussing making a hardware AGC with Arduino. However due to lack of funds to purchase the hardware needed, I have created this python script to implement a version of the AGC. The interface is run in a seperate window to KSP. To grab a copy of the code, head to https://github.com/cashelcomputers/basaGC . Please feel free to test and report any bugs here or on github. ***IMPORTANT!!!1!!*** Make sure to read the readme on github. It will tell you how to use the basaGC, and a list of prerequisites. Please note that this is NOT a plugin for KSP, it merely runs alongside KSP and gets its information from the Telemachus plugin. This screenshot shows we are running Program 11 (launch monitor). In the three data registers we can see (from top to bottom) apoapsis in metres, periapsis in metres, and time to apoapsis in seconds. Happy navigating! ttb
-
"Why, ttb" I hear the masses cry, "why are you the happiest guy on Kerbal?" I reply, because I got KSP running on Linux. Just a few minor issues, like no text (which is easily fixed). Also going to install the propritiery ATI driver and see how that goes. Seems to run OK with the open source drivers though. thanks (Happy) ttb
-
If the Apollo computers were less powerful than my phone...
ttb replied to Tex's topic in Science & Spaceflight
You don't even need the power of a phone to do this. There are sattelutes with arduino's running the show: https://ardusat.org/ Thanks ttb -
Privacy is IMHO important on the internets. HTTPS helps ensure privacy. Quite a few sites are moving to it by default. I believe the new HTTP 2 standard will require HTTPS by default if available. The only argument against HTTPS in the past is due to the extra processing requirements, however with modern hardware this is of little concern. Of course there is the cost of purchasing a SSL certificate. I for one would be stoked if this forum provided HTTPS. My two cents. Thanks ttb