Post Reply 
(41) Aviation - Point of Safe Return
12-10-2020, 09:38 PM (This post was last modified: 12-11-2020 12:48 AM by WrongWay.)
Post: #1
(41) Aviation - Point of Safe Return
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
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)