Browse Source

fixed rebasing issues

sbg
Roman 9 years ago committed by Lorenz Meier
parent
commit
5abd11c6b9
  1. 8
      src/modules/ekf2/ekf2_main.cpp
  2. 1
      src/modules/sdlog2/sdlog2.c

8
src/modules/ekf2/ekf2_main.cpp

@ -357,14 +357,6 @@ void Ekf2::task_main() @@ -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;

1
src/modules/sdlog2/sdlog2.c

@ -1859,7 +1859,6 @@ int sdlog2_thread_main(int argc, char *argv[]) @@ -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)) {

Loading…
Cancel
Save