Orbiter-Forum  

Go Back   Orbiter-Forum > Articles > A5. Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Reply
 
Article Tools
  #1  
Old
Zatnikitelman's Avatar
Zatnikitelman Zatnikitelman is offline
Addon Developer
Arrow Ti83 Calculator Programs useful for Orbiter
by Zatnikitelman 08-28-2008, 09:10 PM

I believe someone wanted a list of some calculator programs we use to help us do stuff in orbiter. Most are development related so that's why I'm posting here. If anyone has any other programs, just post below!

Comments are annotated as //comment don't include that in your code.
-> Means "store to" a variable the sto key on the calculator.

Code:
//This is for calculating the total burntime of a rocket vehicle.
Disp "FUEL MASS?"
Input M
Disp "ISP?"
Inpus I
Disp "Thrust Force"
Input F
(M(9.80665I)/F->T
Disp T
Disp "Burntime"
Code:
//This calculates the total Delta V of a rocket
Disp "TOTAL MASS"
Input T
Disp "Dry Mass"
Input D
Disp "ISP"
Inpus I
(ln(T/D))->N
N*(9.80665*I)->V
Disp V
Code:
//This program calculates the eccentricity of an orbit.
Disp "INPUT PEG"
Input P
Disp "INPUT APG"
Input A
((A-P)/(A+P))->E
Disp E
Code:
//This program calculates the fuel mass required for a given dv.
Disp "ENTER DV"
Input D
Disp "ENTER ISP"
Input I
Disp "ENTER DRY MASS"
Inpus M
I*9.80665->I
Me^(D/I)->F
F-M->F
Disp F
Output(8,5,"FUEL MASS")
Code:
//This program calculates the fuel consumed over a given time
Disp "INPUT THRUST"
Input F
Disp "INPUT BURN TIME"
Input T
Disp "INPUT ISP"
Input I
I*9.80665->I
(TF)/I->M
Disp M
Disp "FUEL CONSUMED"
Code:
//This program calculates an unknown ISP given fuel mass and Dv
Disp "INPUT DV"
Input D
Disp "INPUT DRY MASS"
Input M
Disp "INPUT TOT MASS"
Input F
(D/ln(F/M))/9.80665->V
Disp "ISP"
Code:
//This program can be used to normalize x y and z vectors
Disp "INPUT X DISTANCE"
Input X
Disp "INPUT Y DISTANCE"
Input Y
Disp "INPUT Z DISTANCE"
Input Z
sqrt(x^2+y^2+z^2)->V
X/v->X
Y/v->Y
Z/v->Z
Disp "X NORMAL IS"
Disp X
Disp "Y NORMAL IS"
Disp Y
Disp "Z NORMAL IS"
Disp Z
Code:
//This program is used to calculate the required launch azimuth given your latitude, and the target orbit inclination.
Degree
Disp "ENTER ORBIT INC"
Input I
Disp "ENTER LATITUDE"
Input L
arcsin((cos(I)/cos(l))->A
Disp A
Code:
//This program calculates the orbital period on the Earth or the Moon
Disp "INPUT SMA"
Input S
Disp "Moon(2) OR EARTH(1)"
Input A
If A=1
Then
5.973E24->M
End
If A=2
Than
7.347E22->M
End
M(6.67E-11)->U
2pi(sqrt(S^3/U)->P
Disp P
Disp "PERIOD OF ORBIT"
Code:
//This program calculates the velocity at Periapsis in a Lunar Orbit
Disp "ENTER PER"
Input P
Disp "ENTER APA"
Input A
6.67428E-11->G
7.3477E22->M
(Sqrt((2GMA)/(P(A+P))))/100000->V
Disp V

Last edited by Tex; 11-06-2009 at 06:53 AM.
Reply With Quote
Views 12104 Comments 14
Total Comments 14

Comments

Old 08-28-2008, 10:58 PM   #2
Eagle
The Amazing Flying Tuna Can
 
Eagle's Avatar
Default

Nice! I've been wanting to use my 83+ to help me navigate.
Eagle is offline   Reply With Quote
Old 08-28-2008, 11:04 PM   #3
James.Denholm
Addon ponderer
Default

Hmmm... I wonder how easy this would be to "convert" for Casio Classpads... Would you mind if I did that, Zatnik?
James.Denholm is offline   Reply With Quote
Old 08-28-2008, 11:10 PM   #4
Sherrif of Nottingham
Orbinaut
Default

Hmm... I can see it now:

"Houston, we have a problem"
*pulls out Ti83* "Here's your answer!"

Anyway, lovely, I'll have to add those in.
Sherrif of Nottingham is offline   Reply With Quote
Old 08-28-2008, 11:21 PM   #5
tl8
Addon Developer
 
tl8's Avatar

Default

Sticked!

A very good Idea Zat
tl8 is offline   Reply With Quote
Old 08-29-2008, 12:44 AM   #6
Andy44
owner: Oil Creek Astronautix
 
Andy44's Avatar
Default

I have an old TI-85 which I've had since freshman year in college back in the early 90s. Although it's outdated, it's still very useful and I've written lots of programs for it. Unfortunately, they're not compatible with the other TI machines.

I have the cable and software for connecting it to my PC, but it only supports up to Windows 2000, and TI doesn't support it at all anymore. I got it to work with XP, but if you leave it installed on the hard drive long enough it starts causing blue screens of death (BSDs) more and more pften until finally your hard drive crashes. This is what killed my PC about 2 years ago, and almost killed my laptop until I uninstalled it.

So, I've determined that I can use it as long as I install it, do what I've got to do, and then uninstall it as soon as possible. Needless to say, I don't take that risk very often. But next time I do, I'll post my best programs on the forum.
Andy44 is offline   Reply With Quote
Old 09-13-2008, 04:43 PM   #7
RocketMan_Len
Orbinaut
 
RocketMan_Len's Avatar
Default

I just got myself a TI-84+... now I have to get to transferring some of the functions programmed into my old calculator into this one. Lotsa fun... :D
RocketMan_Len is offline   Reply With Quote
Old 10-22-2008, 05:48 PM   #8
Zatnikitelman
Addon Developer
 
Zatnikitelman's Avatar
Default

UPDATE: I updated the normalize program so it will do x, y and z vectors now.
Zatnikitelman is offline   Reply With Quote
Old 10-22-2008, 07:41 PM   #9
C3PO
Donator
 
C3PO's Avatar

Big Grin

I'm guessing that a similar thread for Hewlett Packard's HP 48GX would be pointless.

I got mine just as they went out of production.
C3PO is offline   Reply With Quote
Old 10-25-2008, 11:33 AM   #10
Lunar_Lander
Orbinaut
 
Lunar_Lander's Avatar
Default

Do the programs also work on a TI Voyage 200? If not could you provide a modified version of them for that calculator?
Lunar_Lander is offline   Reply With Quote
Old 07-08-2009, 11:11 PM   #11
Thomas Loe.
Orbinaut
Default

Hy i have a TI 82 can i use this Calculations also ore not ?
Thomas Loe. is offline   Reply With Quote
Old 07-08-2009, 11:14 PM   #12
tl8
Addon Developer
 
tl8's Avatar

Default

Try it and find out
tl8 is offline   Reply With Quote
Old 07-08-2009, 11:27 PM   #13
Hielor
Defender of Truth

Default

Quote:
Originally Posted by Thomas Loe. View Post
 Hy i have a TI 82 can i use this Calculations also ore not ?
You should be able to use them with some modification--the TI-82's programming language is very similar to the 83's.
Hielor is offline   Reply With Quote
Old 12-09-2009, 03:28 AM   #14
insanity
Blastronaut
 
insanity's Avatar
Default

Your azimuth program doesn't account for radians being entered as degrees, nor does it take into account the speed you gain from using the Earth's rotation.
insanity is offline   Reply With Quote
Old 12-09-2009, 05:23 AM   #15
Hielor
Defender of Truth

Default

Quote:
Originally Posted by insanity View Post
 Your azimuth program doesn't account for radians being entered as degrees, nor does it take into account the speed you gain from using the Earth's rotation.
It will use whatever mode your calculator is currently in; if it's in degrees it will use that, if it's in radians it will use that.
Hielor is offline   Reply With Quote
Reply

  Orbiter-Forum > Articles > A5. Addon Development


Article Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 05:39 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.