Heater for threaded program
Dependents: LEX_Threaded_Programming
Diff: Heater.cpp
- Revision:
- 15:e7838491c104
- Parent:
- 14:f266bf960b8d
- Child:
- 16:cd837b230b09
diff -r f266bf960b8d -r e7838491c104 Heater.cpp --- a/Heater.cpp Tue Jul 23 11:29:20 2019 +0000 +++ b/Heater.cpp Wed Jul 24 09:47:45 2019 +0000 @@ -119,6 +119,7 @@ } void Heater::Set_R_ref(float R) {R_ref = R;} void Heater::Set_T_ref(float T_ref) {R_ref = T_to_R(T_ref);} +void Heater::Set_D(float D) {drive.write(D);} int Heater::Get_i() {return curr;} int Heater::Get_v() {return v;} @@ -128,4 +129,4 @@ void Heater::turn_on () {drive = 1;} -void Heater::turn_off () {drive = 0;} \ No newline at end of file +void Heater::turn_off () {drive = 0;}