From cc9bb2860f687a8860740de9b308fc778a58d30a Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Sun, 18 Dec 2022 14:20:46 +0100 Subject: [PATCH] Set App state to manual drive on set mobility mode automatic=false --- ADIS_ESP32_Eclipse/main/robo_wrapper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ADIS_ESP32_Eclipse/main/robo_wrapper.c b/ADIS_ESP32_Eclipse/main/robo_wrapper.c index 2a78d8e..db818ac 100644 --- a/ADIS_ESP32_Eclipse/main/robo_wrapper.c +++ b/ADIS_ESP32_Eclipse/main/robo_wrapper.c @@ -31,6 +31,7 @@ bool Robo_Wrapper_SetMode(bool automatic){ unsigned char cmd[BUF_SIZE] = RS_CMD_DRIVE_PREFIX; McuUtility_strcat(cmd, sizeof(cmd), (unsigned char*)"mode speed"); SHELL_SendToRobotAndGetResponse(cmd, response, sizeof(response)); + SHELL_SendToRobotAndGetResponse((const unsigned char*)"app manualdrive", response, sizeof(response)); McuShell_SendStr(response, McuShell_GetStdio()->stdOut); } return true;