Commit 6a6adb9f authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Save test file from the tool, replace manual code

parent a8d54281
......@@ -4,7 +4,6 @@ SYSTEM og;
signal telecommand(tc_type);
signal telemetry(tm_type);
/* CIF ENDTEXT */
CHANNEL c
FROM ENV TO og WITH telecommand;
......@@ -21,17 +20,17 @@ signal telemetry(tm_type);
SUBSTRUCTURE
STATE mode_manager;
SUBSTRUCTURE
/* CIF START (180, 60), (70, 35) */
/* CIF START (359, 108), (70, 35) */
START;
/* CIF NEXTSTATE (159, 110), (111, 35) */
/* CIF NEXTSTATE (331, 158), (126, 35) */
NEXTSTATE wait_for_tc;
/* CIF STATE (159, 110), (111, 35) */
/* CIF STATE (331, 158), (126, 35) */
STATE wait_for_tc;
/* CIF PROVIDED (143, 165), (144, 35) */
provided got_tc=true and present(tc!content)=change_mode;
/* CIF PROCEDURECALL (123, 215), (184, 35) */
/* CIF PROVIDED (170, 213), (451, 35) */
PROVIDED got_tc=true and present(tc!content)=change_mode;
/* CIF PROCEDURECALL (282, 263), (226, 35) */
CALL writeln('Change Mode');
/* CIF NEXTSTATE (180, 265), (70, 35) */
/* CIF NEXTSTATE (360, 313), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDSUBSTRUCTURE;
......@@ -39,45 +38,45 @@ signal telemetry(tm_type);
SUBSTRUCTURE
/* CIF START (144, 56), (70, 35) */
START;
/* CIF NEXTSTATE (126, 106), (106, 35) */
/* CIF NEXTSTATE (116, 106), (126, 35) */
NEXTSTATE wait_for_tc;
/* CIF STATE (126, 106), (106, 35) */
/* CIF STATE (116, 106), (126, 35) */
STATE wait_for_tc;
/* CIF PROVIDED (107, 161), (144, 35) */
/* CIF INPUT (93, 161), (175, 35) */
INPUT telecommand(tc);
/* CIF TASK (117, 211), (123, 35) */
/* CIF TASK (107, 211), (146, 35) */
TASK got_tc := true;
/* CIF NEXTSTATE (144, 261), (70, 35) */
/* CIF NEXTSTATE (145, 261), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDSUBSTRUCTURE;
STATE memory_manager;
SUBSTRUCTURE
/* CIF START (165, 47), (70, 35) */
/* CIF START (259, 60), (70, 35) */
START;
/* CIF NEXTSTATE (147, 97), (106, 35) */
/* CIF NEXTSTATE (231, 110), (126, 35) */
NEXTSTATE wait_for_tc;
/* CIF STATE (147, 97), (106, 35) */
/* CIF STATE (231, 110), (126, 35) */
STATE wait_for_tc;
/* CIF INPUT (128, 152), (144, 35) */
provided got_tc=true and present(tc!content)=patch_memory;
/* CIF PROCEDURECALL (87, 202), (226, 35) */
/* CIF PROVIDED (64, 165), (459, 35) */
PROVIDED got_tc=true and present(tc!content)=patch_memory;
/* CIF PROCEDURECALL (178, 215), (231, 35) */
CALL writeln('Patch Memory');
/* CIF NEXTSTATE (165, 252), (70, 35) */
/* CIF NEXTSTATE (258, 265), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDSUBSTRUCTURE;
/* CIF STATE (370, 97), (147, 35) */
/* CIF STATE (370, 97), (182, 35) */
STATE memory_manager;
ENDSTATE;
/* CIF STATE (238, 111), (96, 35) */
/* CIF STATE (238, 111), (113, 35) */
STATE tc_router;
ENDSTATE;
/* CIF STATE (314, 191), (132, 35) */
/* CIF STATE (314, 191), (161, 35) */
STATE mode_manager;
ENDSTATE;
ENDSUBSTRUCTURE;
/* CIF TEXT (0, 310), (287, 140) */
/* CIF TEXT (0, 310), (327, 168) */
-- This system tests the provided clause
-- (continuous signal)
......@@ -87,13 +86,13 @@ dcl tm TM_type;
dcl got_tc Boolean_type;
/* CIF ENDTEXT */
/* CIF START (316, 297), (70, 35) */
/* CIF START (337, 297), (70, 35) */
START;
/* CIF NEXTSTATE (316, 347), (70, 35) */
/* CIF NEXTSTATE (337, 348), (70, 35) */
NEXTSTATE wait;
/* CIF STATE (412, 344), (67, 35) */
/* CIF STATE (412, 344), (70, 35) */
STATE wait;
ENDSTATE;
ENDPROCESS og;
ENDBLOCK;
ENDSYSTEM;
ENDSYSTEM;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment