Skip to content

Commit

Permalink
updated pre-flight check
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Jan 29, 2024
1 parent e5c3406 commit fe2096c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/automatic_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,7 @@ bool AutomaticStart::preflighCheckHeight(void) {
// | -------------------- do we have data? -------------------- |

if (!sh_distance_sensor_.hasMsg()) {
ROS_WARN_THROTTLE(1.0, "[AutomaticStart]: missing distance sensor data for preflight height check");
return false;
return true;
}

double height = sh_distance_sensor_.getMsg()->range;
Expand Down Expand Up @@ -921,8 +920,7 @@ bool AutomaticStart::preflighCheckGyro(void) {
// | -------------------- do we have data? -------------------- |

if (!sh_imu_.hasMsg()) {
ROS_WARN_THROTTLE(1.0, "[AutomaticStart]: missing imu data for preflight gyro check");
return false;
return true;
}

auto gyros = sh_imu_.getMsg()->angular_velocity;
Expand Down

0 comments on commit fe2096c

Please sign in to comment.