comparison shore/shore.ino @ 2:7d4ec58da1d8

nuke some more debugging
author Daniel O'Connor <darius@dons.net.au>
date Sat, 11 Jul 2015 15:34:59 +0930
parents fe0a2f223e10
children d25e14956c65
comparison
equal deleted inserted replaced
1:6f1cd84f8e23 2:7d4ec58da1d8
103 rdir = rint < 0 ? 0 : 1; 103 rdir = rint < 0 ? 0 : 1;
104 rint = pgm_read_byte_near(log_lookup + abs(rint)); 104 rint = pgm_read_byte_near(log_lookup + abs(rint));
105 vdir = vint < 0 ? 0 : 1; 105 vdir = vint < 0 ? 0 : 1;
106 vint = pgm_read_byte_near(log_lookup + abs(vint)); 106 vint = pgm_read_byte_near(log_lookup + abs(vint));
107 107
108 #if 0
109 Serial.print("l = "); Serial.print(l); Serial.print(" "); Serial.print(lint); Serial.print(" "); Serial.print(ldir);
110 Serial.print(" r = "); Serial.print(r); Serial.print(" "); Serial.print(rint); Serial.print(" "); Serial.print(r);
111 Serial.print(" v = "); Serial.print(vint); Serial.print(" "); Serial.println(vdir);
112 #else
113 Serial.print("L:"); 108 Serial.print("L:");
114 Serial.print(lint * (ldir == 0 ? -1 : 1)); 109 Serial.print(lint * (ldir == 0 ? -1 : 1));
115 Serial.print(" R:"); 110 Serial.print(" R:");
116 Serial.print(rint * (rdir == 0 ? -1 : 1)); 111 Serial.print(rint * (rdir == 0 ? -1 : 1));
117 Serial.print(" V:"); 112 Serial.print(" V:");
118 Serial.print(vint * (vdir == 0 ? -1 : 1)); 113 Serial.print(vint * (vdir == 0 ? -1 : 1));
119 Serial.println(); 114 Serial.println();
120 #endif
121 115
122 snprintf(lcdbuf, sizeof(lcdbuf) - 1, "L%c%3dR%c%3dV%c%3d", ldir == 0 ? '-' : '+', lint, 116 snprintf(lcdbuf, sizeof(lcdbuf) - 1, "L%c%3dR%c%3dV%c%3d", ldir == 0 ? '-' : '+', lint,
123 rdir == 0 ? '-' : '+', rint, vdir == 0 ? '-' : '+', vint); 117 rdir == 0 ? '-' : '+', rint, vdir == 0 ? '-' : '+', vint);
124 lcd.setCursor(0, 0); 118 lcd.setCursor(0, 0);
125 lcd.print(lcdbuf); 119 lcd.print(lcdbuf);