HP Forums

Full Version: (41) Aviation - Point of Safe Return
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I wrote a program to calculate the Point of Safe Return for an aircraft. It requires inputs of Total Fuel available to burn, (put everything minus whatever reserve you need), Average fuel flow, True Airspeed (kts), Average Wind Component. Output is in Nautical Miles. Comments about optimizations are appreciated
Code:

LBL "PSR"
"TOTAL FUEL?"
PROMPT
"FUEL FLOW?"
PROMPT
/
"TAS?"
PROMPT
STO 00
"AVG WND COMP?"
PROMPT
STO 01
+
STO 02
RCL 00
RCL 01
-
STO 03
*
*
RCL 02
RCL 03
+
/
FIX 01
"PSR NM:"
ARCL X
AVIEW
FIX 4
END
Reference URL's