HP Forums
(41) Aviation - Point of Safe Return - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP-41C Software Library (/forum-11.html)
+--- Thread: (41) Aviation - Point of Safe Return (/thread-16034.html)



(41) Aviation - Point of Safe Return - WrongWay - 12-10-2020 09:38 PM

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