update with altimeter, swimfile.txt endleg.txt, etc see changes_13sep.txt also reset_PI()
Dependencies: mbed MODSERIAL FATFileSystem
Sensors/Sensors.hpp@99:9d0849f5fcd7, 2019-06-28 (annotated)
- Committer:
- CodyMarquardt
- Date:
- Fri Jun 28 13:59:11 2019 +0000
- Revision:
- 99:9d0849f5fcd7
- Parent:
- 73:f6f378311c8d
Program has bugs. Committing in order to access in MBED studio to debug
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(); |
tnhnrl | 73:f6f378311c8d | 9 | |
CodyMarquardt | 99:9d0849f5fcd7 | 10 | float _altimeter_slope; |
CodyMarquardt | 99:9d0849f5fcd7 | 11 | float _altimeter_intercept; |
CodyMarquardt | 99:9d0849f5fcd7 | 12 | |
tnhnrl | 73:f6f378311c8d | 13 | float getInternalPressurePSI(); |
tnhnrl | 73:f6f378311c8d | 14 | float getVoltageInput(); |
tnhnrl | 73:f6f378311c8d | 15 | float getCurrentInput(); |
tnhnrl | 73:f6f378311c8d | 16 | float getAltimeterChannelReadings(); |
CodyMarquardt | 99:9d0849f5fcd7 | 17 | float getAltimeterReading_m(); // edit by CAM |
CodyMarquardt | 99:9d0849f5fcd7 | 18 | void setAltimeterSlope(float S); // edit by CAM |
CodyMarquardt | 99:9d0849f5fcd7 | 19 | void setAltimeterIntercept(float I); // edit by CAM |
tnhnrl | 73:f6f378311c8d | 20 | |
tnhnrl | 73:f6f378311c8d | 21 | private: |
tnhnrl | 73:f6f378311c8d | 22 | float _reference_voltage; |
tnhnrl | 73:f6f378311c8d | 23 | }; |
tnhnrl | 73:f6f378311c8d | 24 | |
tnhnrl | 73:f6f378311c8d | 25 | #endif /* GUI_HPP */ |