Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Nov 4, 2024
1 parent f4aded5 commit fc7ce5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/software/embedded/thunderloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ void Thunderloop::runLoop()
{
struct timespec time_since_prev_iter;
clock_gettime(CLOCK_MONOTONIC, &current_time);
ScopedTimespecTimer::timespecDiff(&current_time, &prev_iter_start_time, &time_since_prev_iter);
ScopedTimespecTimer::timespecDiff(&current_time, &prev_iter_start_time,
&time_since_prev_iter);
prev_iter_start_time = current_time;
{
// Wait until next shot
Expand Down Expand Up @@ -327,7 +328,8 @@ void Thunderloop::runLoop()
ScopedTimespecTimer timer(&poll_time);

ZoneNamedN(_tracy_motor_service, "Thunderloop: Poll MotorService", true);
double time_since_prev_iter_sec = getMilliseconds(time_since_prev_iter) * SECONDS_PER_MILLISECOND;
double time_since_prev_iter_sec =
getMilliseconds(time_since_prev_iter) * SECONDS_PER_MILLISECOND;

motor_status_ = motor_service_->poll(direct_control_.motor_control(),
time_since_prev_iter_sec);
Expand Down

0 comments on commit fc7ce5d

Please sign in to comment.