Skip to content

Commit

Permalink
Update src/modules/commander/HealthAndArmingChecks/checks/distanceSen…
Browse files Browse the repository at this point in the history
…sorChecks.cpp

Co-authored-by: Daniel Agar <[email protected]>
  • Loading branch information
AlexKlimaj and dagar authored May 26, 2024
1 parent 64ccbb4 commit f064874
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void DistanceSensorChecks::checkAndReport(const Context &context, Report &report

if (exists) {
distance_sensor_s dist_sens;
valid = _distance_sensor_sub[instance].copy(&dist_sens) && hrt_elapsed_time(&dist_sens.timestamp_sample) < 1_s;
valid = _distance_sensor_sub[instance].copy(&dist_sens) && hrt_elapsed_time(&dist_sens.timestamp) < 1_s;
reporter.setIsPresent(health_component_t::distance_sensor);
}

Expand Down

0 comments on commit f064874

Please sign in to comment.