update with altimeter, swimfile.txt endleg.txt, etc see changes_13sep.txt also reset_PI()
Dependencies: mbed MODSERIAL FATFileSystem
Sensors/Sensors.hpp@104:426224a55f5f, 2019-09-13 (annotated)
- Committer:
- joel_ssc
- Date:
- Fri Sep 13 19:15:40 2019 +0000
- Revision:
- 104:426224a55f5f
- Parent:
- 102:0f430de62447
slight change includes reset_PI
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tnhnrl | 73:f6f378311c8d | 1 | #ifndef SENSORS_HPP |
tnhnrl | 73:f6f378311c8d | 2 | #define SENSORS_HPP |
tnhnrl | 73:f6f378311c8d | 3 | |
tnhnrl | 73:f6f378311c8d | 4 | #include "mbed.h" |
tnhnrl | 73:f6f378311c8d | 5 | |
tnhnrl | 73:f6f378311c8d | 6 | class Sensors { |
tnhnrl | 73:f6f378311c8d | 7 | public: |
tnhnrl | 73:f6f378311c8d | 8 | Sensors(); |
joel_ssc | 102:0f430de62447 | 9 | float _altimeter_slope; |
joel_ssc | 102:0f430de62447 | 10 | float _altimeter_intercept; |
tnhnrl | 73:f6f378311c8d | 11 | |
tnhnrl | 73:f6f378311c8d | 12 | float getInternalPressurePSI(); |
tnhnrl | 73:f6f378311c8d | 13 | float getVoltageInput(); |
tnhnrl | 73:f6f378311c8d | 14 | float getCurrentInput(); |
tnhnrl | 73:f6f378311c8d | 15 | float getAltimeterChannelReadings(); |
joel_ssc | 102:0f430de62447 | 16 | float getAltimeterReading_m(); |
joel_ssc | 102:0f430de62447 | 17 | void setAltimeterSlope(float S); // edit by CAM |
joel_ssc | 102:0f430de62447 | 18 | void setAltimeterIntercept(float I); // edit by CAM |
tnhnrl | 73:f6f378311c8d | 19 | |
tnhnrl | 73:f6f378311c8d | 20 | private: |
tnhnrl | 73:f6f378311c8d | 21 | float _reference_voltage; |
tnhnrl | 73:f6f378311c8d | 22 | }; |
tnhnrl | 73:f6f378311c8d | 23 | |
joel_ssc | 102:0f430de62447 | 24 | #endif /* GUI_HPP */ |