From 22a559170094f61f2c5e596fb4831ef1135538a3 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 7 Jan 2017 16:52:54 -0800 Subject: [PATCH] Updated Spiral Topography (markdown) --- Spiral-Topography.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spiral-Topography.md b/Spiral-Topography.md index 45915a2..01716a8 100644 --- a/Spiral-Topography.md +++ b/Spiral-Topography.md @@ -27,7 +27,7 @@ uint16_t Map(int16_t ring, int16_t pixel) const ### Mapping Implementation To implement the map method, the ring argument and pixel must be translated into the final index value. The first part is to calculate the start of the ring; this can be accomplished by a lookup table using the data above. Then we just need to add the pixel to offset to the correct one. ``` -const uint16_t Rings[] = {0, 1, 7, 19, 35, 59}; +const uint16_t Rings[] = {0, 1, 7, 19, 35, 59, 119}; uint16_t Map(int16_t ring, int16_t pixel) const { uint16_t index = Rings[ring] + pixel;