Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL FATFileSystem
Diff: omegaPX209/omegaPX209.hpp
- Revision:
- 9:d5fcdcb3c89d
- Child:
- 10:085ab7328054
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/omegaPX209/omegaPX209.hpp Fri Oct 20 11:41:22 2017 +0000
@@ -0,0 +1,22 @@
+/*
+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"
+
+class omegaPX209 {
+public:
+ omegaPX209();
+ void initialize();
+ float calcP(); // Calculates pressure
+
+private:
+ AnalogIn depthP;
+ float P; // Pressure [psi]
+ float cal; // Volts per psi
+ float multiplier; // Maximum voltage in
+
+};