- Joined
- Jan 13, 2008
- Messages
- 2,303
- Reaction score
- 6
- Points
- 38
- Location
- Atlanta, GA, USA, North America
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.
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 a moderator: