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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/ConfigurationHandler/Controls/SetpointControl.cpp
- Revision:
- 152:c03ebcda54ef
- Parent:
- 143:23a572f084dd
--- a/src/ConfigurationHandler/Controls/SetpointControl.cpp Tue Sep 27 19:52:47 2016 +0000 +++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp Wed Sep 28 16:14:47 2016 +0000 @@ -207,11 +207,12 @@ OutputControlMsg_t *output_mail = OutputMasterMailBox.alloc(); memset(output_mail, 0, sizeof(OutputControlMsg_t)); - output_mail->action = ACTION_CONTROL_OFF; - output_mail->controlType = CONTROL_SETPOINT; + output_mail->action = ACTION_CONTROL_OFF; + output_mail->controlType = CONTROL_SETPOINT; + output_mail->priority = this->priority; + strncpy(output_mail->input_tag, this->input.c_str(), sizeof(output_mail->input_tag)-1); strncpy(output_mail->output_tag, this->output.c_str(), sizeof(output_mail->output_tag)-1); - output_mail->priority = this->priority; strncpy(output_mail->id, this->id.c_str(), sizeof(output_mail->id)-1); OutputMasterMailBox.put(output_mail); } @@ -229,16 +230,23 @@ OutputControlMsg_t *output_mail = OutputMasterMailBox.alloc(); memset(output_mail, 0, sizeof(OutputControlMsg_t)); - + output_mail->action = ACTION_CONTROL_UNREGISTER; output_mail->controlType = CONTROL_MANUAL; - output_mail->priority = this->priority; + output_mail->priority = this->priority; strncpy(output_mail->output_tag, this->output.c_str(), sizeof(output_mail->output_tag)-1); strncpy(output_mail->id, this->id.c_str(), sizeof(output_mail->id)-1); - + OutputMasterMailBox.put(output_mail); } +// +// method: display +// description; display the setpoint control information +// +// @param none +// @return none +// void SetpointControl::display(void) { string mapper[] = { "INIT", @@ -268,5 +276,6 @@ printf("\r currentState : %s\n", mapper[currentState].c_str()); printf("\r high band : %0.2f\n", setpoint + tolerance); printf("\r low band : %0.2f\n", setpoint - tolerance); + printf("\r ======================\n"); printf("\r\n"); } \ No newline at end of file