Program for the water play project for the course Software Testing Practical 2016 given at the VU University
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
Diff: SalinityController.cpp
- Revision:
- 32:1e4919a44196
- Parent:
- 26:966bad4c6365
- Child:
- 42:e7c726f9c6ed
--- a/SalinityController.cpp Tue Jun 14 10:51:15 2016 +0000 +++ b/SalinityController.cpp Tue Jun 14 11:12:44 2016 +0000 @@ -116,20 +116,5 @@ return "SalinityController"; } -float SalinityController::getMl(float gramsinbody, float volumeinbody) -{ - - float solvolume = 10; // 10ml - - float idealpptconstant = 0.007f; //7 ppt / 1000 - float x1 = volumeinbody * idealpptconstant; - float x2 = solvolume * idealpptconstant; - - x1 = x1 - gramsinbody; - x2 = 1 - x2; - - float outputml = (x1 / x2 * solvolume); - - return outputml; // amount in ml to get 7 ppt. - -} \ No newline at end of file + +