diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 67ca59be3c..56a96fa6b1 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -357,14 +357,6 @@ void Ekf2::task_main() if(range_finder_updated) { orb_copy(ORB_ID(distance_sensor), _range_finder_sub, &range_finder); } - // Use the control model data to determine if the motors are armed as a surrogate for an on-ground vs in-air status - // TODO implement a global vehicle on-ground/in-air check - orb_check(_control_mode_sub, &control_mode_updated); - - if (control_mode_updated) { - orb_copy(ORB_ID(vehicle_control_mode), _control_mode_sub, &vehicle_control_mode); - _ekf->set_arm_status(vehicle_control_mode.flag_armed); - } // in replay mode we are getting the actual timestamp from the sensor topic hrt_abstime now = 0; diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index eb5005590f..483da02269 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1859,7 +1859,6 @@ int sdlog2_thread_main(int argc, char *argv[]) log_msg.body.log_AIRS.air_temperature_celsius = buf.airspeed.air_temperature_celsius; LOGBUFFER_WRITE_AND_COUNT(AIRS); } -<<<<<<< HEAD /* --- ESCs --- */ if (copy_if_updated(ORB_ID(esc_status), &subs.esc_sub, &buf.esc)) {