Advertisement
sovietotaku

Calculate QFE pressure to remote point using HP-42S calc

Dec 26th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. //Calculate QFE pressure to remote point using HP-42S programmable calculator!
  2. //P0=QFE at respawn point, in hPa!
  3. //T=temp at respawn point, in Celsius.
  4. //H0=Ground elevation (ASL) at respawn, in meters.
  5. //H1=Ground elevation (ASL) at target, in meters.
  6. //Prints answer into X registry! in hPa!
  7. //Very simple and basic code with low effort ;)
  8. //Copyleft! Fell free to use as you want!
  9. //HOWTO enter data: enter P0 then press R/S (and not ENTER) button on calculator, then enter T and press R/S and so on...
  10. //Put all those shit below in https://www.swissmicros.com/dm42/decoder/index.php to make *.raw file from the code
  11. 00 { 103-Byte Prgm }
  12. 01▸LBL "QFE"
  13. 02 "P0?"
  14. 03 PROMPT
  15. 04 STO "P0"
  16. 05 "HSPAWN?"
  17. 06 PROMPT
  18. 07 STO "H0"
  19. 08 "HTGT?"
  20. 09 PROMPT
  21. 10 STO "H1"
  22. 11 "TEMP?"
  23. 12 PROMPT
  24. 13 STO "T"
  25. 14 RCL "H0"
  26. 15 RCL- "H1"
  27. 16 65ᴇ-4
  28. 17 ×
  29. 18 275.15
  30. 19 RCL+ "T"
  31. 20 ÷
  32. 21 STO 10
  33. 22 1
  34. 23 RCL- 10
  35. 24 5.255
  36. 25 Y↑X
  37. 26 RCL× "P0"
  38. 27 "TGTQFE="
  39. 28 AVIEW
  40. 29 STOP
  41. 30 END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement