Updated Hardware: LiDAR (markdown)

Ethan Lafrenais 2018-08-30 15:36:43 -04:00
parent ec2c7030cf
commit 170fa0ecb6

@ -15,7 +15,7 @@ Hardware ID: `0x0003`
| `4` | `LIDAR_GET_WORLD_POS` | `0 kJ` | Copies the current (x,y) [universe coordinates](./Game-Universe) of the Cubot into the X and Y registers. | | `4` | `LIDAR_GET_WORLD_POS` | `0 kJ` | Copies the current (x,y) [universe coordinates](./Game-Universe) of the Cubot into the X and Y registers. |
#### LIDAR_GET_PATH #### LIDAR_GET_PATH
Generates a path as a sequence of words, each representing a direction. The generated path starts at the address `0x0000` but varies in length. It is terminated with the word `0xAAAA`, which represents the end of the path. A single value of `0xFFFF` is set at memory address `0x0000` to indicate an invalid path. If a path could not be generated, then the memory at address `0x0000` is set to `0xFFFF` (Note: The path terminator is not written for invalid paths). Generates a path as a sequence of words, each representing a direction. The generated path starts at the address `0x0000` but varies in length. It is terminated with the word `0xAAAA`, which represents the end of the path. If a path could not be generated, then the memory at address `0x0000` is set to `0xFFFF` (Note: The path terminator is not written for invalid paths).
The coordinates of the destination are indicated with the X and Y registers. The desired range (Manhattan distance from the destination) is specified with the B register. For example, if you want to get within 1 tile of a biomass blob, specify a distance of `1`. The coordinates of the destination are indicated with the X and Y registers. The desired range (Manhattan distance from the destination) is specified with the B register. For example, if you want to get within 1 tile of a biomass blob, specify a distance of `1`.