Downgrade LOG(WARNING) in trajectory code to prevent malloc's
Change-Id: I4acb96748b8ba21a93e0f773e9ea4121884ed233
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/frc971/control_loops/drivetrain/trajectory.cc b/frc971/control_loops/drivetrain/trajectory.cc
index a876ae3..163311a 100644
--- a/frc971/control_loops/drivetrain/trajectory.cc
+++ b/frc971/control_loops/drivetrain/trajectory.cc
@@ -196,13 +196,13 @@
<< min_friction_accel << " max fric accel " << max_friction_accel;
}
if (best_accel < min_voltage_accel || best_accel > max_voltage_accel) {
- LOG(WARNING) << "Viable friction limits and viable voltage limits do not "
- "overlap (x: "
- << x << ", v: " << v << ", backwards: " << backwards
- << ") best_accel = " << best_accel << ", min voltage "
- << min_voltage_accel << ", max voltage " << max_voltage_accel
- << " min friction " << min_friction_accel << " max friction "
- << max_friction_accel << ".";
+ VLOG(1) << "Viable friction limits and viable voltage limits do not "
+ "overlap (x: "
+ << x << ", v: " << v << ", backwards: " << backwards
+ << ") best_accel = " << best_accel << ", min voltage "
+ << min_voltage_accel << ", max voltage " << max_voltage_accel
+ << " min friction " << min_friction_accel << " max friction "
+ << max_friction_accel << ".";
// Don't actually do anything--this will just result in attempting to drive
// higher voltages thatn we have available. In practice, that'll probably