Skip to content

Commit

Permalink
increase fail count
Browse files Browse the repository at this point in the history
Signed-off-by: dirksavage88 <[email protected]>
  • Loading branch information
dirksavage88 committed Aug 18, 2024
1 parent e6ffb69 commit 1e30e04
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ int SF45LaserSerial::collect()
/* read from the sensor (uart buffer) */
const hrt_abstime timestamp_sample = hrt_absolute_time();

if (_consecutive_fail_count > 15 && !_sensor_ready) {
if (_consecutive_fail_count > 50 && !_sensor_ready) {
PX4_ERR("Restarting the state machine");
_consecutive_fail_count = 0;
start();
}

Expand Down

0 comments on commit 1e30e04

Please sign in to comment.