From 4d1de7b65300c40079359383d094de606275769f Mon Sep 17 00:00:00 2001 From: xfarrow Date: Sun, 27 Aug 2023 22:49:48 +0200 Subject: [PATCH] Update README.md --- secret-apis/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/secret-apis/README.md b/secret-apis/README.md index 73c723d..cf1755a 100644 --- a/secret-apis/README.md +++ b/secret-apis/README.md @@ -60,9 +60,16 @@ with this `JSON` body "method": "do", "motor": { "movestep": { - "direction": "0" + "direction": "(direction_value)" } } } ``` -`direction` is a value between `0` and `360`. I have yet to understand how it works because it seems moving on the X-axis only or Y-axis only. +`direction` can be one of these values + +direction | description +-------|:----------- +0 | It will move horizontally to 0° +90 | It will move vertically to the uppermost point +180 | It will move horizontally to 360° (yes) +270 | Il will move vertically to the bottommost point