Increased shoot action verbosity to aid debugging.
Change-Id: I78c03c62c7600f105cc7e90ea7eaab9e36dac7dc
diff --git a/frc971/actions/shoot_action.cc b/frc971/actions/shoot_action.cc
index 1d3b4a1..fa2afdf 100644
--- a/frc971/actions/shoot_action.cc
+++ b/frc971/actions/shoot_action.cc
@@ -114,29 +114,25 @@
(::std::abs(control_loops::claw_queue_group.status->separation -
control_loops::claw_queue_group.goal->separation_angle) <
0.4);
- if (!ans) {
- LOG(INFO, "Claw is %sready zeroed %d bottom_velocity %f bottom %f sep %f\n",
- ans ? "" : "not ", control_loops::claw_queue_group.status->zeroed,
- ::std::abs(control_loops::claw_queue_group.status->bottom_velocity),
- ::std::abs(control_loops::claw_queue_group.status->bottom -
- control_loops::claw_queue_group.goal->bottom_angle),
- ::std::abs(control_loops::claw_queue_group.status->separation -
- control_loops::claw_queue_group.goal->separation_angle));
- }
+ LOG(DEBUG, "Claw is %sready zeroed %d bottom_velocity %f bottom %f sep %f\n",
+ ans ? "" : "not ", control_loops::claw_queue_group.status->zeroed,
+ ::std::abs(control_loops::claw_queue_group.status->bottom_velocity),
+ ::std::abs(control_loops::claw_queue_group.status->bottom -
+ control_loops::claw_queue_group.goal->bottom_angle),
+ ::std::abs(control_loops::claw_queue_group.status->separation -
+ control_loops::claw_queue_group.goal->separation_angle));
return ans;
}
bool ShooterIsReady() {
control_loops::shooter_queue_group.goal.FetchLatest();
- if (control_loops::shooter_queue_group.status->ready) {
- LOG(INFO, "Power error is %f - %f -> %f, ready %d\n",
- control_loops::shooter_queue_group.status->hard_stop_power,
- control_loops::shooter_queue_group.goal->shot_power,
- ::std::abs(control_loops::shooter_queue_group.status->hard_stop_power -
- control_loops::shooter_queue_group.goal->shot_power),
- control_loops::shooter_queue_group.status->ready);
- }
+ LOG(DEBUG, "Power error is %f - %f -> %f, ready %d\n",
+ control_loops::shooter_queue_group.status->hard_stop_power,
+ control_loops::shooter_queue_group.goal->shot_power,
+ ::std::abs(control_loops::shooter_queue_group.status->hard_stop_power -
+ control_loops::shooter_queue_group.goal->shot_power),
+ control_loops::shooter_queue_group.status->ready);
return (::std::abs(
control_loops::shooter_queue_group.status->hard_stop_power -
control_loops::shooter_queue_group.goal->shot_power) < 1.0) &&