Laser Sensing Display for UI interfaces in the real world

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Committer:
mbedalvaro
Date:
Thu Apr 17 08:04:14 2014 +0000
Revision:
47:199042980678
Parent:
40:3ba2b0ea9f33
publishing for sharing with Ken Iwasaki

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedalvaro 40:3ba2b0ea9f33 1 // This is sort of a hack: the idea is to use FLASH (memory program) to store data (here the trajectory for the letters).
mbedalvaro 40:3ba2b0ea9f33 2 // There are several ways to do that, one being for instance to actually WRITE that in a static array on FLASH, but the following is easy to code...
mbedalvaro 40:3ba2b0ea9f33 3
mbedalvaro 40:3ba2b0ea9f33 4 float auxbuffer[50];// this is, max 25 points per letter
mbedalvaro 40:3ba2b0ea9f33 5
mbedalvaro 40:3ba2b0ea9f33 6 int fillAuxBuffer(char ch) {
mbedalvaro 40:3ba2b0ea9f33 7 int numpoints;
mbedalvaro 40:3ba2b0ea9f33 8 switch(ch){
mbedalvaro 40:3ba2b0ea9f33 9 default:
mbedalvaro 40:3ba2b0ea9f33 10 numpoints = 0;
mbedalvaro 40:3ba2b0ea9f33 11 break;
mbedalvaro 40:3ba2b0ea9f33 12
mbedalvaro 40:3ba2b0ea9f33 13 case 'A':
mbedalvaro 40:3ba2b0ea9f33 14 numpoints = 10;
mbedalvaro 40:3ba2b0ea9f33 15 auxbuffer[0] = 0; auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 16 auxbuffer[2] = 2; auxbuffer[3] = 9;
mbedalvaro 40:3ba2b0ea9f33 17 auxbuffer[4] = 4; auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 18 auxbuffer[6] = 6; auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 19 auxbuffer[8] = 8; auxbuffer[9] = 9;
mbedalvaro 40:3ba2b0ea9f33 20 auxbuffer[10] = 4; auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 21 auxbuffer[12] = 2; auxbuffer[13] = 9;
mbedalvaro 40:3ba2b0ea9f33 22 auxbuffer[14] = 4; auxbuffer[15] = 9;
mbedalvaro 40:3ba2b0ea9f33 23 auxbuffer[16] = 8; auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 24 auxbuffer[18] = 10; auxbuffer[19] = 3;
mbedalvaro 40:3ba2b0ea9f33 25 break;
mbedalvaro 40:3ba2b0ea9f33 26
mbedalvaro 40:3ba2b0ea9f33 27 case 'B':
mbedalvaro 40:3ba2b0ea9f33 28 numpoints = 16;
mbedalvaro 40:3ba2b0ea9f33 29 auxbuffer[0] = 1; auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 30 auxbuffer[2] = 1; auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 31 auxbuffer[4] = 1; auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 32 auxbuffer[6] = 1; auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 33 auxbuffer[8] = 6; auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 34 auxbuffer[10] = 8; auxbuffer[11] = 14;
mbedalvaro 40:3ba2b0ea9f33 35 auxbuffer[12] = 9; auxbuffer[13] = 12;
mbedalvaro 40:3ba2b0ea9f33 36 auxbuffer[14] = 8; auxbuffer[15] = 10;
mbedalvaro 40:3ba2b0ea9f33 37 auxbuffer[16] = 6; auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 38 auxbuffer[18] = 1; auxbuffer[19] = 9;
mbedalvaro 40:3ba2b0ea9f33 39 auxbuffer[20] = 6; auxbuffer[21] = 9;
mbedalvaro 40:3ba2b0ea9f33 40 auxbuffer[22] = 8; auxbuffer[23] = 8;
mbedalvaro 40:3ba2b0ea9f33 41 auxbuffer[24] = 9;auxbuffer[25] = 6;
mbedalvaro 40:3ba2b0ea9f33 42 auxbuffer[26] = 8; auxbuffer[27] = 4;
mbedalvaro 40:3ba2b0ea9f33 43 auxbuffer[28] = 6;auxbuffer[29] = 3;
mbedalvaro 40:3ba2b0ea9f33 44 auxbuffer[30] = 1; auxbuffer[31] = 3;
mbedalvaro 40:3ba2b0ea9f33 45 break;
mbedalvaro 40:3ba2b0ea9f33 46
mbedalvaro 40:3ba2b0ea9f33 47 case 'C':
mbedalvaro 40:3ba2b0ea9f33 48 numpoints = 14;
mbedalvaro 40:3ba2b0ea9f33 49 auxbuffer[0] = 9; auxbuffer[1] = 12;
mbedalvaro 40:3ba2b0ea9f33 50 auxbuffer[2] = 8; auxbuffer[3] = 14;
mbedalvaro 40:3ba2b0ea9f33 51 auxbuffer[4] = 6; auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 52 auxbuffer[6] = 4; auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 53 auxbuffer[8] = 2;
mbedalvaro 40:3ba2b0ea9f33 54 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 55 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 56 auxbuffer[11] = 13;
mbedalvaro 40:3ba2b0ea9f33 57 auxbuffer[12] = 0;
mbedalvaro 40:3ba2b0ea9f33 58 auxbuffer[13] = 11;
mbedalvaro 40:3ba2b0ea9f33 59 auxbuffer[14] = 0;
mbedalvaro 40:3ba2b0ea9f33 60 auxbuffer[15] = 7;
mbedalvaro 40:3ba2b0ea9f33 61 auxbuffer[16] = 1;
mbedalvaro 40:3ba2b0ea9f33 62 auxbuffer[17] = 5;
mbedalvaro 40:3ba2b0ea9f33 63 auxbuffer[18] = 2;
mbedalvaro 40:3ba2b0ea9f33 64 auxbuffer[19] = 4;
mbedalvaro 40:3ba2b0ea9f33 65 auxbuffer[20] = 4;
mbedalvaro 40:3ba2b0ea9f33 66 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 67 auxbuffer[22] = 6;
mbedalvaro 40:3ba2b0ea9f33 68 auxbuffer[23] = 3;
mbedalvaro 40:3ba2b0ea9f33 69 auxbuffer[24] = 8;
mbedalvaro 40:3ba2b0ea9f33 70 auxbuffer[25] = 4;
mbedalvaro 40:3ba2b0ea9f33 71 auxbuffer[26] = 9;
mbedalvaro 40:3ba2b0ea9f33 72 auxbuffer[27] = 6;
mbedalvaro 40:3ba2b0ea9f33 73 break;
mbedalvaro 40:3ba2b0ea9f33 74
mbedalvaro 40:3ba2b0ea9f33 75 case 'D':
mbedalvaro 40:3ba2b0ea9f33 76 numpoints = 13;
mbedalvaro 40:3ba2b0ea9f33 77 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 78 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 79 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 80 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 81 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 82 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 83 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 84 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 85 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 86 auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 87 auxbuffer[10] = 8;
mbedalvaro 40:3ba2b0ea9f33 88 auxbuffer[11] = 14;
mbedalvaro 40:3ba2b0ea9f33 89 auxbuffer[12] = 9;
mbedalvaro 40:3ba2b0ea9f33 90 auxbuffer[13] = 13;
mbedalvaro 40:3ba2b0ea9f33 91 auxbuffer[14] = 10;
mbedalvaro 40:3ba2b0ea9f33 92 auxbuffer[15] = 10;
mbedalvaro 40:3ba2b0ea9f33 93 auxbuffer[16] = 10;
mbedalvaro 40:3ba2b0ea9f33 94 auxbuffer[17] = 8;
mbedalvaro 40:3ba2b0ea9f33 95 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 96 auxbuffer[19] = 5;
mbedalvaro 40:3ba2b0ea9f33 97 auxbuffer[20] = 8;
mbedalvaro 40:3ba2b0ea9f33 98 auxbuffer[21] = 4;
mbedalvaro 40:3ba2b0ea9f33 99 auxbuffer[22] = 5;
mbedalvaro 40:3ba2b0ea9f33 100 auxbuffer[23] = 3;
mbedalvaro 40:3ba2b0ea9f33 101 auxbuffer[24] = 1;
mbedalvaro 40:3ba2b0ea9f33 102 auxbuffer[25] = 3;
mbedalvaro 40:3ba2b0ea9f33 103 break;
mbedalvaro 40:3ba2b0ea9f33 104
mbedalvaro 40:3ba2b0ea9f33 105 case 'E':
mbedalvaro 40:3ba2b0ea9f33 106 numpoints = 11;
mbedalvaro 40:3ba2b0ea9f33 107 auxbuffer[0] = 9;
mbedalvaro 40:3ba2b0ea9f33 108 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 109 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 110 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 111 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 112 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 113 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 114 auxbuffer[7] = 12;
mbedalvaro 40:3ba2b0ea9f33 115 auxbuffer[8] = 1;
mbedalvaro 40:3ba2b0ea9f33 116 auxbuffer[9] = 9;
mbedalvaro 40:3ba2b0ea9f33 117 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 118 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 119 auxbuffer[12] = 1;
mbedalvaro 40:3ba2b0ea9f33 120 auxbuffer[13] = 9;
mbedalvaro 40:3ba2b0ea9f33 121 auxbuffer[14] = 1;
mbedalvaro 40:3ba2b0ea9f33 122 auxbuffer[15] = 6;
mbedalvaro 40:3ba2b0ea9f33 123 auxbuffer[16] = 1;
mbedalvaro 40:3ba2b0ea9f33 124 auxbuffer[17] = 3;
mbedalvaro 40:3ba2b0ea9f33 125 auxbuffer[18] = 5;
mbedalvaro 40:3ba2b0ea9f33 126 auxbuffer[19] = 3;
mbedalvaro 40:3ba2b0ea9f33 127 auxbuffer[20] = 9;
mbedalvaro 40:3ba2b0ea9f33 128 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 129 break;
mbedalvaro 40:3ba2b0ea9f33 130
mbedalvaro 40:3ba2b0ea9f33 131 case 'F':
mbedalvaro 40:3ba2b0ea9f33 132 numpoints = 9;
mbedalvaro 40:3ba2b0ea9f33 133 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 134 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 135 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 136 auxbuffer[3] = 6;
mbedalvaro 40:3ba2b0ea9f33 137 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 138 auxbuffer[5] = 9;
mbedalvaro 40:3ba2b0ea9f33 139 auxbuffer[6] = 5;
mbedalvaro 40:3ba2b0ea9f33 140 auxbuffer[7] = 9;
mbedalvaro 40:3ba2b0ea9f33 141 auxbuffer[8] = 1;
mbedalvaro 40:3ba2b0ea9f33 142 auxbuffer[9] = 9;
mbedalvaro 40:3ba2b0ea9f33 143 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 144 auxbuffer[11] = 12;
mbedalvaro 40:3ba2b0ea9f33 145 auxbuffer[12] = 1;
mbedalvaro 40:3ba2b0ea9f33 146 auxbuffer[13] = 15;
mbedalvaro 40:3ba2b0ea9f33 147 auxbuffer[14] = 5;
mbedalvaro 40:3ba2b0ea9f33 148 auxbuffer[15] = 15;
mbedalvaro 40:3ba2b0ea9f33 149 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 150 auxbuffer[17] = 15;
mbedalvaro 40:3ba2b0ea9f33 151 break;
mbedalvaro 40:3ba2b0ea9f33 152
mbedalvaro 40:3ba2b0ea9f33 153 case 'G':
mbedalvaro 40:3ba2b0ea9f33 154 numpoints = 19;
mbedalvaro 40:3ba2b0ea9f33 155 auxbuffer[0] = 10;
mbedalvaro 40:3ba2b0ea9f33 156 auxbuffer[1] = 11;
mbedalvaro 40:3ba2b0ea9f33 157 auxbuffer[2] = 9;
mbedalvaro 40:3ba2b0ea9f33 158 auxbuffer[3] = 13;
mbedalvaro 40:3ba2b0ea9f33 159 auxbuffer[4] = 8;
mbedalvaro 40:3ba2b0ea9f33 160 auxbuffer[5] = 14;
mbedalvaro 40:3ba2b0ea9f33 161 auxbuffer[6] = 6;
mbedalvaro 40:3ba2b0ea9f33 162 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 163 auxbuffer[8] = 4;
mbedalvaro 40:3ba2b0ea9f33 164 auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 165 auxbuffer[10] = 2;
mbedalvaro 40:3ba2b0ea9f33 166 auxbuffer[11] = 14;
mbedalvaro 40:3ba2b0ea9f33 167 auxbuffer[12] = 1;
mbedalvaro 40:3ba2b0ea9f33 168 auxbuffer[13] = 13;
mbedalvaro 40:3ba2b0ea9f33 169 auxbuffer[14] = 0;
mbedalvaro 40:3ba2b0ea9f33 170 auxbuffer[15] = 11;
mbedalvaro 40:3ba2b0ea9f33 171 auxbuffer[16] = 0;
mbedalvaro 40:3ba2b0ea9f33 172 auxbuffer[17] = 7;
mbedalvaro 40:3ba2b0ea9f33 173 auxbuffer[18] = 1;
mbedalvaro 40:3ba2b0ea9f33 174 auxbuffer[19] = 5;
mbedalvaro 40:3ba2b0ea9f33 175 auxbuffer[20] = 2;
mbedalvaro 40:3ba2b0ea9f33 176 auxbuffer[21] = 4;
mbedalvaro 40:3ba2b0ea9f33 177 auxbuffer[22] = 4;
mbedalvaro 40:3ba2b0ea9f33 178 auxbuffer[23] = 3;
mbedalvaro 40:3ba2b0ea9f33 179 auxbuffer[24] = 6;
mbedalvaro 40:3ba2b0ea9f33 180 auxbuffer[25] = 3;
mbedalvaro 40:3ba2b0ea9f33 181 auxbuffer[26] = 8;
mbedalvaro 40:3ba2b0ea9f33 182 auxbuffer[27] = 4;
mbedalvaro 40:3ba2b0ea9f33 183 auxbuffer[28] = 9;
mbedalvaro 40:3ba2b0ea9f33 184 auxbuffer[29] = 5;
mbedalvaro 40:3ba2b0ea9f33 185 auxbuffer[30] = 10;
mbedalvaro 40:3ba2b0ea9f33 186 auxbuffer[31] = 7;
mbedalvaro 40:3ba2b0ea9f33 187 auxbuffer[32] = 10;
mbedalvaro 40:3ba2b0ea9f33 188 auxbuffer[33] = 8;
mbedalvaro 40:3ba2b0ea9f33 189 auxbuffer[34] = 7;
mbedalvaro 40:3ba2b0ea9f33 190 auxbuffer[35] = 8;
mbedalvaro 40:3ba2b0ea9f33 191 auxbuffer[36] = 5;
mbedalvaro 40:3ba2b0ea9f33 192 auxbuffer[37] = 8;
mbedalvaro 40:3ba2b0ea9f33 193 break;
mbedalvaro 40:3ba2b0ea9f33 194
mbedalvaro 40:3ba2b0ea9f33 195 case 'H':
mbedalvaro 40:3ba2b0ea9f33 196 numpoints = 14;
mbedalvaro 40:3ba2b0ea9f33 197 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 198 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 199 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 200 auxbuffer[3] = 6;
mbedalvaro 40:3ba2b0ea9f33 201 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 202 auxbuffer[5] = 9;
mbedalvaro 40:3ba2b0ea9f33 203 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 204 auxbuffer[7] = 12;
mbedalvaro 40:3ba2b0ea9f33 205 auxbuffer[8] = 1;
mbedalvaro 40:3ba2b0ea9f33 206 auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 207 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 208 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 209 auxbuffer[12] = 4;
mbedalvaro 40:3ba2b0ea9f33 210 auxbuffer[13] = 9;
mbedalvaro 40:3ba2b0ea9f33 211 auxbuffer[14] = 6;
mbedalvaro 40:3ba2b0ea9f33 212 auxbuffer[15] = 9;
mbedalvaro 40:3ba2b0ea9f33 213 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 214 auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 215 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 216 auxbuffer[19] = 12;
mbedalvaro 40:3ba2b0ea9f33 217 auxbuffer[20] = 9;
mbedalvaro 40:3ba2b0ea9f33 218 auxbuffer[21] = 15;
mbedalvaro 40:3ba2b0ea9f33 219 auxbuffer[22] = 9;
mbedalvaro 40:3ba2b0ea9f33 220 auxbuffer[23] = 9;
mbedalvaro 40:3ba2b0ea9f33 221 auxbuffer[24] = 9;
mbedalvaro 40:3ba2b0ea9f33 222 auxbuffer[25] = 6;
mbedalvaro 40:3ba2b0ea9f33 223 auxbuffer[26] = 9;
mbedalvaro 40:3ba2b0ea9f33 224 auxbuffer[27] = 3;
mbedalvaro 40:3ba2b0ea9f33 225 break;
mbedalvaro 40:3ba2b0ea9f33 226
mbedalvaro 40:3ba2b0ea9f33 227 case 'I':
mbedalvaro 40:3ba2b0ea9f33 228 numpoints = 11;
mbedalvaro 40:3ba2b0ea9f33 229 auxbuffer[0] = 3;
mbedalvaro 40:3ba2b0ea9f33 230 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 231 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 232 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 233 auxbuffer[4] = 7;
mbedalvaro 40:3ba2b0ea9f33 234 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 235 auxbuffer[6] = 5;
mbedalvaro 40:3ba2b0ea9f33 236 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 237 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 238 auxbuffer[9] = 12;
mbedalvaro 40:3ba2b0ea9f33 239 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 240 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 241 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 242 auxbuffer[13] = 6;
mbedalvaro 40:3ba2b0ea9f33 243 auxbuffer[14] = 5;
mbedalvaro 40:3ba2b0ea9f33 244 auxbuffer[15] = 3;
mbedalvaro 40:3ba2b0ea9f33 245 auxbuffer[16] = 3;
mbedalvaro 40:3ba2b0ea9f33 246 auxbuffer[17] = 3;
mbedalvaro 40:3ba2b0ea9f33 247 auxbuffer[18] = 5;
mbedalvaro 40:3ba2b0ea9f33 248 auxbuffer[19] = 3;
mbedalvaro 40:3ba2b0ea9f33 249 auxbuffer[20] = 7;
mbedalvaro 40:3ba2b0ea9f33 250 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 251 break;
mbedalvaro 40:3ba2b0ea9f33 252
mbedalvaro 40:3ba2b0ea9f33 253 case 'J':
mbedalvaro 40:3ba2b0ea9f33 254 numpoints = 12;
mbedalvaro 40:3ba2b0ea9f33 255 auxbuffer[0] = 4;
mbedalvaro 40:3ba2b0ea9f33 256 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 257 auxbuffer[2] = 7;
mbedalvaro 40:3ba2b0ea9f33 258 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 259 auxbuffer[4] = 10;
mbedalvaro 40:3ba2b0ea9f33 260 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 261 auxbuffer[6] = 7;
mbedalvaro 40:3ba2b0ea9f33 262 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 263 auxbuffer[8] = 7;
mbedalvaro 40:3ba2b0ea9f33 264 auxbuffer[9] = 12;
mbedalvaro 40:3ba2b0ea9f33 265 auxbuffer[10] = 7;
mbedalvaro 40:3ba2b0ea9f33 266 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 267 auxbuffer[12] = 7;
mbedalvaro 40:3ba2b0ea9f33 268 auxbuffer[13] = 6;
mbedalvaro 40:3ba2b0ea9f33 269 auxbuffer[14] = 6;
mbedalvaro 40:3ba2b0ea9f33 270 auxbuffer[15] = 4;
mbedalvaro 40:3ba2b0ea9f33 271 auxbuffer[16] = 5;
mbedalvaro 40:3ba2b0ea9f33 272 auxbuffer[17] = 3;
mbedalvaro 40:3ba2b0ea9f33 273 auxbuffer[18] = 3;
mbedalvaro 40:3ba2b0ea9f33 274 auxbuffer[19] = 3;
mbedalvaro 40:3ba2b0ea9f33 275 auxbuffer[20] = 2;
mbedalvaro 40:3ba2b0ea9f33 276 auxbuffer[21] = 4;
mbedalvaro 40:3ba2b0ea9f33 277 auxbuffer[22] = 1;
mbedalvaro 40:3ba2b0ea9f33 278 auxbuffer[23] = 6;
mbedalvaro 40:3ba2b0ea9f33 279 break;
mbedalvaro 40:3ba2b0ea9f33 280
mbedalvaro 40:3ba2b0ea9f33 281 case 'K':
mbedalvaro 40:3ba2b0ea9f33 282 numpoints = 11;
mbedalvaro 40:3ba2b0ea9f33 283 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 284 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 285 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 286 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 287 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 288 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 289 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 290 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 291 auxbuffer[8] = 1;
mbedalvaro 40:3ba2b0ea9f33 292 auxbuffer[9] = 9;
mbedalvaro 40:3ba2b0ea9f33 293 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 294 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 295 auxbuffer[12] = 7;
mbedalvaro 40:3ba2b0ea9f33 296 auxbuffer[13] = 12;
mbedalvaro 40:3ba2b0ea9f33 297 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 298 auxbuffer[15] = 15;
mbedalvaro 40:3ba2b0ea9f33 299 auxbuffer[16] = 5;
mbedalvaro 40:3ba2b0ea9f33 300 auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 301 auxbuffer[18] = 7;
mbedalvaro 40:3ba2b0ea9f33 302 auxbuffer[19] = 6;
mbedalvaro 40:3ba2b0ea9f33 303 auxbuffer[20] = 9;
mbedalvaro 40:3ba2b0ea9f33 304 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 305 break;
mbedalvaro 40:3ba2b0ea9f33 306
mbedalvaro 40:3ba2b0ea9f33 307 //trajectory 'L'
mbedalvaro 40:3ba2b0ea9f33 308 //nb position: '&'
mbedalvaro 40:3ba2b0ea9f33 309 //BPBLBHBDFDJD
mbedalvaro 40:3ba2b0ea9f33 310 case 'L':
mbedalvaro 40:3ba2b0ea9f33 311 numpoints = 6;
mbedalvaro 40:3ba2b0ea9f33 312 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 313 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 314 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 315 auxbuffer[3] = 11;
mbedalvaro 40:3ba2b0ea9f33 316 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 317 auxbuffer[5] = 7;
mbedalvaro 40:3ba2b0ea9f33 318 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 319 auxbuffer[7] = 3;
mbedalvaro 40:3ba2b0ea9f33 320 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 321 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 322 auxbuffer[10] = 9;
mbedalvaro 40:3ba2b0ea9f33 323 auxbuffer[11] = 3;
mbedalvaro 40:3ba2b0ea9f33 324 break;
mbedalvaro 40:3ba2b0ea9f33 325
mbedalvaro 40:3ba2b0ea9f33 326 //trajectory 'M'
mbedalvaro 40:3ba2b0ea9f33 327 //nb position: '+'
mbedalvaro 40:3ba2b0ea9f33 328 //ADAHALAPCMFIIMKPKLKHKD
mbedalvaro 40:3ba2b0ea9f33 329 case 'M':
mbedalvaro 40:3ba2b0ea9f33 330 numpoints = 11;
mbedalvaro 40:3ba2b0ea9f33 331 auxbuffer[0] = 0;
mbedalvaro 40:3ba2b0ea9f33 332 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 333 auxbuffer[2] = 0;
mbedalvaro 40:3ba2b0ea9f33 334 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 335 auxbuffer[4] = 0;
mbedalvaro 40:3ba2b0ea9f33 336 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 337 auxbuffer[6] = 0;
mbedalvaro 40:3ba2b0ea9f33 338 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 339 auxbuffer[8] = 2;
mbedalvaro 40:3ba2b0ea9f33 340 auxbuffer[9] = 12;
mbedalvaro 40:3ba2b0ea9f33 341 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 342 auxbuffer[11] = 8;
mbedalvaro 40:3ba2b0ea9f33 343 auxbuffer[12] = 8;
mbedalvaro 40:3ba2b0ea9f33 344 auxbuffer[13] = 12;
mbedalvaro 40:3ba2b0ea9f33 345 auxbuffer[14] = 10;
mbedalvaro 40:3ba2b0ea9f33 346 auxbuffer[15] = 15;
mbedalvaro 40:3ba2b0ea9f33 347 auxbuffer[16] = 10;
mbedalvaro 40:3ba2b0ea9f33 348 auxbuffer[17] = 11;
mbedalvaro 40:3ba2b0ea9f33 349 auxbuffer[18] = 10;
mbedalvaro 40:3ba2b0ea9f33 350 auxbuffer[19] = 7;
mbedalvaro 40:3ba2b0ea9f33 351 auxbuffer[20] = 10;
mbedalvaro 40:3ba2b0ea9f33 352 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 353 break;
mbedalvaro 40:3ba2b0ea9f33 354
mbedalvaro 40:3ba2b0ea9f33 355 //trajectory 'N'
mbedalvaro 40:3ba2b0ea9f33 356 //nb position: '+'
mbedalvaro 40:3ba2b0ea9f33 357 //BDBHBLBPDMFJHGJDJHJLJP
mbedalvaro 40:3ba2b0ea9f33 358 case 'N':
mbedalvaro 40:3ba2b0ea9f33 359 numpoints = 11;
mbedalvaro 40:3ba2b0ea9f33 360 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 361 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 362 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 363 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 364 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 365 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 366 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 367 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 368 auxbuffer[8] = 3;
mbedalvaro 40:3ba2b0ea9f33 369 auxbuffer[9] = 12;
mbedalvaro 40:3ba2b0ea9f33 370 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 371 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 372 auxbuffer[12] = 7;
mbedalvaro 40:3ba2b0ea9f33 373 auxbuffer[13] = 6;
mbedalvaro 40:3ba2b0ea9f33 374 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 375 auxbuffer[15] = 3;
mbedalvaro 40:3ba2b0ea9f33 376 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 377 auxbuffer[17] = 7;
mbedalvaro 40:3ba2b0ea9f33 378 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 379 auxbuffer[19] = 11;
mbedalvaro 40:3ba2b0ea9f33 380 auxbuffer[20] = 9;
mbedalvaro 40:3ba2b0ea9f33 381 auxbuffer[21] = 15;
mbedalvaro 40:3ba2b0ea9f33 382 break;
mbedalvaro 40:3ba2b0ea9f33 383
mbedalvaro 40:3ba2b0ea9f33 384 //trajectory 'O'
mbedalvaro 40:3ba2b0ea9f33 385 //nb position: '3'
mbedalvaro 40:3ba2b0ea9f33 386 //EPCOBNALAJAHBFCEEDGDIEJFKHKJKLJNIOGPEP
mbedalvaro 40:3ba2b0ea9f33 387 case 'O':
mbedalvaro 40:3ba2b0ea9f33 388 numpoints = 19;
mbedalvaro 40:3ba2b0ea9f33 389 auxbuffer[0] = 4; auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 390 auxbuffer[2] = 2; auxbuffer[3] = 14;
mbedalvaro 40:3ba2b0ea9f33 391 auxbuffer[4] = 1; auxbuffer[5] = 13;
mbedalvaro 40:3ba2b0ea9f33 392 auxbuffer[6] = 0; auxbuffer[7] = 11;
mbedalvaro 40:3ba2b0ea9f33 393 auxbuffer[8] = 0; auxbuffer[9] = 9;
mbedalvaro 40:3ba2b0ea9f33 394 auxbuffer[10] = 0; auxbuffer[11] = 7;
mbedalvaro 40:3ba2b0ea9f33 395 auxbuffer[12] = 1; auxbuffer[13] = 5;
mbedalvaro 40:3ba2b0ea9f33 396 auxbuffer[14] = 2; auxbuffer[15] = 4;
mbedalvaro 40:3ba2b0ea9f33 397 auxbuffer[16] = 4; auxbuffer[17] = 3;
mbedalvaro 40:3ba2b0ea9f33 398 auxbuffer[18] = 6;auxbuffer[19] = 3;
mbedalvaro 40:3ba2b0ea9f33 399 auxbuffer[20] = 8; auxbuffer[21] = 4;
mbedalvaro 40:3ba2b0ea9f33 400 auxbuffer[22] = 9; auxbuffer[23] = 5;
mbedalvaro 40:3ba2b0ea9f33 401 auxbuffer[24] = 10; auxbuffer[25] = 7;
mbedalvaro 40:3ba2b0ea9f33 402 auxbuffer[26] = 10; auxbuffer[27] = 9;
mbedalvaro 40:3ba2b0ea9f33 403 auxbuffer[28] = 10; auxbuffer[29] = 11;
mbedalvaro 40:3ba2b0ea9f33 404 auxbuffer[30] = 9; auxbuffer[31] = 13;
mbedalvaro 40:3ba2b0ea9f33 405 auxbuffer[32] = 8; auxbuffer[33] = 14;
mbedalvaro 40:3ba2b0ea9f33 406 auxbuffer[34] = 6;auxbuffer[35] = 15;
mbedalvaro 40:3ba2b0ea9f33 407 auxbuffer[36] = 4; auxbuffer[37] = 15;
mbedalvaro 40:3ba2b0ea9f33 408 break;
mbedalvaro 40:3ba2b0ea9f33 409
mbedalvaro 40:3ba2b0ea9f33 410 //trajectory 'P'
mbedalvaro 40:3ba2b0ea9f33 411 //nb position: '*'
mbedalvaro 40:3ba2b0ea9f33 412 //CDCHCLCPFPIOJMIKFJCJ
mbedalvaro 40:3ba2b0ea9f33 413 case 'P':
mbedalvaro 40:3ba2b0ea9f33 414 numpoints = 10;
mbedalvaro 40:3ba2b0ea9f33 415 auxbuffer[0] = 2;
mbedalvaro 40:3ba2b0ea9f33 416 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 417 auxbuffer[2] = 2;
mbedalvaro 40:3ba2b0ea9f33 418 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 419 auxbuffer[4] = 2;
mbedalvaro 40:3ba2b0ea9f33 420 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 421 auxbuffer[6] = 2;
mbedalvaro 40:3ba2b0ea9f33 422 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 423 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 424 auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 425 auxbuffer[10] = 8;
mbedalvaro 40:3ba2b0ea9f33 426 auxbuffer[11] = 14;
mbedalvaro 40:3ba2b0ea9f33 427 auxbuffer[12] = 9;
mbedalvaro 40:3ba2b0ea9f33 428 auxbuffer[13] = 12;
mbedalvaro 40:3ba2b0ea9f33 429 auxbuffer[14] = 8;
mbedalvaro 40:3ba2b0ea9f33 430 auxbuffer[15] = 10;
mbedalvaro 40:3ba2b0ea9f33 431 auxbuffer[16] = 5;
mbedalvaro 40:3ba2b0ea9f33 432 auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 433 auxbuffer[18] = 2;
mbedalvaro 40:3ba2b0ea9f33 434 auxbuffer[19] = 9;
mbedalvaro 40:3ba2b0ea9f33 435 break;
mbedalvaro 40:3ba2b0ea9f33 436
mbedalvaro 40:3ba2b0ea9f33 437 //trajectory 'Q'
mbedalvaro 40:3ba2b0ea9f33 438 //nb position: '5'
mbedalvaro 40:3ba2b0ea9f33 439 //KDIEGDEDCEBFAHAJALBNCOEPGPIOJNKLKJKHJFIEGF
mbedalvaro 40:3ba2b0ea9f33 440 case 'Q':
mbedalvaro 40:3ba2b0ea9f33 441 numpoints = 21;
mbedalvaro 40:3ba2b0ea9f33 442 auxbuffer[0] = 10;
mbedalvaro 40:3ba2b0ea9f33 443 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 444 auxbuffer[2] = 8;
mbedalvaro 40:3ba2b0ea9f33 445 auxbuffer[3] = 4;
mbedalvaro 40:3ba2b0ea9f33 446 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 447 auxbuffer[5] = 3;
mbedalvaro 40:3ba2b0ea9f33 448 auxbuffer[6] = 4;
mbedalvaro 40:3ba2b0ea9f33 449 auxbuffer[7] = 3;
mbedalvaro 40:3ba2b0ea9f33 450 auxbuffer[8] = 2;
mbedalvaro 40:3ba2b0ea9f33 451 auxbuffer[9] = 4;
mbedalvaro 40:3ba2b0ea9f33 452 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 453 auxbuffer[11] = 5;
mbedalvaro 40:3ba2b0ea9f33 454 auxbuffer[12] = 0;
mbedalvaro 40:3ba2b0ea9f33 455 auxbuffer[13] = 7;
mbedalvaro 40:3ba2b0ea9f33 456 auxbuffer[14] = 0;
mbedalvaro 40:3ba2b0ea9f33 457 auxbuffer[15] = 9;
mbedalvaro 40:3ba2b0ea9f33 458 auxbuffer[16] = 0;
mbedalvaro 40:3ba2b0ea9f33 459 auxbuffer[17] = 11;
mbedalvaro 40:3ba2b0ea9f33 460 auxbuffer[18] = 1;
mbedalvaro 40:3ba2b0ea9f33 461 auxbuffer[19] = 13;
mbedalvaro 40:3ba2b0ea9f33 462 auxbuffer[20] = 2;
mbedalvaro 40:3ba2b0ea9f33 463 auxbuffer[21] = 14;
mbedalvaro 40:3ba2b0ea9f33 464 auxbuffer[22] = 4;
mbedalvaro 40:3ba2b0ea9f33 465 auxbuffer[23] = 15;
mbedalvaro 40:3ba2b0ea9f33 466 auxbuffer[24] = 6;
mbedalvaro 40:3ba2b0ea9f33 467 auxbuffer[25] = 15;
mbedalvaro 40:3ba2b0ea9f33 468 auxbuffer[26] = 8;
mbedalvaro 40:3ba2b0ea9f33 469 auxbuffer[27] = 14;
mbedalvaro 40:3ba2b0ea9f33 470 auxbuffer[28] = 9;
mbedalvaro 40:3ba2b0ea9f33 471 auxbuffer[29] = 13;
mbedalvaro 40:3ba2b0ea9f33 472 auxbuffer[30] = 10;
mbedalvaro 40:3ba2b0ea9f33 473 auxbuffer[31] = 11;
mbedalvaro 40:3ba2b0ea9f33 474 auxbuffer[32] = 10;
mbedalvaro 40:3ba2b0ea9f33 475 auxbuffer[33] = 9;
mbedalvaro 40:3ba2b0ea9f33 476 auxbuffer[34] = 10;
mbedalvaro 40:3ba2b0ea9f33 477 auxbuffer[35] = 7;
mbedalvaro 40:3ba2b0ea9f33 478 auxbuffer[36] = 9;
mbedalvaro 40:3ba2b0ea9f33 479 auxbuffer[37] = 5;
mbedalvaro 40:3ba2b0ea9f33 480 auxbuffer[38] = 8;
mbedalvaro 40:3ba2b0ea9f33 481 auxbuffer[39] = 4;
mbedalvaro 40:3ba2b0ea9f33 482 auxbuffer[40] = 6;
mbedalvaro 40:3ba2b0ea9f33 483 auxbuffer[41] = 5;
mbedalvaro 40:3ba2b0ea9f33 484 break;
mbedalvaro 40:3ba2b0ea9f33 485
mbedalvaro 40:3ba2b0ea9f33 486 //trajectory 'R'
mbedalvaro 40:3ba2b0ea9f33 487 //nb position: '0'
mbedalvaro 40:3ba2b0ea9f33 488 //BDBHBLBPFPIOJMIKFJDJBJEJGIHHIFJD
mbedalvaro 40:3ba2b0ea9f33 489 case 'R':
mbedalvaro 40:3ba2b0ea9f33 490 numpoints = 16;
mbedalvaro 40:3ba2b0ea9f33 491 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 492 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 493 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 494 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 495 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 496 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 497 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 498 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 499 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 500 auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 501 auxbuffer[10] = 8;
mbedalvaro 40:3ba2b0ea9f33 502 auxbuffer[11] = 14;
mbedalvaro 40:3ba2b0ea9f33 503 auxbuffer[12] = 9;
mbedalvaro 40:3ba2b0ea9f33 504 auxbuffer[13] = 12;
mbedalvaro 40:3ba2b0ea9f33 505 auxbuffer[14] = 8;
mbedalvaro 40:3ba2b0ea9f33 506 auxbuffer[15] = 10;
mbedalvaro 40:3ba2b0ea9f33 507 auxbuffer[16] = 5;
mbedalvaro 40:3ba2b0ea9f33 508 auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 509 auxbuffer[18] = 3;
mbedalvaro 40:3ba2b0ea9f33 510 auxbuffer[19] = 9;
mbedalvaro 40:3ba2b0ea9f33 511 auxbuffer[20] = 1;
mbedalvaro 40:3ba2b0ea9f33 512 auxbuffer[21] = 9;
mbedalvaro 40:3ba2b0ea9f33 513 auxbuffer[22] = 4;
mbedalvaro 40:3ba2b0ea9f33 514 auxbuffer[23] = 9;
mbedalvaro 40:3ba2b0ea9f33 515 auxbuffer[24] = 6;
mbedalvaro 40:3ba2b0ea9f33 516 auxbuffer[25] = 8;
mbedalvaro 40:3ba2b0ea9f33 517 auxbuffer[26] = 7;
mbedalvaro 40:3ba2b0ea9f33 518 auxbuffer[27] = 7;
mbedalvaro 40:3ba2b0ea9f33 519 auxbuffer[28] = 8;
mbedalvaro 40:3ba2b0ea9f33 520 auxbuffer[29] = 5;
mbedalvaro 40:3ba2b0ea9f33 521 auxbuffer[30] = 9;
mbedalvaro 40:3ba2b0ea9f33 522 auxbuffer[31] = 3;
mbedalvaro 40:3ba2b0ea9f33 523 break;
mbedalvaro 40:3ba2b0ea9f33 524
mbedalvaro 40:3ba2b0ea9f33 525 //trajectory 'S'
mbedalvaro 40:3ba2b0ea9f33 526 //nb position: '1'
mbedalvaro 40:3ba2b0ea9f33 527 //JNIOGPEPCOBNBLCKEJGJIIJGIEGDEDCEBF
mbedalvaro 40:3ba2b0ea9f33 528 case 'S':
mbedalvaro 40:3ba2b0ea9f33 529 numpoints = 17;
mbedalvaro 40:3ba2b0ea9f33 530 auxbuffer[0] = 9;
mbedalvaro 40:3ba2b0ea9f33 531 auxbuffer[1] = 13;
mbedalvaro 40:3ba2b0ea9f33 532 auxbuffer[2] = 8;
mbedalvaro 40:3ba2b0ea9f33 533 auxbuffer[3] = 14;
mbedalvaro 40:3ba2b0ea9f33 534 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 535 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 536 auxbuffer[6] = 4;
mbedalvaro 40:3ba2b0ea9f33 537 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 538 auxbuffer[8] = 2;
mbedalvaro 40:3ba2b0ea9f33 539 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 540 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 541 auxbuffer[11] = 13;
mbedalvaro 40:3ba2b0ea9f33 542 auxbuffer[12] = 1;
mbedalvaro 40:3ba2b0ea9f33 543 auxbuffer[13] = 11;
mbedalvaro 40:3ba2b0ea9f33 544 auxbuffer[14] = 2;
mbedalvaro 40:3ba2b0ea9f33 545 auxbuffer[15] = 10;
mbedalvaro 40:3ba2b0ea9f33 546 auxbuffer[16] = 4;
mbedalvaro 40:3ba2b0ea9f33 547 auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 548 auxbuffer[18] = 6;
mbedalvaro 40:3ba2b0ea9f33 549 auxbuffer[19] = 9;
mbedalvaro 40:3ba2b0ea9f33 550 auxbuffer[20] = 8;
mbedalvaro 40:3ba2b0ea9f33 551 auxbuffer[21] = 8;
mbedalvaro 40:3ba2b0ea9f33 552 auxbuffer[22] = 9;
mbedalvaro 40:3ba2b0ea9f33 553 auxbuffer[23] = 6;
mbedalvaro 40:3ba2b0ea9f33 554 auxbuffer[24] = 8;
mbedalvaro 40:3ba2b0ea9f33 555 auxbuffer[25] = 4;
mbedalvaro 40:3ba2b0ea9f33 556 auxbuffer[26] = 6;
mbedalvaro 40:3ba2b0ea9f33 557 auxbuffer[27] = 3;
mbedalvaro 40:3ba2b0ea9f33 558 auxbuffer[28] = 4;
mbedalvaro 40:3ba2b0ea9f33 559 auxbuffer[29] = 3;
mbedalvaro 40:3ba2b0ea9f33 560 auxbuffer[30] = 2;
mbedalvaro 40:3ba2b0ea9f33 561 auxbuffer[31] = 4;
mbedalvaro 40:3ba2b0ea9f33 562 auxbuffer[32] = 1;
mbedalvaro 40:3ba2b0ea9f33 563 auxbuffer[33] = 5;
mbedalvaro 40:3ba2b0ea9f33 564 break;
mbedalvaro 40:3ba2b0ea9f33 565
mbedalvaro 40:3ba2b0ea9f33 566 //trajectory 'T'
mbedalvaro 40:3ba2b0ea9f33 567 //nb position: '('
mbedalvaro 40:3ba2b0ea9f33 568 //BPFPFLFHFDFJFPJP
mbedalvaro 40:3ba2b0ea9f33 569 case 'T':
mbedalvaro 40:3ba2b0ea9f33 570 numpoints = 8;
mbedalvaro 40:3ba2b0ea9f33 571 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 572 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 573 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 574 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 575 auxbuffer[4] = 5;
mbedalvaro 40:3ba2b0ea9f33 576 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 577 auxbuffer[6] = 5;
mbedalvaro 40:3ba2b0ea9f33 578 auxbuffer[7] = 7;
mbedalvaro 40:3ba2b0ea9f33 579 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 580 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 581 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 582 auxbuffer[11] = 9;
mbedalvaro 40:3ba2b0ea9f33 583 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 584 auxbuffer[13] = 15;
mbedalvaro 40:3ba2b0ea9f33 585 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 586 auxbuffer[15] = 15;
mbedalvaro 40:3ba2b0ea9f33 587 break;
mbedalvaro 40:3ba2b0ea9f33 588
mbedalvaro 40:3ba2b0ea9f33 589 //trajectory 'U'
mbedalvaro 40:3ba2b0ea9f33 590 //nb position: '*'
mbedalvaro 40:3ba2b0ea9f33 591 //BPBLBHCEEDGDIEJHJLJP
mbedalvaro 40:3ba2b0ea9f33 592 case 'U':
mbedalvaro 40:3ba2b0ea9f33 593 numpoints = 10;
mbedalvaro 40:3ba2b0ea9f33 594 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 595 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 596 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 597 auxbuffer[3] = 11;
mbedalvaro 40:3ba2b0ea9f33 598 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 599 auxbuffer[5] = 7;
mbedalvaro 40:3ba2b0ea9f33 600 auxbuffer[6] = 2;
mbedalvaro 40:3ba2b0ea9f33 601 auxbuffer[7] = 4;
mbedalvaro 40:3ba2b0ea9f33 602 auxbuffer[8] = 4;
mbedalvaro 40:3ba2b0ea9f33 603 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 604 auxbuffer[10] = 6;
mbedalvaro 40:3ba2b0ea9f33 605 auxbuffer[11] = 3;
mbedalvaro 40:3ba2b0ea9f33 606 auxbuffer[12] = 8;
mbedalvaro 40:3ba2b0ea9f33 607 auxbuffer[13] = 4;
mbedalvaro 40:3ba2b0ea9f33 608 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 609 auxbuffer[15] = 7;
mbedalvaro 40:3ba2b0ea9f33 610 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 611 auxbuffer[17] = 11;
mbedalvaro 40:3ba2b0ea9f33 612 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 613 auxbuffer[19] = 15;
mbedalvaro 40:3ba2b0ea9f33 614 break;
mbedalvaro 40:3ba2b0ea9f33 615
mbedalvaro 40:3ba2b0ea9f33 616 //trajectory 'V'
mbedalvaro 40:3ba2b0ea9f33 617 //nb position: '''
mbedalvaro 40:3ba2b0ea9f33 618 //APBNDIFDHIJNKP
mbedalvaro 40:3ba2b0ea9f33 619 case 'V':
mbedalvaro 40:3ba2b0ea9f33 620 numpoints = 7;
mbedalvaro 40:3ba2b0ea9f33 621 auxbuffer[0] = 0;
mbedalvaro 40:3ba2b0ea9f33 622 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 623 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 624 auxbuffer[3] = 13;
mbedalvaro 40:3ba2b0ea9f33 625 auxbuffer[4] = 3;
mbedalvaro 40:3ba2b0ea9f33 626 auxbuffer[5] = 8;
mbedalvaro 40:3ba2b0ea9f33 627 auxbuffer[6] = 5;
mbedalvaro 40:3ba2b0ea9f33 628 auxbuffer[7] = 3;
mbedalvaro 40:3ba2b0ea9f33 629 auxbuffer[8] = 7;
mbedalvaro 40:3ba2b0ea9f33 630 auxbuffer[9] = 8;
mbedalvaro 40:3ba2b0ea9f33 631 auxbuffer[10] = 9;
mbedalvaro 40:3ba2b0ea9f33 632 auxbuffer[11] = 13;
mbedalvaro 40:3ba2b0ea9f33 633 auxbuffer[12] = 10;
mbedalvaro 40:3ba2b0ea9f33 634 auxbuffer[13] = 15;
mbedalvaro 40:3ba2b0ea9f33 635 break;
mbedalvaro 40:3ba2b0ea9f33 636
mbedalvaro 40:3ba2b0ea9f33 637 //trajectory 'W'
mbedalvaro 40:3ba2b0ea9f33 638 //nb position: '+'
mbedalvaro 40:3ba2b0ea9f33 639 //APBLCHDDEHFKGHHDIHJLKP
mbedalvaro 40:3ba2b0ea9f33 640 case 'W':
mbedalvaro 40:3ba2b0ea9f33 641 numpoints = 11;
mbedalvaro 40:3ba2b0ea9f33 642 auxbuffer[0] = 0;
mbedalvaro 40:3ba2b0ea9f33 643 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 644 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 645 auxbuffer[3] = 11;
mbedalvaro 40:3ba2b0ea9f33 646 auxbuffer[4] = 2;
mbedalvaro 40:3ba2b0ea9f33 647 auxbuffer[5] = 7;
mbedalvaro 40:3ba2b0ea9f33 648 auxbuffer[6] = 3;
mbedalvaro 40:3ba2b0ea9f33 649 auxbuffer[7] = 3;
mbedalvaro 40:3ba2b0ea9f33 650 auxbuffer[8] = 4;
mbedalvaro 40:3ba2b0ea9f33 651 auxbuffer[9] = 7;
mbedalvaro 40:3ba2b0ea9f33 652 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 653 auxbuffer[11] = 10;
mbedalvaro 40:3ba2b0ea9f33 654 auxbuffer[12] = 6;
mbedalvaro 40:3ba2b0ea9f33 655 auxbuffer[13] = 7;
mbedalvaro 40:3ba2b0ea9f33 656 auxbuffer[14] = 7;
mbedalvaro 40:3ba2b0ea9f33 657 auxbuffer[15] = 3;
mbedalvaro 40:3ba2b0ea9f33 658 auxbuffer[16] = 8;
mbedalvaro 40:3ba2b0ea9f33 659 auxbuffer[17] = 7;
mbedalvaro 40:3ba2b0ea9f33 660 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 661 auxbuffer[19] = 11;
mbedalvaro 40:3ba2b0ea9f33 662 auxbuffer[20] = 10;
mbedalvaro 40:3ba2b0ea9f33 663 auxbuffer[21] = 15;
mbedalvaro 40:3ba2b0ea9f33 664 break;
mbedalvaro 40:3ba2b0ea9f33 665
mbedalvaro 40:3ba2b0ea9f33 666 //trajectory 'X'
mbedalvaro 40:3ba2b0ea9f33 667 //nb position: '-'
mbedalvaro 40:3ba2b0ea9f33 668 //BPDMFJDGBDDGFJHMJPHMFJHGJD
mbedalvaro 40:3ba2b0ea9f33 669 case 'X':
mbedalvaro 40:3ba2b0ea9f33 670 numpoints = 13;
mbedalvaro 40:3ba2b0ea9f33 671 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 672 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 673 auxbuffer[2] = 3;
mbedalvaro 40:3ba2b0ea9f33 674 auxbuffer[3] = 12;
mbedalvaro 40:3ba2b0ea9f33 675 auxbuffer[4] = 5;
mbedalvaro 40:3ba2b0ea9f33 676 auxbuffer[5] = 9;
mbedalvaro 40:3ba2b0ea9f33 677 auxbuffer[6] = 3;
mbedalvaro 40:3ba2b0ea9f33 678 auxbuffer[7] = 6;
mbedalvaro 40:3ba2b0ea9f33 679 auxbuffer[8] = 1;
mbedalvaro 40:3ba2b0ea9f33 680 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 681 auxbuffer[10] = 3;
mbedalvaro 40:3ba2b0ea9f33 682 auxbuffer[11] = 6;
mbedalvaro 40:3ba2b0ea9f33 683 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 684 auxbuffer[13] = 9;
mbedalvaro 40:3ba2b0ea9f33 685 auxbuffer[14] = 7;
mbedalvaro 40:3ba2b0ea9f33 686 auxbuffer[15] = 12;
mbedalvaro 40:3ba2b0ea9f33 687 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 688 auxbuffer[17] = 15;
mbedalvaro 40:3ba2b0ea9f33 689 auxbuffer[18] = 7;
mbedalvaro 40:3ba2b0ea9f33 690 auxbuffer[19] = 12;
mbedalvaro 40:3ba2b0ea9f33 691 auxbuffer[20] = 5;
mbedalvaro 40:3ba2b0ea9f33 692 auxbuffer[21] = 9;
mbedalvaro 40:3ba2b0ea9f33 693 auxbuffer[22] = 7;
mbedalvaro 40:3ba2b0ea9f33 694 auxbuffer[23] = 6;
mbedalvaro 40:3ba2b0ea9f33 695 auxbuffer[24] = 9;
mbedalvaro 40:3ba2b0ea9f33 696 auxbuffer[25] = 3;
mbedalvaro 40:3ba2b0ea9f33 697 break;
mbedalvaro 40:3ba2b0ea9f33 698
mbedalvaro 40:3ba2b0ea9f33 699 //trajectory 'Y'
mbedalvaro 40:3ba2b0ea9f33 700 //nb position: ')'
mbedalvaro 40:3ba2b0ea9f33 701 //BPDMFJFGFDFGFJHMJP
mbedalvaro 40:3ba2b0ea9f33 702 case 'Y':
mbedalvaro 40:3ba2b0ea9f33 703 numpoints = 9;
mbedalvaro 40:3ba2b0ea9f33 704 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 705 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 706 auxbuffer[2] = 3;
mbedalvaro 40:3ba2b0ea9f33 707 auxbuffer[3] = 12;
mbedalvaro 40:3ba2b0ea9f33 708 auxbuffer[4] = 5;
mbedalvaro 40:3ba2b0ea9f33 709 auxbuffer[5] = 9;
mbedalvaro 40:3ba2b0ea9f33 710 auxbuffer[6] = 5;
mbedalvaro 40:3ba2b0ea9f33 711 auxbuffer[7] = 6;
mbedalvaro 40:3ba2b0ea9f33 712 auxbuffer[8] = 5;
mbedalvaro 40:3ba2b0ea9f33 713 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 714 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 715 auxbuffer[11] = 6;
mbedalvaro 40:3ba2b0ea9f33 716 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 717 auxbuffer[13] = 9;
mbedalvaro 40:3ba2b0ea9f33 718 auxbuffer[14] = 7;
mbedalvaro 40:3ba2b0ea9f33 719 auxbuffer[15] = 12;
mbedalvaro 40:3ba2b0ea9f33 720 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 721 auxbuffer[17] = 15;
mbedalvaro 40:3ba2b0ea9f33 722 break;
mbedalvaro 40:3ba2b0ea9f33 723
mbedalvaro 40:3ba2b0ea9f33 724 //trajectory 'Z'
mbedalvaro 40:3ba2b0ea9f33 725 //nb position: '''
mbedalvaro 40:3ba2b0ea9f33 726 //APFPKPFJADFDKD
mbedalvaro 40:3ba2b0ea9f33 727 case 'Z':
mbedalvaro 40:3ba2b0ea9f33 728 numpoints = 7;
mbedalvaro 40:3ba2b0ea9f33 729 auxbuffer[0] = 0;
mbedalvaro 40:3ba2b0ea9f33 730 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 731 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 732 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 733 auxbuffer[4] = 10;
mbedalvaro 40:3ba2b0ea9f33 734 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 735 auxbuffer[6] = 5;
mbedalvaro 40:3ba2b0ea9f33 736 auxbuffer[7] = 9;
mbedalvaro 40:3ba2b0ea9f33 737 auxbuffer[8] = 0;
mbedalvaro 40:3ba2b0ea9f33 738 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 739 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 740 auxbuffer[11] = 3;
mbedalvaro 40:3ba2b0ea9f33 741 auxbuffer[12] = 10;
mbedalvaro 40:3ba2b0ea9f33 742 auxbuffer[13] = 3;
mbedalvaro 40:3ba2b0ea9f33 743 break;
mbedalvaro 40:3ba2b0ea9f33 744
mbedalvaro 40:3ba2b0ea9f33 745 //trajectory '1'
mbedalvaro 40:3ba2b0ea9f33 746 //nb position: '%'
mbedalvaro 40:3ba2b0ea9f33 747 //CLGPGLGHGD
mbedalvaro 40:3ba2b0ea9f33 748 case '1':
mbedalvaro 40:3ba2b0ea9f33 749 numpoints = 5;
mbedalvaro 40:3ba2b0ea9f33 750 auxbuffer[0] = 2;
mbedalvaro 40:3ba2b0ea9f33 751 auxbuffer[1] = 11;
mbedalvaro 40:3ba2b0ea9f33 752 auxbuffer[2] = 6;
mbedalvaro 40:3ba2b0ea9f33 753 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 754 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 755 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 756 auxbuffer[6] = 6;
mbedalvaro 40:3ba2b0ea9f33 757 auxbuffer[7] = 7;
mbedalvaro 40:3ba2b0ea9f33 758 auxbuffer[8] = 6;
mbedalvaro 40:3ba2b0ea9f33 759 auxbuffer[9] = 3;
mbedalvaro 40:3ba2b0ea9f33 760 break;
mbedalvaro 40:3ba2b0ea9f33 761
mbedalvaro 40:3ba2b0ea9f33 762 //trajectory '2'
mbedalvaro 40:3ba2b0ea9f33 763 //nb position: '-'
mbedalvaro 40:3ba2b0ea9f33 764 //BMCOEPGPIOJMJLIJFHDFBDFDJD
mbedalvaro 40:3ba2b0ea9f33 765 case '2':
mbedalvaro 40:3ba2b0ea9f33 766 numpoints = 13;
mbedalvaro 40:3ba2b0ea9f33 767 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 768 auxbuffer[1] = 12;
mbedalvaro 40:3ba2b0ea9f33 769 auxbuffer[2] = 2;
mbedalvaro 40:3ba2b0ea9f33 770 auxbuffer[3] = 14;
mbedalvaro 40:3ba2b0ea9f33 771 auxbuffer[4] = 4;
mbedalvaro 40:3ba2b0ea9f33 772 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 773 auxbuffer[6] = 6;
mbedalvaro 40:3ba2b0ea9f33 774 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 775 auxbuffer[8] = 8;
mbedalvaro 40:3ba2b0ea9f33 776 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 777 auxbuffer[10] = 9;
mbedalvaro 40:3ba2b0ea9f33 778 auxbuffer[11] = 12;
mbedalvaro 40:3ba2b0ea9f33 779 auxbuffer[12] = 9;
mbedalvaro 40:3ba2b0ea9f33 780 auxbuffer[13] = 11;
mbedalvaro 40:3ba2b0ea9f33 781 auxbuffer[14] = 8;
mbedalvaro 40:3ba2b0ea9f33 782 auxbuffer[15] = 9;
mbedalvaro 40:3ba2b0ea9f33 783 auxbuffer[16] = 5;
mbedalvaro 40:3ba2b0ea9f33 784 auxbuffer[17] = 7;
mbedalvaro 40:3ba2b0ea9f33 785 auxbuffer[18] = 3;
mbedalvaro 40:3ba2b0ea9f33 786 auxbuffer[19] = 5;
mbedalvaro 40:3ba2b0ea9f33 787 auxbuffer[20] = 1;
mbedalvaro 40:3ba2b0ea9f33 788 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 789 auxbuffer[22] = 5;
mbedalvaro 40:3ba2b0ea9f33 790 auxbuffer[23] = 3;
mbedalvaro 40:3ba2b0ea9f33 791 auxbuffer[24] = 9;
mbedalvaro 40:3ba2b0ea9f33 792 auxbuffer[25] = 3;
mbedalvaro 40:3ba2b0ea9f33 793 break;
mbedalvaro 40:3ba2b0ea9f33 794
mbedalvaro 40:3ba2b0ea9f33 795 //trajectory '3'
mbedalvaro 40:3ba2b0ea9f33 796 //nb position: '3'
mbedalvaro 40:3ba2b0ea9f33 797 //BNCOEPGPIOJMJKIJGJFJHJIJJIJGIEGDEDCEBF
mbedalvaro 40:3ba2b0ea9f33 798 case '3':
mbedalvaro 40:3ba2b0ea9f33 799 numpoints = 19;
mbedalvaro 40:3ba2b0ea9f33 800 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 801 auxbuffer[1] = 13;
mbedalvaro 40:3ba2b0ea9f33 802 auxbuffer[2] = 2;
mbedalvaro 40:3ba2b0ea9f33 803 auxbuffer[3] = 14;
mbedalvaro 40:3ba2b0ea9f33 804 auxbuffer[4] = 4;
mbedalvaro 40:3ba2b0ea9f33 805 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 806 auxbuffer[6] = 6;
mbedalvaro 40:3ba2b0ea9f33 807 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 808 auxbuffer[8] = 8;
mbedalvaro 40:3ba2b0ea9f33 809 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 810 auxbuffer[10] = 9;
mbedalvaro 40:3ba2b0ea9f33 811 auxbuffer[11] = 12;
mbedalvaro 40:3ba2b0ea9f33 812 auxbuffer[12] = 9;
mbedalvaro 40:3ba2b0ea9f33 813 auxbuffer[13] = 10;
mbedalvaro 40:3ba2b0ea9f33 814 auxbuffer[14] = 8;
mbedalvaro 40:3ba2b0ea9f33 815 auxbuffer[15] = 9;
mbedalvaro 40:3ba2b0ea9f33 816 auxbuffer[16] = 6;
mbedalvaro 40:3ba2b0ea9f33 817 auxbuffer[17] = 9;
mbedalvaro 40:3ba2b0ea9f33 818 auxbuffer[18] = 5;
mbedalvaro 40:3ba2b0ea9f33 819 auxbuffer[19] = 9;
mbedalvaro 40:3ba2b0ea9f33 820 auxbuffer[20] = 7;
mbedalvaro 40:3ba2b0ea9f33 821 auxbuffer[21] = 9;
mbedalvaro 40:3ba2b0ea9f33 822 auxbuffer[22] = 8;
mbedalvaro 40:3ba2b0ea9f33 823 auxbuffer[23] = 9;
mbedalvaro 40:3ba2b0ea9f33 824 auxbuffer[24] = 9;
mbedalvaro 40:3ba2b0ea9f33 825 auxbuffer[25] = 8;
mbedalvaro 40:3ba2b0ea9f33 826 auxbuffer[26] = 9;
mbedalvaro 40:3ba2b0ea9f33 827 auxbuffer[27] = 6;
mbedalvaro 40:3ba2b0ea9f33 828 auxbuffer[28] = 8;
mbedalvaro 40:3ba2b0ea9f33 829 auxbuffer[29] = 4;
mbedalvaro 40:3ba2b0ea9f33 830 auxbuffer[30] = 6;
mbedalvaro 40:3ba2b0ea9f33 831 auxbuffer[31] = 3;
mbedalvaro 40:3ba2b0ea9f33 832 auxbuffer[32] = 4;
mbedalvaro 40:3ba2b0ea9f33 833 auxbuffer[33] = 3;
mbedalvaro 40:3ba2b0ea9f33 834 auxbuffer[34] = 2;
mbedalvaro 40:3ba2b0ea9f33 835 auxbuffer[35] = 4;
mbedalvaro 40:3ba2b0ea9f33 836 auxbuffer[36] = 1;
mbedalvaro 40:3ba2b0ea9f33 837 auxbuffer[37] = 5;
mbedalvaro 40:3ba2b0ea9f33 838 break;
mbedalvaro 40:3ba2b0ea9f33 839
mbedalvaro 40:3ba2b0ea9f33 840 //trajectory '4'
mbedalvaro 40:3ba2b0ea9f33 841 //nb position: '('
mbedalvaro 40:3ba2b0ea9f33 842 //HDHHHLHPELBHFHJH
mbedalvaro 40:3ba2b0ea9f33 843 case '4':
mbedalvaro 40:3ba2b0ea9f33 844 numpoints = 8;
mbedalvaro 40:3ba2b0ea9f33 845 auxbuffer[0] = 7;
mbedalvaro 40:3ba2b0ea9f33 846 auxbuffer[1] = 3;
mbedalvaro 40:3ba2b0ea9f33 847 auxbuffer[2] = 7;
mbedalvaro 40:3ba2b0ea9f33 848 auxbuffer[3] = 7;
mbedalvaro 40:3ba2b0ea9f33 849 auxbuffer[4] = 7;
mbedalvaro 40:3ba2b0ea9f33 850 auxbuffer[5] = 11;
mbedalvaro 40:3ba2b0ea9f33 851 auxbuffer[6] = 7;
mbedalvaro 40:3ba2b0ea9f33 852 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 853 auxbuffer[8] = 4;
mbedalvaro 40:3ba2b0ea9f33 854 auxbuffer[9] = 11;
mbedalvaro 40:3ba2b0ea9f33 855 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 856 auxbuffer[11] = 7;
mbedalvaro 40:3ba2b0ea9f33 857 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 858 auxbuffer[13] = 7;
mbedalvaro 40:3ba2b0ea9f33 859 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 860 auxbuffer[15] = 7;
mbedalvaro 40:3ba2b0ea9f33 861 break;
mbedalvaro 40:3ba2b0ea9f33 862
mbedalvaro 40:3ba2b0ea9f33 863 //trajectory '5'
mbedalvaro 40:3ba2b0ea9f33 864 //nb position: '/'
mbedalvaro 40:3ba2b0ea9f33 865 //JPFPCPBLBJEKGKIJJHJGIEGDEDCEBF
mbedalvaro 40:3ba2b0ea9f33 866 case '5':
mbedalvaro 40:3ba2b0ea9f33 867 numpoints = 15;
mbedalvaro 40:3ba2b0ea9f33 868 auxbuffer[0] = 9;
mbedalvaro 40:3ba2b0ea9f33 869 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 870 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 871 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 872 auxbuffer[4] = 2;
mbedalvaro 40:3ba2b0ea9f33 873 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 874 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 875 auxbuffer[7] = 11;
mbedalvaro 40:3ba2b0ea9f33 876 auxbuffer[8] = 1;
mbedalvaro 40:3ba2b0ea9f33 877 auxbuffer[9] = 9;
mbedalvaro 40:3ba2b0ea9f33 878 auxbuffer[10] = 4;
mbedalvaro 40:3ba2b0ea9f33 879 auxbuffer[11] = 10;
mbedalvaro 40:3ba2b0ea9f33 880 auxbuffer[12] = 6;
mbedalvaro 40:3ba2b0ea9f33 881 auxbuffer[13] = 10;
mbedalvaro 40:3ba2b0ea9f33 882 auxbuffer[14] = 8;
mbedalvaro 40:3ba2b0ea9f33 883 auxbuffer[15] = 9;
mbedalvaro 40:3ba2b0ea9f33 884 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 885 auxbuffer[17] = 7;
mbedalvaro 40:3ba2b0ea9f33 886 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 887 auxbuffer[19] = 6;
mbedalvaro 40:3ba2b0ea9f33 888 auxbuffer[20] = 8;
mbedalvaro 40:3ba2b0ea9f33 889 auxbuffer[21] = 4;
mbedalvaro 40:3ba2b0ea9f33 890 auxbuffer[22] = 6;
mbedalvaro 40:3ba2b0ea9f33 891 auxbuffer[23] = 3;
mbedalvaro 40:3ba2b0ea9f33 892 auxbuffer[24] = 4;
mbedalvaro 40:3ba2b0ea9f33 893 auxbuffer[25] = 3;
mbedalvaro 40:3ba2b0ea9f33 894 auxbuffer[26] = 2;
mbedalvaro 40:3ba2b0ea9f33 895 auxbuffer[27] = 4;
mbedalvaro 40:3ba2b0ea9f33 896 auxbuffer[28] = 1;
mbedalvaro 40:3ba2b0ea9f33 897 auxbuffer[29] = 5;
mbedalvaro 40:3ba2b0ea9f33 898 break;
mbedalvaro 40:3ba2b0ea9f33 899
mbedalvaro 40:3ba2b0ea9f33 900 //trajectory '6'
mbedalvaro 40:3ba2b0ea9f33 901 //nb position: '3'
mbedalvaro 40:3ba2b0ea9f33 902 //JNIOGPEPCOBMBJBGCEEDGDIEJGJHIJGKEKCJBH
mbedalvaro 40:3ba2b0ea9f33 903 case '6':
mbedalvaro 40:3ba2b0ea9f33 904 numpoints = 19;
mbedalvaro 40:3ba2b0ea9f33 905 auxbuffer[0] = 9;
mbedalvaro 40:3ba2b0ea9f33 906 auxbuffer[1] = 13;
mbedalvaro 40:3ba2b0ea9f33 907 auxbuffer[2] = 8;
mbedalvaro 40:3ba2b0ea9f33 908 auxbuffer[3] = 14;
mbedalvaro 40:3ba2b0ea9f33 909 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 910 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 911 auxbuffer[6] = 4;
mbedalvaro 40:3ba2b0ea9f33 912 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 913 auxbuffer[8] = 2;
mbedalvaro 40:3ba2b0ea9f33 914 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 915 auxbuffer[10] = 1;
mbedalvaro 40:3ba2b0ea9f33 916 auxbuffer[11] = 12;
mbedalvaro 40:3ba2b0ea9f33 917 auxbuffer[12] = 1;
mbedalvaro 40:3ba2b0ea9f33 918 auxbuffer[13] = 9;
mbedalvaro 40:3ba2b0ea9f33 919 auxbuffer[14] = 1;
mbedalvaro 40:3ba2b0ea9f33 920 auxbuffer[15] = 6;
mbedalvaro 40:3ba2b0ea9f33 921 auxbuffer[16] = 2;
mbedalvaro 40:3ba2b0ea9f33 922 auxbuffer[17] = 4;
mbedalvaro 40:3ba2b0ea9f33 923 auxbuffer[18] = 4;
mbedalvaro 40:3ba2b0ea9f33 924 auxbuffer[19] = 3;
mbedalvaro 40:3ba2b0ea9f33 925 auxbuffer[20] = 6;
mbedalvaro 40:3ba2b0ea9f33 926 auxbuffer[21] = 3;
mbedalvaro 40:3ba2b0ea9f33 927 auxbuffer[22] = 8;
mbedalvaro 40:3ba2b0ea9f33 928 auxbuffer[23] = 4;
mbedalvaro 40:3ba2b0ea9f33 929 auxbuffer[24] = 9;
mbedalvaro 40:3ba2b0ea9f33 930 auxbuffer[25] = 6;
mbedalvaro 40:3ba2b0ea9f33 931 auxbuffer[26] = 9;
mbedalvaro 40:3ba2b0ea9f33 932 auxbuffer[27] = 7;
mbedalvaro 40:3ba2b0ea9f33 933 auxbuffer[28] = 8;
mbedalvaro 40:3ba2b0ea9f33 934 auxbuffer[29] = 9;
mbedalvaro 40:3ba2b0ea9f33 935 auxbuffer[30] = 6;
mbedalvaro 40:3ba2b0ea9f33 936 auxbuffer[31] = 10;
mbedalvaro 40:3ba2b0ea9f33 937 auxbuffer[32] = 4;
mbedalvaro 40:3ba2b0ea9f33 938 auxbuffer[33] = 10;
mbedalvaro 40:3ba2b0ea9f33 939 auxbuffer[34] = 2;
mbedalvaro 40:3ba2b0ea9f33 940 auxbuffer[35] = 9;
mbedalvaro 40:3ba2b0ea9f33 941 auxbuffer[36] = 1;
mbedalvaro 40:3ba2b0ea9f33 942 auxbuffer[37] = 7;
mbedalvaro 40:3ba2b0ea9f33 943 break;
mbedalvaro 40:3ba2b0ea9f33 944
mbedalvaro 40:3ba2b0ea9f33 945 //trajectory '7'
mbedalvaro 40:3ba2b0ea9f33 946 //nb position: '''
mbedalvaro 40:3ba2b0ea9f33 947 //BOBPFPJPHLFHDD
mbedalvaro 40:3ba2b0ea9f33 948 case '7':
mbedalvaro 40:3ba2b0ea9f33 949 numpoints = 7;
mbedalvaro 40:3ba2b0ea9f33 950 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 951 auxbuffer[1] = 14;
mbedalvaro 40:3ba2b0ea9f33 952 auxbuffer[2] = 1;
mbedalvaro 40:3ba2b0ea9f33 953 auxbuffer[3] = 15;
mbedalvaro 40:3ba2b0ea9f33 954 auxbuffer[4] = 5;
mbedalvaro 40:3ba2b0ea9f33 955 auxbuffer[5] = 15;
mbedalvaro 40:3ba2b0ea9f33 956 auxbuffer[6] = 9;
mbedalvaro 40:3ba2b0ea9f33 957 auxbuffer[7] = 15;
mbedalvaro 40:3ba2b0ea9f33 958 auxbuffer[8] = 7;
mbedalvaro 40:3ba2b0ea9f33 959 auxbuffer[9] = 11;
mbedalvaro 40:3ba2b0ea9f33 960 auxbuffer[10] = 5;
mbedalvaro 40:3ba2b0ea9f33 961 auxbuffer[11] = 7;
mbedalvaro 40:3ba2b0ea9f33 962 auxbuffer[12] = 3;
mbedalvaro 40:3ba2b0ea9f33 963 auxbuffer[13] = 3;
mbedalvaro 40:3ba2b0ea9f33 964 break;
mbedalvaro 40:3ba2b0ea9f33 965
mbedalvaro 40:3ba2b0ea9f33 966 //trajectory '8'
mbedalvaro 40:3ba2b0ea9f33 967 //nb position: '4'
mbedalvaro 40:3ba2b0ea9f33 968 //EJCKBMCOEPGPIOJMIKGJEJCIBGCEEDGDIEJGIIGJ
mbedalvaro 40:3ba2b0ea9f33 969 case '8':
mbedalvaro 40:3ba2b0ea9f33 970 numpoints = 20;
mbedalvaro 40:3ba2b0ea9f33 971 auxbuffer[0] = 4;
mbedalvaro 40:3ba2b0ea9f33 972 auxbuffer[1] = 9;
mbedalvaro 40:3ba2b0ea9f33 973 auxbuffer[2] = 2;
mbedalvaro 40:3ba2b0ea9f33 974 auxbuffer[3] = 10;
mbedalvaro 40:3ba2b0ea9f33 975 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 976 auxbuffer[5] = 12;
mbedalvaro 40:3ba2b0ea9f33 977 auxbuffer[6] = 2;
mbedalvaro 40:3ba2b0ea9f33 978 auxbuffer[7] = 14;
mbedalvaro 40:3ba2b0ea9f33 979 auxbuffer[8] = 4;
mbedalvaro 40:3ba2b0ea9f33 980 auxbuffer[9] = 15;
mbedalvaro 40:3ba2b0ea9f33 981 auxbuffer[10] = 6;
mbedalvaro 40:3ba2b0ea9f33 982 auxbuffer[11] = 15;
mbedalvaro 40:3ba2b0ea9f33 983 auxbuffer[12] = 8;
mbedalvaro 40:3ba2b0ea9f33 984 auxbuffer[13] = 14;
mbedalvaro 40:3ba2b0ea9f33 985 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 986 auxbuffer[15] = 12;
mbedalvaro 40:3ba2b0ea9f33 987 auxbuffer[16] = 8;
mbedalvaro 40:3ba2b0ea9f33 988 auxbuffer[17] = 10;
mbedalvaro 40:3ba2b0ea9f33 989 auxbuffer[18] = 6;
mbedalvaro 40:3ba2b0ea9f33 990 auxbuffer[19] = 9;
mbedalvaro 40:3ba2b0ea9f33 991 auxbuffer[20] = 4;
mbedalvaro 40:3ba2b0ea9f33 992 auxbuffer[21] = 9;
mbedalvaro 40:3ba2b0ea9f33 993 auxbuffer[22] = 2;
mbedalvaro 40:3ba2b0ea9f33 994 auxbuffer[23] = 8;
mbedalvaro 40:3ba2b0ea9f33 995 auxbuffer[24] = 1;
mbedalvaro 40:3ba2b0ea9f33 996 auxbuffer[25] = 6;
mbedalvaro 40:3ba2b0ea9f33 997 auxbuffer[26] = 2;
mbedalvaro 40:3ba2b0ea9f33 998 auxbuffer[27] = 4;
mbedalvaro 40:3ba2b0ea9f33 999 auxbuffer[28] = 4;
mbedalvaro 40:3ba2b0ea9f33 1000 auxbuffer[29] = 3;
mbedalvaro 40:3ba2b0ea9f33 1001 auxbuffer[30] = 6;
mbedalvaro 40:3ba2b0ea9f33 1002 auxbuffer[31] = 3;
mbedalvaro 40:3ba2b0ea9f33 1003 auxbuffer[32] = 8;
mbedalvaro 40:3ba2b0ea9f33 1004 auxbuffer[33] = 4;
mbedalvaro 40:3ba2b0ea9f33 1005 auxbuffer[34] = 9;
mbedalvaro 40:3ba2b0ea9f33 1006 auxbuffer[35] = 6;
mbedalvaro 40:3ba2b0ea9f33 1007 auxbuffer[36] = 8;
mbedalvaro 40:3ba2b0ea9f33 1008 auxbuffer[37] = 8;
mbedalvaro 40:3ba2b0ea9f33 1009 auxbuffer[38] = 6;
mbedalvaro 40:3ba2b0ea9f33 1010 auxbuffer[39] = 9;
mbedalvaro 40:3ba2b0ea9f33 1011 break;
mbedalvaro 40:3ba2b0ea9f33 1012
mbedalvaro 40:3ba2b0ea9f33 1013 //trajectory '9'
mbedalvaro 40:3ba2b0ea9f33 1014 //nb position: '4'
mbedalvaro 40:3ba2b0ea9f33 1015 //BGCEEDGDIEJGJIJKJMIOGPEPCOBMBLCJEIGIIJJL
mbedalvaro 40:3ba2b0ea9f33 1016 case '9':
mbedalvaro 40:3ba2b0ea9f33 1017 numpoints = 20;
mbedalvaro 40:3ba2b0ea9f33 1018 auxbuffer[0] = 1;
mbedalvaro 40:3ba2b0ea9f33 1019 auxbuffer[1] = 6;
mbedalvaro 40:3ba2b0ea9f33 1020 auxbuffer[2] = 2;
mbedalvaro 40:3ba2b0ea9f33 1021 auxbuffer[3] = 4;
mbedalvaro 40:3ba2b0ea9f33 1022 auxbuffer[4] = 4;
mbedalvaro 40:3ba2b0ea9f33 1023 auxbuffer[5] = 3;
mbedalvaro 40:3ba2b0ea9f33 1024 auxbuffer[6] = 6;
mbedalvaro 40:3ba2b0ea9f33 1025 auxbuffer[7] = 3;
mbedalvaro 40:3ba2b0ea9f33 1026 auxbuffer[8] = 8;
mbedalvaro 40:3ba2b0ea9f33 1027 auxbuffer[9] = 4;
mbedalvaro 40:3ba2b0ea9f33 1028 auxbuffer[10] = 9;
mbedalvaro 40:3ba2b0ea9f33 1029 auxbuffer[11] = 6;
mbedalvaro 40:3ba2b0ea9f33 1030 auxbuffer[12] = 9;
mbedalvaro 40:3ba2b0ea9f33 1031 auxbuffer[13] = 8;
mbedalvaro 40:3ba2b0ea9f33 1032 auxbuffer[14] = 9;
mbedalvaro 40:3ba2b0ea9f33 1033 auxbuffer[15] = 10;
mbedalvaro 40:3ba2b0ea9f33 1034 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 1035 auxbuffer[17] = 12;
mbedalvaro 40:3ba2b0ea9f33 1036 auxbuffer[18] = 8;
mbedalvaro 40:3ba2b0ea9f33 1037 auxbuffer[19] = 14;
mbedalvaro 40:3ba2b0ea9f33 1038 auxbuffer[20] = 6;
mbedalvaro 40:3ba2b0ea9f33 1039 auxbuffer[21] = 15;
mbedalvaro 40:3ba2b0ea9f33 1040 auxbuffer[22] = 4;
mbedalvaro 40:3ba2b0ea9f33 1041 auxbuffer[23] = 15;
mbedalvaro 40:3ba2b0ea9f33 1042 auxbuffer[24] = 2;
mbedalvaro 40:3ba2b0ea9f33 1043 auxbuffer[25] = 14;
mbedalvaro 40:3ba2b0ea9f33 1044 auxbuffer[26] = 1;
mbedalvaro 40:3ba2b0ea9f33 1045 auxbuffer[27] = 12;
mbedalvaro 40:3ba2b0ea9f33 1046 auxbuffer[28] = 1;
mbedalvaro 40:3ba2b0ea9f33 1047 auxbuffer[29] = 11;
mbedalvaro 40:3ba2b0ea9f33 1048 auxbuffer[30] = 2;
mbedalvaro 40:3ba2b0ea9f33 1049 auxbuffer[31] = 9;
mbedalvaro 40:3ba2b0ea9f33 1050 auxbuffer[32] = 4;
mbedalvaro 40:3ba2b0ea9f33 1051 auxbuffer[33] = 8;
mbedalvaro 40:3ba2b0ea9f33 1052 auxbuffer[34] = 6;
mbedalvaro 40:3ba2b0ea9f33 1053 auxbuffer[35] = 8;
mbedalvaro 40:3ba2b0ea9f33 1054 auxbuffer[36] = 8;
mbedalvaro 40:3ba2b0ea9f33 1055 auxbuffer[37] = 9;
mbedalvaro 40:3ba2b0ea9f33 1056 auxbuffer[38] = 9;
mbedalvaro 40:3ba2b0ea9f33 1057 auxbuffer[39] = 11;
mbedalvaro 40:3ba2b0ea9f33 1058 break;
mbedalvaro 40:3ba2b0ea9f33 1059
mbedalvaro 40:3ba2b0ea9f33 1060 //trajectory '0'
mbedalvaro 40:3ba2b0ea9f33 1061 //nb position: '-'
mbedalvaro 40:3ba2b0ea9f33 1062 //EPCNBKBICFEDGDIFJIJKINGPEP
mbedalvaro 40:3ba2b0ea9f33 1063 case '0':
mbedalvaro 40:3ba2b0ea9f33 1064 numpoints = 13;
mbedalvaro 40:3ba2b0ea9f33 1065 auxbuffer[0] = 4;
mbedalvaro 40:3ba2b0ea9f33 1066 auxbuffer[1] = 15;
mbedalvaro 40:3ba2b0ea9f33 1067 auxbuffer[2] = 2;
mbedalvaro 40:3ba2b0ea9f33 1068 auxbuffer[3] = 13;
mbedalvaro 40:3ba2b0ea9f33 1069 auxbuffer[4] = 1;
mbedalvaro 40:3ba2b0ea9f33 1070 auxbuffer[5] = 10;
mbedalvaro 40:3ba2b0ea9f33 1071 auxbuffer[6] = 1;
mbedalvaro 40:3ba2b0ea9f33 1072 auxbuffer[7] = 8;
mbedalvaro 40:3ba2b0ea9f33 1073 auxbuffer[8] = 2;
mbedalvaro 40:3ba2b0ea9f33 1074 auxbuffer[9] = 5;
mbedalvaro 40:3ba2b0ea9f33 1075 auxbuffer[10] = 4;
mbedalvaro 40:3ba2b0ea9f33 1076 auxbuffer[11] = 3;
mbedalvaro 40:3ba2b0ea9f33 1077 auxbuffer[12] = 6;
mbedalvaro 40:3ba2b0ea9f33 1078 auxbuffer[13] = 3;
mbedalvaro 40:3ba2b0ea9f33 1079 auxbuffer[14] = 8;
mbedalvaro 40:3ba2b0ea9f33 1080 auxbuffer[15] = 5;
mbedalvaro 40:3ba2b0ea9f33 1081 auxbuffer[16] = 9;
mbedalvaro 40:3ba2b0ea9f33 1082 auxbuffer[17] = 8;
mbedalvaro 40:3ba2b0ea9f33 1083 auxbuffer[18] = 9;
mbedalvaro 40:3ba2b0ea9f33 1084 auxbuffer[19] = 10;
mbedalvaro 40:3ba2b0ea9f33 1085 auxbuffer[20] = 8;
mbedalvaro 40:3ba2b0ea9f33 1086 auxbuffer[21] = 13;
mbedalvaro 40:3ba2b0ea9f33 1087 auxbuffer[22] = 6;
mbedalvaro 40:3ba2b0ea9f33 1088 auxbuffer[23] = 15;
mbedalvaro 40:3ba2b0ea9f33 1089 auxbuffer[24] = 4;
mbedalvaro 40:3ba2b0ea9f33 1090 auxbuffer[25] = 15;
mbedalvaro 40:3ba2b0ea9f33 1091 break;
mbedalvaro 40:3ba2b0ea9f33 1092
mbedalvaro 40:3ba2b0ea9f33 1093 //trajectory 'a'
mbedalvaro 40:3ba2b0ea9f33 1094 //nb position: '6'
mbedalvaro 40:3ba2b0ea9f33 1095 //FMFMGMHNHOGPFPEOENFMFKHLFKDJFKFIIHGFIHFIGGED
mbedalvaro 40:3ba2b0ea9f33 1096 case 'a':
mbedalvaro 40:3ba2b0ea9f33 1097 numpoints = 22;
mbedalvaro 40:3ba2b0ea9f33 1098 auxbuffer[0] = 5;
mbedalvaro 40:3ba2b0ea9f33 1099 auxbuffer[1] = 12;
mbedalvaro 40:3ba2b0ea9f33 1100 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 1101 auxbuffer[3] = 12;
mbedalvaro 40:3ba2b0ea9f33 1102 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 1103 auxbuffer[5] = 12;
mbedalvaro 40:3ba2b0ea9f33 1104 auxbuffer[6] = 7;
mbedalvaro 40:3ba2b0ea9f33 1105 auxbuffer[7] = 13;
mbedalvaro 40:3ba2b0ea9f33 1106 auxbuffer[8] = 7;
mbedalvaro 40:3ba2b0ea9f33 1107 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 1108 auxbuffer[10] = 6;
mbedalvaro 40:3ba2b0ea9f33 1109 auxbuffer[11] = 15;
mbedalvaro 40:3ba2b0ea9f33 1110 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 1111 auxbuffer[13] = 15;
mbedalvaro 40:3ba2b0ea9f33 1112 auxbuffer[14] = 4;
mbedalvaro 40:3ba2b0ea9f33 1113 auxbuffer[15] = 14;
mbedalvaro 40:3ba2b0ea9f33 1114 auxbuffer[16] = 4;
mbedalvaro 40:3ba2b0ea9f33 1115 auxbuffer[17] = 13;
mbedalvaro 40:3ba2b0ea9f33 1116 auxbuffer[18] = 5;
mbedalvaro 40:3ba2b0ea9f33 1117 auxbuffer[19] = 12;
mbedalvaro 40:3ba2b0ea9f33 1118 auxbuffer[20] = 5;
mbedalvaro 40:3ba2b0ea9f33 1119 auxbuffer[21] = 10;
mbedalvaro 40:3ba2b0ea9f33 1120 auxbuffer[22] = 7;
mbedalvaro 40:3ba2b0ea9f33 1121 auxbuffer[23] = 11;
mbedalvaro 40:3ba2b0ea9f33 1122 auxbuffer[24] = 5;
mbedalvaro 40:3ba2b0ea9f33 1123 auxbuffer[25] = 10;
mbedalvaro 40:3ba2b0ea9f33 1124 auxbuffer[26] = 3;
mbedalvaro 40:3ba2b0ea9f33 1125 auxbuffer[27] = 9;
mbedalvaro 40:3ba2b0ea9f33 1126 auxbuffer[28] = 5;
mbedalvaro 40:3ba2b0ea9f33 1127 auxbuffer[29] = 10;
mbedalvaro 40:3ba2b0ea9f33 1128 auxbuffer[30] = 5;
mbedalvaro 40:3ba2b0ea9f33 1129 auxbuffer[31] = 8;
mbedalvaro 40:3ba2b0ea9f33 1130 auxbuffer[32] = 8;
mbedalvaro 40:3ba2b0ea9f33 1131 auxbuffer[33] = 7;
mbedalvaro 40:3ba2b0ea9f33 1132 auxbuffer[34] = 6;
mbedalvaro 40:3ba2b0ea9f33 1133 auxbuffer[35] = 5;
mbedalvaro 40:3ba2b0ea9f33 1134 auxbuffer[36] = 8;
mbedalvaro 40:3ba2b0ea9f33 1135 auxbuffer[37] = 7;
mbedalvaro 40:3ba2b0ea9f33 1136 auxbuffer[38] = 5;
mbedalvaro 40:3ba2b0ea9f33 1137 auxbuffer[39] = 8;
mbedalvaro 40:3ba2b0ea9f33 1138 auxbuffer[40] = 6;
mbedalvaro 40:3ba2b0ea9f33 1139 auxbuffer[41] = 6;
mbedalvaro 40:3ba2b0ea9f33 1140 auxbuffer[42] = 4;
mbedalvaro 40:3ba2b0ea9f33 1141 auxbuffer[43] = 3;
mbedalvaro 40:3ba2b0ea9f33 1142 break;
mbedalvaro 40:3ba2b0ea9f33 1143
mbedalvaro 40:3ba2b0ea9f33 1144 //trajectory 'b'
mbedalvaro 40:3ba2b0ea9f33 1145 //nb position: '6'
mbedalvaro 40:3ba2b0ea9f33 1146 //FMFMGMHNHOGPFPEOENFMFKHKFKDKFKFHHIFFHIFHHFFD
mbedalvaro 40:3ba2b0ea9f33 1147 case 'b':
mbedalvaro 40:3ba2b0ea9f33 1148 numpoints = 22;
mbedalvaro 40:3ba2b0ea9f33 1149 auxbuffer[0] = 5;
mbedalvaro 40:3ba2b0ea9f33 1150 auxbuffer[1] = 12;
mbedalvaro 40:3ba2b0ea9f33 1151 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 1152 auxbuffer[3] = 12;
mbedalvaro 40:3ba2b0ea9f33 1153 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 1154 auxbuffer[5] = 12;
mbedalvaro 40:3ba2b0ea9f33 1155 auxbuffer[6] = 7;
mbedalvaro 40:3ba2b0ea9f33 1156 auxbuffer[7] = 13;
mbedalvaro 40:3ba2b0ea9f33 1157 auxbuffer[8] = 7;
mbedalvaro 40:3ba2b0ea9f33 1158 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 1159 auxbuffer[10] = 6;
mbedalvaro 40:3ba2b0ea9f33 1160 auxbuffer[11] = 15;
mbedalvaro 40:3ba2b0ea9f33 1161 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 1162 auxbuffer[13] = 15;
mbedalvaro 40:3ba2b0ea9f33 1163 auxbuffer[14] = 4;
mbedalvaro 40:3ba2b0ea9f33 1164 auxbuffer[15] = 14;
mbedalvaro 40:3ba2b0ea9f33 1165 auxbuffer[16] = 4;
mbedalvaro 40:3ba2b0ea9f33 1166 auxbuffer[17] = 13;
mbedalvaro 40:3ba2b0ea9f33 1167 auxbuffer[18] = 5;
mbedalvaro 40:3ba2b0ea9f33 1168 auxbuffer[19] = 12;
mbedalvaro 40:3ba2b0ea9f33 1169 auxbuffer[20] = 5;
mbedalvaro 40:3ba2b0ea9f33 1170 auxbuffer[21] = 10;
mbedalvaro 40:3ba2b0ea9f33 1171 auxbuffer[22] = 7;
mbedalvaro 40:3ba2b0ea9f33 1172 auxbuffer[23] = 10;
mbedalvaro 40:3ba2b0ea9f33 1173 auxbuffer[24] = 5;
mbedalvaro 40:3ba2b0ea9f33 1174 auxbuffer[25] = 10;
mbedalvaro 40:3ba2b0ea9f33 1175 auxbuffer[26] = 3;
mbedalvaro 40:3ba2b0ea9f33 1176 auxbuffer[27] = 10;
mbedalvaro 40:3ba2b0ea9f33 1177 auxbuffer[28] = 5;
mbedalvaro 40:3ba2b0ea9f33 1178 auxbuffer[29] = 10;
mbedalvaro 40:3ba2b0ea9f33 1179 auxbuffer[30] = 5;
mbedalvaro 40:3ba2b0ea9f33 1180 auxbuffer[31] = 7;
mbedalvaro 40:3ba2b0ea9f33 1181 auxbuffer[32] = 7;
mbedalvaro 40:3ba2b0ea9f33 1182 auxbuffer[33] = 8;
mbedalvaro 40:3ba2b0ea9f33 1183 auxbuffer[34] = 5;
mbedalvaro 40:3ba2b0ea9f33 1184 auxbuffer[35] = 5;
mbedalvaro 40:3ba2b0ea9f33 1185 auxbuffer[36] = 7;
mbedalvaro 40:3ba2b0ea9f33 1186 auxbuffer[37] = 8;
mbedalvaro 40:3ba2b0ea9f33 1187 auxbuffer[38] = 5;
mbedalvaro 40:3ba2b0ea9f33 1188 auxbuffer[39] = 7;
mbedalvaro 40:3ba2b0ea9f33 1189 auxbuffer[40] = 7;
mbedalvaro 40:3ba2b0ea9f33 1190 auxbuffer[41] = 5;
mbedalvaro 40:3ba2b0ea9f33 1191 auxbuffer[42] = 5;
mbedalvaro 40:3ba2b0ea9f33 1192 auxbuffer[43] = 3;
mbedalvaro 40:3ba2b0ea9f33 1193 break;
mbedalvaro 40:3ba2b0ea9f33 1194 //trajectory 'c'
mbedalvaro 40:3ba2b0ea9f33 1195 //nb position: '6'
mbedalvaro 40:3ba2b0ea9f33 1196 //FMFMGMHNHOGPFPEOENFMFKHJFKDLFKFIIHGEIHFIGHEE
mbedalvaro 40:3ba2b0ea9f33 1197 case 'c':
mbedalvaro 40:3ba2b0ea9f33 1198 numpoints = 22;
mbedalvaro 40:3ba2b0ea9f33 1199 auxbuffer[0] = 5;
mbedalvaro 40:3ba2b0ea9f33 1200 auxbuffer[1] = 12;
mbedalvaro 40:3ba2b0ea9f33 1201 auxbuffer[2] = 5;
mbedalvaro 40:3ba2b0ea9f33 1202 auxbuffer[3] = 12;
mbedalvaro 40:3ba2b0ea9f33 1203 auxbuffer[4] = 6;
mbedalvaro 40:3ba2b0ea9f33 1204 auxbuffer[5] = 12;
mbedalvaro 40:3ba2b0ea9f33 1205 auxbuffer[6] = 7;
mbedalvaro 40:3ba2b0ea9f33 1206 auxbuffer[7] = 13;
mbedalvaro 40:3ba2b0ea9f33 1207 auxbuffer[8] = 7;
mbedalvaro 40:3ba2b0ea9f33 1208 auxbuffer[9] = 14;
mbedalvaro 40:3ba2b0ea9f33 1209 auxbuffer[10] = 6;
mbedalvaro 40:3ba2b0ea9f33 1210 auxbuffer[11] = 15;
mbedalvaro 40:3ba2b0ea9f33 1211 auxbuffer[12] = 5;
mbedalvaro 40:3ba2b0ea9f33 1212 auxbuffer[13] = 15;
mbedalvaro 40:3ba2b0ea9f33 1213 auxbuffer[14] = 4;
mbedalvaro 40:3ba2b0ea9f33 1214 auxbuffer[15] = 14;
mbedalvaro 40:3ba2b0ea9f33 1215 auxbuffer[16] = 4;
mbedalvaro 40:3ba2b0ea9f33 1216 auxbuffer[17] = 13;
mbedalvaro 40:3ba2b0ea9f33 1217 auxbuffer[18] = 5;
mbedalvaro 40:3ba2b0ea9f33 1218 auxbuffer[19] = 12;
mbedalvaro 40:3ba2b0ea9f33 1219 auxbuffer[20] = 5;
mbedalvaro 40:3ba2b0ea9f33 1220 auxbuffer[21] = 10;
mbedalvaro 40:3ba2b0ea9f33 1221 auxbuffer[22] = 7;
mbedalvaro 40:3ba2b0ea9f33 1222 auxbuffer[23] = 9;
mbedalvaro 40:3ba2b0ea9f33 1223 auxbuffer[24] = 5;
mbedalvaro 40:3ba2b0ea9f33 1224 auxbuffer[25] = 10;
mbedalvaro 40:3ba2b0ea9f33 1225 auxbuffer[26] = 3;
mbedalvaro 40:3ba2b0ea9f33 1226 auxbuffer[27] = 11;
mbedalvaro 40:3ba2b0ea9f33 1227 auxbuffer[28] = 5;
mbedalvaro 40:3ba2b0ea9f33 1228 auxbuffer[29] = 10;
mbedalvaro 40:3ba2b0ea9f33 1229 auxbuffer[30] = 5;
mbedalvaro 40:3ba2b0ea9f33 1230 auxbuffer[31] = 8;
mbedalvaro 40:3ba2b0ea9f33 1231 auxbuffer[32] = 8;
mbedalvaro 40:3ba2b0ea9f33 1232 auxbuffer[33] = 7;
mbedalvaro 40:3ba2b0ea9f33 1233 auxbuffer[34] = 6;
mbedalvaro 40:3ba2b0ea9f33 1234 auxbuffer[35] = 4;
mbedalvaro 40:3ba2b0ea9f33 1235 auxbuffer[36] = 8;
mbedalvaro 40:3ba2b0ea9f33 1236 auxbuffer[37] = 7;
mbedalvaro 40:3ba2b0ea9f33 1237 auxbuffer[38] = 5;
mbedalvaro 40:3ba2b0ea9f33 1238 auxbuffer[39] = 8;
mbedalvaro 40:3ba2b0ea9f33 1239 auxbuffer[40] = 6;
mbedalvaro 40:3ba2b0ea9f33 1240 auxbuffer[41] = 7;
mbedalvaro 40:3ba2b0ea9f33 1241 auxbuffer[42] = 4;
mbedalvaro 40:3ba2b0ea9f33 1242 auxbuffer[43] = 4;
mbedalvaro 40:3ba2b0ea9f33 1243 break;
mbedalvaro 40:3ba2b0ea9f33 1244
mbedalvaro 40:3ba2b0ea9f33 1245 // ===== SPECIAL SYMBOLS ======
mbedalvaro 40:3ba2b0ea9f33 1246 case 's': // square
mbedalvaro 40:3ba2b0ea9f33 1247 numpoints = 5;
mbedalvaro 40:3ba2b0ea9f33 1248 auxbuffer[0]=0;
mbedalvaro 40:3ba2b0ea9f33 1249 auxbuffer[1]=0;
mbedalvaro 40:3ba2b0ea9f33 1250 auxbuffer[2]=15;
mbedalvaro 40:3ba2b0ea9f33 1251 auxbuffer[3]=0;
mbedalvaro 40:3ba2b0ea9f33 1252 auxbuffer[4]=15;
mbedalvaro 40:3ba2b0ea9f33 1253 auxbuffer[5]=15;
mbedalvaro 40:3ba2b0ea9f33 1254 auxbuffer[6]=0;
mbedalvaro 40:3ba2b0ea9f33 1255 auxbuffer[7]=15;
mbedalvaro 40:3ba2b0ea9f33 1256 auxbuffer[8]=0;
mbedalvaro 40:3ba2b0ea9f33 1257 auxbuffer[9]=0;
mbedalvaro 40:3ba2b0ea9f33 1258
mbedalvaro 40:3ba2b0ea9f33 1259
mbedalvaro 40:3ba2b0ea9f33 1260 break;
mbedalvaro 40:3ba2b0ea9f33 1261
mbedalvaro 40:3ba2b0ea9f33 1262 case 't': // special points
mbedalvaro 40:3ba2b0ea9f33 1263 numpoints = 4;
mbedalvaro 40:3ba2b0ea9f33 1264 auxbuffer[0]= -4.6256256e+003;
mbedalvaro 40:3ba2b0ea9f33 1265 auxbuffer[1]= -1.3709550e+002;
mbedalvaro 40:3ba2b0ea9f33 1266
mbedalvaro 40:3ba2b0ea9f33 1267 auxbuffer[2]= -1.3665857e+003;
mbedalvaro 40:3ba2b0ea9f33 1268 auxbuffer[3]= -1.1960430e+003;
mbedalvaro 40:3ba2b0ea9f33 1269
mbedalvaro 40:3ba2b0ea9f33 1270 auxbuffer[4]= 3.3537829e+002;
mbedalvaro 40:3ba2b0ea9f33 1271 auxbuffer[5]= 3.2966277e+003;
mbedalvaro 40:3ba2b0ea9f33 1272
mbedalvaro 40:3ba2b0ea9f33 1273 auxbuffer[6]= -2.7532264e+003;
mbedalvaro 40:3ba2b0ea9f33 1274 auxbuffer[7]= 4.6642570e+003;
mbedalvaro 40:3ba2b0ea9f33 1275
mbedalvaro 40:3ba2b0ea9f33 1276 break;
mbedalvaro 40:3ba2b0ea9f33 1277
mbedalvaro 40:3ba2b0ea9f33 1278 }
mbedalvaro 40:3ba2b0ea9f33 1279 return(numpoints);
mbedalvaro 40:3ba2b0ea9f33 1280 }
mbedalvaro 40:3ba2b0ea9f33 1281