#N canvas 57 434 568 394 10; #X text 191 61 <-packet starts with the letter 'R'; #X msg 139 88 0; #X obj 112 117 f 0; #X obj 112 12 inlet; #X obj 143 117 + 1; #X obj 112 142 pack 0 0; #X text 173 144 <- prefix each character with its index; #X obj 112 168 route 0 1 2 3; #X obj 130 206 - 48; #X obj 170 206 - 48; #X obj 210 206 - 48; #X obj 130 241 * 100; #X obj 170 241 * 10; #X obj 170 313 +; #X obj 155 333 +; #X obj 155 357 outlet; #X text 247 206 <- convert ASCII digit to integer; #X text 215 264 <- combine the decimal digits; #X obj 139 63 route 82; #X obj 112 37 t b f; #X text 112 -7 unpacks a stream of characters from a maxbotix sonar sensor; #X text 368 342 Martin Peach 2013_03_12; #X connect 1 0 2 1; #X connect 2 0 5 0; #X connect 2 0 4 0; #X connect 3 0 19 0; #X connect 4 0 2 1; #X connect 5 0 7 0; #X connect 7 1 8 0; #X connect 7 2 9 0; #X connect 7 3 10 0; #X connect 8 0 11 0; #X connect 9 0 12 0; #X connect 10 0 14 0; #X connect 11 0 13 1; #X connect 12 0 13 0; #X connect 13 0 14 1; #X connect 14 0 15 0; #X connect 18 0 1 0; #X connect 18 1 5 1; #X connect 19 0 2 0; #X connect 19 1 18 0;