Check this one ! mbos setup changed, WTX hor pos changed, no font style check, no checksum check
Dependencies: 4DGL MODSERIAL mbed mbos
Fork of CDU_Mbed_21 by
Diff: FS2CDU_data_5.cpp
- Revision:
- 10:7e350a27f936
- Parent:
- 8:422544d24df3
- Child:
- 11:d60c746c097c
--- a/FS2CDU_data_5.cpp Sun Jul 20 17:55:46 2014 +0000 +++ b/FS2CDU_data_5.cpp Sun Jul 20 20:11:24 2014 +0000 @@ -1,3 +1,4 @@ + // L. van der Kolk, ELVEDEKA, Holland // // File: FS2CDU_data_5.cpp // -- Message handling from FS to CDU -- @@ -146,6 +147,9 @@ CDU_STATUS.exec_indicator = 0; CDU_STATUS.backlight = 0; CDU_STATUS.stby_mode = 0; + CDU_STATUS.dspy_indicator = 0; + CDU_STATUS.fail_indicator = 0; + CDU_STATUS.ofst_indicator = 0; } void read_datafields(int command_number) { @@ -524,6 +528,39 @@ break; } + case 10: // FAI command, FAIL indicator control CDU + { + // Get message indicator status: + char_pntr = comma[1] + 1; // : set char pointer to char after comma 1 + if (string_received[char_pntr] == '0' || string_received[char_pntr] == '1') + { CDU_STATUS.fail_indicator = atoi(&string_received[char_pntr]); + CDU_Status_Update = 1; + } + break; + } + + case 11: // DPY command, DISPLAY indicator control CDU + { + // Get message indicator status: + char_pntr = comma[1] + 1; // : set char pointer to char after comma 1 + if (string_received[char_pntr] == '0' || string_received[char_pntr] == '1') + { CDU_STATUS.dspy_indicator = atoi(&string_received[char_pntr]); + CDU_Status_Update = 1; + } + break; + } + + case 12: // OFS command, OFFSET indicator control CDU + { + // Get message indicator status: + char_pntr = comma[1] + 1; // : set char pointer to char after comma 1 + if (string_received[char_pntr] == '0' || string_received[char_pntr] == '1') + { CDU_STATUS.ofst_indicator = atoi(&string_received[char_pntr]); + CDU_Status_Update = 1; + } + break; + } + default: { // unknown commandnumber ! @@ -534,7 +571,3 @@ CDU_OS.SetEvent(FS_DATA_EVENT,CDU_DSP_CSS_TASK_ID); // : set event for CDU screen update task } - - - -