@@ -21,21 +21,22 @@ void loop() {
2121 updated = tof.update_rois ();
2222
2323 if (updated) {
24+ /*
2425 Serial.println(" ");
2526 Serial.print("TOP=");
26- Serial.println (tof.top );
27+ Serial.println(tof.getTop() );
2728 Serial.print("BOT=");
28- Serial.println (tof.bottom );
29+ Serial.println(tof.getBottom() );
2930 Serial.print("LEFT=");
30- Serial.println (tof.left );
31+ Serial.println(tof.getLeft() );
3132 Serial.print("RIGHT=");
32- Serial.println (tof.right );
33+ Serial.println(tof.getRight() );
3334 Serial.print("CLEFT=");
34- Serial.println (tof.center_left );
35+ Serial.println(tof.getCenterLeft() );
3536 Serial.print("CRIGHT=");
36- Serial.println (tof.center_right );
37+ Serial.println(tof.getCenterRight() );
3738 Serial.print("CENTER=");
38- Serial.println (tof.center );
39+ Serial.println(tof.getCenter() );
3940 Serial.print("LEFT_MIN=");
4041 Serial.println(tof.get_min_range_left_mm());
4142 Serial.print("RIGHT_MIN=");
@@ -46,7 +47,24 @@ void loop() {
4647 Serial.println(tof.get_min_range_center_right_mm());
4748 Serial.print("CENTER_MIN=");
4849 Serial.println(tof.get_min_range_center_mm());
50+ */
51+ Serial.print (" \t " );
52+ Serial.print (tof.getLeft ());
53+ Serial.print (" \t " );
54+ Serial.print (tof.getLeftCenter ());
55+ Serial.print (" \t " );
56+ Serial.print (tof.getCenter ());
57+ Serial.print (" \t " );
58+ Serial.print (tof.getRightCenter ());
59+ Serial.print (" \t " );
60+ Serial.print (tof.getRight ());
61+ Serial.print (" \t " );
62+ Serial.print (tof.getTop ());
63+ Serial.print (" \t " );
64+ Serial.print (tof.getBottom ());
65+ Serial.print (" \n " );
4966 }
67+
5068
5169 delay (1000 );
5270}
0 commit comments