diff --git a/msg/vehicle_status_flags.msg b/msg/vehicle_status_flags.msg index d53d5e2ea6..b6c96e6334 100644 --- a/msg/vehicle_status_flags.msg +++ b/msg/vehicle_status_flags.msg @@ -12,7 +12,6 @@ bool condition_home_position_valid # indicates a valid home position (a valid bool condition_local_position_valid # set to true by the commander app if the quality of the local position estimate is good enough to use for navigation bool condition_local_velocity_valid # set to true by the commander app if the quality of the local horizontal velocity data is good enough to use for navigation bool condition_local_altitude_valid -bool condition_airspeed_valid # set to true by the commander app if there is a valid airspeed measurement available bool condition_power_input_valid # set if input power is valid bool circuit_breaker_engaged_power_check diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 2234c6f751..b73e205adf 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -97,7 +97,6 @@ #include #include #include -#include #include #include #include @@ -1439,11 +1438,6 @@ Commander::run() int land_detector_sub = orb_subscribe(ORB_ID(vehicle_land_detected)); land_detector.landed = true; - /* Subscribe to differential pressure topic */ - int diff_pres_sub = orb_subscribe(ORB_ID(differential_pressure)); - struct differential_pressure_s diff_pres; - memset(&diff_pres, 0, sizeof(diff_pres)); - /* Subscribe to command topic */ int cmd_sub = orb_subscribe(ORB_ID(vehicle_command)); @@ -1852,12 +1846,6 @@ Commander::run() } } - orb_check(diff_pres_sub, &updated); - - if (updated) { - orb_copy(ORB_ID(differential_pressure), diff_pres_sub, &diff_pres); - } - orb_check(system_power_sub, &updated); if (updated) { @@ -1893,8 +1881,6 @@ Commander::run() } } - check_valid(diff_pres.timestamp, DIFFPRESS_TIMEOUT, true, &(status_flags.condition_airspeed_valid), &status_changed); - /* update safety topic */ orb_check(safety_sub, &updated); @@ -3083,7 +3069,6 @@ Commander::run() px4_close(safety_sub); px4_close(cmd_sub); px4_close(subsys_sub); - px4_close(diff_pres_sub); px4_close(param_changed_sub); px4_close(battery_sub); px4_close(land_detector_sub);