add pa_to_psi conversion
authorBdale Garbee <bdale@gag.com>
Wed, 3 May 2017 21:10:02 +0000 (15:10 -0600)
committerBdale Garbee <bdale@gag.com>
Wed, 3 May 2017 21:43:29 +0000 (15:43 -0600)
altoslib/AltosConvert.java

index 8617a12cea7a5def8d7062cde0f3aea11e4561d6..08c7c67d41d94845051cbf8213f4f94bc57f97c1 100644 (file)
@@ -366,6 +366,10 @@ public class AltosConvert {
                return (c - 32) * 5/9;
        }
 
+       public static double pa_to_psi(double pa) {
+               return pa / 6894.76;
+       }
+
        public static double psi_to_pa(double psi) {
                return psi * 6894.76;
        }