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
main.cpp@7:8b3aef52aa7b, 2016-06-10 (annotated)
- Committer:
- joran
- Date:
- Fri Jun 10 12:29:33 2016 +0000
- Revision:
- 7:8b3aef52aa7b
- Parent:
- 6:067e999b9c6e
- Child:
- 9:b3674516729d
Salinity update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
6366295 | 0:dab140a197e0 | 1 | #include "SalinityController.h" |
6366295 | 0:dab140a197e0 | 2 | #include "TemperatureController.h" |
6366295 | 2:f6ebc225f232 | 3 | #include "MotorController.h" |
joran | 6:067e999b9c6e | 4 | #include "LCDController.h" |
6366295 | 0:dab140a197e0 | 5 | |
6366295 | 0:dab140a197e0 | 6 | #include "mbed.h" |
6366295 | 0:dab140a197e0 | 7 | |
6366295 | 0:dab140a197e0 | 8 | int main() |
6366295 | 0:dab140a197e0 | 9 | { |
6366295 | 0:dab140a197e0 | 10 | int count; |
6366295 | 0:dab140a197e0 | 11 | |
6366295 | 0:dab140a197e0 | 12 | SalinityController salt; |
6366295 | 0:dab140a197e0 | 13 | TemperatureController temperature; |
6366295 | 2:f6ebc225f232 | 14 | MotorController motor; |
joran | 6:067e999b9c6e | 15 | LCDController lcd; |
6366295 | 2:f6ebc225f232 | 16 | |
6366295 | 4:4011a1562a77 | 17 | // for(int i = 0; i < 20; i++) |
6366295 | 4:4011a1562a77 | 18 | // { |
6366295 | 4:4011a1562a77 | 19 | // motor.test(); |
6366295 | 4:4011a1562a77 | 20 | // motor.test2(); |
6366295 | 4:4011a1562a77 | 21 | // } |
joran | 6:067e999b9c6e | 22 | lcd.splash(); |
6366295 | 1:eb527bc93b62 | 23 | while(1) { |
joran | 6:067e999b9c6e | 24 | // printf("%d> ", count); |
joran | 6:067e999b9c6e | 25 | |
joran | 6:067e999b9c6e | 26 | // salt.displayPPT(); |
6366295 | 0:dab140a197e0 | 27 | |
joran | 6:067e999b9c6e | 28 | //temperature.displayTemperature(); |
6366295 | 0:dab140a197e0 | 29 | |
joran | 6:067e999b9c6e | 30 | // temperature.controlHeater(); |
6366295 | 1:eb527bc93b62 | 31 | |
joran | 7:8b3aef52aa7b | 32 | lcd.updateScreen(temperature.getTemperature(),salt.getAdjustedPPT()); |
6366295 | 0:dab140a197e0 | 33 | count++; |
6366295 | 0:dab140a197e0 | 34 | |
joran | 6:067e999b9c6e | 35 | wait(0.5); |
6366295 | 0:dab140a197e0 | 36 | } |
6366295 | 0:dab140a197e0 | 37 | } |