Mettre à jour 'conception/th_receiveFromMon.txt'

This commit is contained in:
Jean-Remy Hok 2021-03-15 11:41:45 +01:00
parent cb2975cef5
commit e5053429c3

View file

@ -8,7 +8,6 @@ while ()
:printf("Connection avec le moniteur perdue"); :printf("Connection avec le moniteur perdue");
:stopCamera!; :stopCamera!;
:stopRobot!; :stopRobot!;
:stopComRobot!;
:stopServer!; :stopServer!;
endif endif
if (msgRcv.CompareID(MESSAGE_ROBOT_COM_OPEN)) then (true) if (msgRcv.CompareID(MESSAGE_ROBOT_COM_OPEN)) then (true)
@ -22,6 +21,9 @@ while ()
:watchdogMode = WITH_WATCHDOG; :watchdogMode = WITH_WATCHDOG;
:startRobot!; :startRobot!;
endif endif
if (msgRcv.CompareID(MESSAGE_ROBOT_RESET)) then (true)
:stopRobot!;
endif
if (msgRcv.CompareID(MESSAGE_ROBOT_GO_FORWARD if (msgRcv.CompareID(MESSAGE_ROBOT_GO_FORWARD
|| msgRcv.CompareID(MESSAGE_ROBOT_GO_BACKWARD || msgRcv.CompareID(MESSAGE_ROBOT_GO_BACKWARD
|| msgRcv.CompareID(MESSAGE_ROBOT_GO_LEFT || msgRcv.CompareID(MESSAGE_ROBOT_GO_LEFT