Display has_piece on the webpage
Change-Id: I81ff1c7a821e55c35207613f0045582f5ecb6175
diff --git a/y2019/joystick_reader.cc b/y2019/joystick_reader.cc
index 4b0a04b..cd87bf8 100644
--- a/y2019/joystick_reader.cc
+++ b/y2019/joystick_reader.cc
@@ -287,6 +287,7 @@
last_release_button_press_ = monotonic_now;
}
+ LOG(INFO, "has_piece: %d\n", superstructure_queue.status->has_piece);
if (data.IsPressed(kSuctionBall)) {
grab_piece_ = true;
} else if (data.IsPressed(kSuctionHatch)) {
@@ -296,6 +297,7 @@
data.IsPressed(kReleaseButtonBoard) ||
!superstructure_queue.status->has_piece) {
grab_piece_ = false;
+ LOG(INFO, "releasing due to other thing\n");
}
if (data.IsPressed(kRocketBackwardUnpressed)) {
@@ -447,6 +449,7 @@
data.IsPressed(kRelease)) ||
data.IsPressed(kReleaseButtonBoard)) {
grab_piece_ = false;
+ LOG(INFO, "Releasing due to button\n");
}
if (switch_ball_) {