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
PIDController.cpp
- Committer:
- joran
- Date:
- 2016-06-14
- Revision:
- 29:2b256a7ce0ae
- Parent:
- 28:f4a4ee58d57e
- Child:
- 30:cf12566013a5
File content as of revision 29:2b256a7ce0ae:
#include "PIDController.h" // This is called in the main loop on every iteration void PIDController::update() { // You can use the variables temp, salt and proximity like this: float s = this->salt->getValue(); } std::string PIDController::get_name() { return "PIDController"; } //get the salt in the body in grams float PIDController::getSaltInGrams() { float currentppt = this->salt->getValue(); //in ppt float currentvol = this->proximity->getValue(); //in ml return currentppt * (currentvol /1000); }