From 15be8b7390c75882bf0638cee087ed1b00fdcef6 Mon Sep 17 00:00:00 2001 From: rishiso Date: Sun, 28 Apr 2024 19:55:01 -0400 Subject: [PATCH] Style fixes --- soccer/src/soccer/strategy/agent/position/solo_offense.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/soccer/src/soccer/strategy/agent/position/solo_offense.cpp b/soccer/src/soccer/strategy/agent/position/solo_offense.cpp index 117432c06fe..3d288c8228b 100644 --- a/soccer/src/soccer/strategy/agent/position/solo_offense.cpp +++ b/soccer/src/soccer/strategy/agent/position/solo_offense.cpp @@ -12,7 +12,7 @@ std::optional SoloOffense::derived_get_task(RobotIntent intent) { // Get next state, and if different, reset clock State new_state = next_state(); if (new_state != current_state_) { - //SPDLOG_INFO("New State: {}", std::to_string(static_cast(new_state))); + // SPDLOG_INFO("New State: {}", std::to_string(static_cast(new_state))); } current_state_ = new_state; @@ -41,7 +41,9 @@ SoloOffense::State SoloOffense::next_state() { // SPDLOG_INFO("Closest dist: {}, i-{}", closest_dist, marking_id_); - if (closest_dist < (0.5) || field_dimensions_.their_goal_area().contains_point(current_point) || field_dimensions_.their_defense_area().contains_point(current_point) || !field_dimensions_.field_coordinates().contains_point(current_point)) { + if (closest_dist < (0.5) || field_dimensions_.their_goal_area().contains_point(current_point) || + field_dimensions_.their_defense_area().contains_point(current_point) || + !field_dimensions_.field_coordinates().contains_point(current_point)) { return MARKER; } switch (current_state_) {