Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rishiso committed Apr 28, 2024
1 parent f40ff1c commit 15be8b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions soccer/src/soccer/strategy/agent/position/solo_offense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ std::optional<RobotIntent> 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<int>(new_state)));
// SPDLOG_INFO("New State: {}", std::to_string(static_cast<int>(new_state)));
}
current_state_ = new_state;

Expand Down Expand Up @@ -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_) {
Expand Down

0 comments on commit 15be8b7

Please sign in to comment.