Trying to move devices instead of a robot, huh

This commit is contained in:
Bs0Dd
2022-07-06 13:15:22 +02:00
parent c73273346c
commit 400c1e350d
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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` для поворотов.