Flying Sea Glider / Mbed 2 deprecated 2019_19feb19_jcw_noSD

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
9:d5fcdcb3c89d
Child:
10:085ab7328054
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omegaPX209/omegaPX209.cpp	Fri Oct 20 11:41:22 2017 +0000
@@ -0,0 +1,27 @@
+/*
+Matthew Kelly
+October 24th, 2013
+The purpose of this class is to define a a data structure with all of the necessary information and member functions...
+to fully describe a single ultrasonic transducer for use in a relative positioning system.
+*/
+
+#include "mbed.h"
+#include "omegaPX209.hpp"
+
+omegaPX209::omegaPX209(): depthP(p19)
+{
+    
+}
+
+void omegaPX209::initialize()
+{
+    P = 0;              // Pressure [psi]
+    cal = 12;           // Volts per psi
+    multiplier = 3.3;   // Maximum voltage in
+}
+
+float omegaPX209::calcP()
+{
+    P = depthP*multiplier*cal;
+    return P;
+}