Skip to content

Commit 96c20c1

Browse files
committed
linting
1 parent 244f17c commit 96c20c1

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/software/ai/navigator/trajectory/trajectory.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,5 @@ class Trajectory
6767
* equal
6868
* @return True if the trajectories are equal, false otherwise
6969
*/
70-
virtual bool equals(const Trajectory<P, V, A>& other,
71-
double threshold) const = 0;
70+
virtual bool equals(const Trajectory<P, V, A>& other, double threshold) const = 0;
7271
};

src/software/embedded/primitive_executor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void PrimitiveExecutor::updatePrimitive(const TbotsProto::Primitive& primitive_m
3636

3737
if (is_linear_traj_new)
3838
{
39-
trajectory_path_ = new_trajectory_path;
39+
trajectory_path_ = new_trajectory_path;
4040
time_since_linear_trajectory_creation_ = Duration::fromSeconds(0);
4141
position_controller_.reset();
4242
}

src/software/embedded/robot_localizer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void RobotLocalizer::update(const VisionData& data)
148148
// All history predates the sample, or is exactly at the same time.
149149
// No need to rollback, just apply to the current state.
150150
updateFilterWithVision(data.position, data.orientation);
151-
history.clear(); // Safe to clear, since all history is older than current state
151+
history.clear(); // Safe to clear, since all history is older than current state
152152
return;
153153
}
154154

@@ -188,7 +188,8 @@ void RobotLocalizer::update(const VisionData& data)
188188
filter_.update(update.measurement);
189189
}
190190

191-
// IMPORTANT: Update the history with the recomputed state so future rollbacks are correct
191+
// IMPORTANT: Update the history with the recomputed state so future rollbacks are
192+
// correct
192193
it->state_estimate = filter_.state_estimate;
193194
it->state_covariance = filter_.state_covariance;
194195
}

src/software/field_tests/field_test_fixture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ def field_test_runner():
449449
# connect the keyboard estop toggle to the key event if needed
450450
if estop_mode == EstopMode.KEYBOARD_ESTOP:
451451
tscope.keyboard_estop_shortcut.activated.connect(
452-
rc_friendly.toggle_keyboard_estop
453-
)
452+
rc_friendly.toggle_keyboard_estop
453+
)
454454
# we call this method to enable estop automatically when a field test starts
455455
rc_friendly.toggle_keyboard_estop()
456456
logger.warning(

src/software/simulated_tests/simulated_test_fixture.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ def run_test(
316316
"""
317317
params = params or []
318318
ag_always_validation_sequence_set = ag_always_validation_sequence_set or [[]]
319-
ag_eventually_validation_sequence_set = ag_eventually_validation_sequence_set or [[]]
319+
ag_eventually_validation_sequence_set = (
320+
ag_eventually_validation_sequence_set or [[]]
321+
)
320322
sys.excepthook = self.excepthook
321323

322324
failed_tests = 0

0 commit comments

Comments
 (0)