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:
- 54:d4990fb68404
- Parent:
- 17:7c16b5671d0e
diff -r c0586fe62b01 -r d4990fb68404 omegaPX209/omegaPX209.hpp
--- a/omegaPX209/omegaPX209.hpp Thu Jun 07 13:02:08 2018 +0000
+++ b/omegaPX209/omegaPX209.hpp Fri Jun 08 13:56:30 2018 +0000
@@ -1,3 +1,6 @@
+#ifndef OMEGAPX209_HPP
+#define OMEGAPX209_HPP
+
/*
This class wraps an Omega pressure transducer.
Author: Matthew, October 24th, 2013
@@ -25,6 +28,10 @@
void setZero(float zeroPsi); // lets user set a different ambient pressure [psi] ... tare, effectively
float getZero(); // returns the internal ambient pressure [psi]
+
+ int readADCCounts(); //06/07/2018 check the outputs
+ float readVoltage(); //voltage reading?
+ float getRawPSI();
private:
AnalogIn _adc;
@@ -33,5 +40,8 @@
float _zeroPsi; // atmospheric pressure at sea level [psi]
float _adcVoltage; // voltage of mbed ADC system [V]
float _fullscale; // maximum pressure of the sensor [psi]
- float _cal; // psi per volt calibration [psi/V]
+ float _psi_per_volt_cal; // psi per volt calibration [psi/V]
+ float _PSI_reading;
};
+
+#endif
\ No newline at end of file