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
Diff: settings.h
- Revision:
- 57:8dc3192ff150
- Parent:
- 55:ee80f248919d
- Child:
- 58:b5f0c0f305ff
--- a/settings.h Sun Jun 19 20:55:16 2016 +0000 +++ b/settings.h Sun Jun 19 22:21:08 2016 +0000 @@ -17,6 +17,9 @@ // Do we stop the system after an alarm was raised? #define HALT_ON_ALARM +// Number of iterations before the system tries to adjust values / raises an alarm +#define STARTUP_ITERATIONS 10 + // Sleep for X ms after each iteration #define MAIN_THREAD_DELAY_MS 1000 @@ -27,8 +30,23 @@ #define NUMBER_OF_SEC_BEFORE_UNDESIRED_ALARM 300 +//Thresholds for temperature (in celcius) +#define TEMP_MIN_CRIT 30.0f +#define TEMP_MIN_UNDESIRED 32.0f +#define TEMP_MAX_CRIT 40.0f +#define TEMP_MAX_UNDESIRED 38.0f +//Thresholds for salinity (in ppt) +#define SALT_MIN_CRIT 3.0f +#define SALT_MIN_UNDESIRED 6.0f +#define SALT_MAX_CRIT 12.0f +#define SALT_MAX_UNDESIRED 9.0f +//Thresholds for overflow (in ml) +#define VOLUME_MIN_CRIT 0.0f +#define VOLUME_MIN_UNDESIRED 100.0f +#define VOLUME_MAX_CRIT 1000.0f +#define VOLUME_MAX_UNDESIRED 900.0f //----------------------------------------------------------------------------------------------