From 3798070e23d774472a8493a0d54eec03a588f924 Mon Sep 17 00:00:00 2001 From: zccafa3 Date: Sun, 12 Jun 2022 11:32:00 +0100 Subject: [PATCH 1/2] 201 fixed dosumentation issue --- src/main/resources/assets/oc2/doc/en_us/item/robot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/oc2/doc/en_us/item/robot.md b/src/main/resources/assets/oc2/doc/en_us/item/robot.md index e5a54a92..ce22dd1e 100644 --- a/src/main/resources/assets/oc2/doc/en_us/item/robot.md +++ b/src/main/resources/assets/oc2/doc/en_us/item/robot.md @@ -17,7 +17,7 @@ Device name: `robot` This is a high level API device. It can be controlled using Lua in the default Linux distribution. For example: `local d = require("devices")` `local r = d:find("robot")` -`d:move("forward")` +`r:move("forward")` ### Directions The direction parameter in the following methods represents a direction relative to the robot. Valid values are: `forward`, `backward`, `upward`, `downward` for movement actions, `left` and `right` for rotation actions. These directions are always from the point of view of the robot at the time it executes an action. From 79f019081250277d92bab2fce809b3cd596f5cae Mon Sep 17 00:00:00 2001 From: zccafa3 Date: Sun, 12 Jun 2022 11:36:29 +0100 Subject: [PATCH 2/2] 201 fixed documentation issue --- src/main/resources/assets/oc2/doc/ru_ru/item/robot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/oc2/doc/ru_ru/item/robot.md b/src/main/resources/assets/oc2/doc/ru_ru/item/robot.md index 7cd8bd27..7c0fea2e 100644 --- a/src/main/resources/assets/oc2/doc/ru_ru/item/robot.md +++ b/src/main/resources/assets/oc2/doc/ru_ru/item/robot.md @@ -17,7 +17,7 @@ Это устройство с высокоуровневым API. Оно может управляться через Lua в стандартном дистрибутиве Linux. Например: `local d = require("devices")` `local r = d:find("robot")` -`d:move("forward")` +`r:move("forward")` ### Направления Направления указываются от лица робота. Допускаются значения: `forward`, `backward`, `upward`, `downward` для движения, `left` и `right` для поворотов.