Jump to content

Yet another TI-BASIC orbital calculator


snotmaster

Recommended Posts

KSP is either heaven or hell when it comes to formulas and calculations, and to avoid jumping between KSP and browser-based sites and tools I recently bought an old TI-84+. To avoid errors I minimized the need to enter lots of values, and I've ended up with a program that calculates velocities, Delta-V, orbital period, and time in darkness by entering just Apoapsis and Periapsis and selecting the planets/moons from a menu. The program is inelegant and unoptimized, and the "darkness time" formula is particularly bad. I might try to squeeze in more functions in the future. All values are in meters and seconds.

UVqpHLd.png

iP2oL0G.png

7I72euv.png

O6ztlH1.png

94a6TPW.png

Link to Pastebin: https://pastebin.com/ZQmMfcfZ

Most of the work has been done in TokenIDE and Wabbitemu.

Problems: "Weird" characters often mess up copy-and-paste, so I've made some changes to the source file. Exponentials (ᴇ) have been turned into *10^(), and the variable store arrow (→) has been turned into ->. Minmus has been written as Min\mus to avoid it turning into Minμs. Using L2 as a label wasn't a good choice either.

My results differ slightly from some of the online calculators I've used. I have  no idea how to read the planet and moon Mass (and other) values straight from the game, so they're from Kerbal Space Program Wiki.

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...