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 DRV88255 TextLCD Ping mbed-rtos
SalinityController.h@1:eb527bc93b62, 2016-06-06 (annotated)
- Committer:
- 6366295
- Date:
- Mon Jun 06 11:59:23 2016 +0000
- Revision:
- 1:eb527bc93b62
- Parent:
- 0:dab140a197e0
- Child:
- 6:067e999b9c6e
Added calibration table and calibration code for temperature
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| 6366295 | 0:dab140a197e0 | 1 | #ifndef __SALINITYCONTROLLER_H__ |
| 6366295 | 0:dab140a197e0 | 2 | #define __SALINITYCONTROLLER_H__ |
| 6366295 | 0:dab140a197e0 | 3 | |
| 6366295 | 0:dab140a197e0 | 4 | #include "mbed.h" |
| 6366295 | 1:eb527bc93b62 | 5 | #include "stdio.h" |
| 6366295 | 0:dab140a197e0 | 6 | |
| 6366295 | 0:dab140a197e0 | 7 | #define N 50 |
| 6366295 | 0:dab140a197e0 | 8 | |
| 6366295 | 0:dab140a197e0 | 9 | class SalinityController { |
| 6366295 | 0:dab140a197e0 | 10 | public: |
| 6366295 | 0:dab140a197e0 | 11 | SalinityController(); |
| 6366295 | 0:dab140a197e0 | 12 | |
| 6366295 | 0:dab140a197e0 | 13 | static void displayPPT(); |
| 6366295 | 0:dab140a197e0 | 14 | |
| 6366295 | 0:dab140a197e0 | 15 | private: |
| 6366295 | 0:dab140a197e0 | 16 | static float readSensor(); |
| 6366295 | 0:dab140a197e0 | 17 | static float analoginToPPT(float analogin_value); |
| 6366295 | 0:dab140a197e0 | 18 | }; |
| 6366295 | 0:dab140a197e0 | 19 | |
| 6366295 | 0:dab140a197e0 | 20 | #endif |