From 2ce34ce20cd529830fb1d7bfd428d5a865d9f8df Mon Sep 17 00:00:00 2001 From: Simon Fortier Date: Wed, 27 Dec 2017 16:14:24 -0500 Subject: [PATCH] Updated Hardware: LiDAR (markdown) --- Hardware:-LiDAR.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hardware:-LiDAR.md b/Hardware:-LiDAR.md index d4e5044..7388499 100644 --- a/Hardware:-LiDAR.md +++ b/Hardware:-LiDAR.md @@ -14,7 +14,7 @@ Hardware ID: `0x0003` | `3` | `GET_MAP` | `10 kJ` | Generate the current World's map and copy it to memory | | `4` | `GET_WORLD_POS` | `0 kJ` | Copy the current (x,y) coordinates in the Universe in the X and Y registers | -`GET_PATH` generates a path as a direction sequence of 1 word each starting at memory address `0x0000`. The last word in the sequence is `0xAAAA` to indicate the end of the path. A single value of `0xFFFF` is set in memory to indicate an invalid path. +`GET_PATH` generates a path as a direction sequence of 1 word each starting at memory address `0x0000`. You indicate the coordinates of the destination with the X and Y registers, and specify the desired range (Manhattan distance from the destination) with the B register. For example, if you want to get within 1 tile of a biomass blob, specify a distance of `1`. The last word in the sequence is `0xAAAA` to indicate the end of the path. A single value of `0xFFFF` is set in memory to indicate an invalid path. `NORTH` = `0x0000` `EAST` = `0x0001` `SOUTH` = `0x0002`