Browse Source

AP_AHRS: Suppress clearing non-trival type warning

mission-4.1.18
Michael du Breuil 6 years ago committed by WickedShell
parent
commit
4852562ec7
  1. 4
      libraries/AP_AHRS/AP_AHRS_DCM.cpp

4
libraries/AP_AHRS/AP_AHRS_DCM.cpp

@ -73,7 +73,7 @@ AP_AHRS_DCM::update(bool skip_ins_update)
// otherwise we may move too far. This happens when arming motors // otherwise we may move too far. This happens when arming motors
// in ArduCopter // in ArduCopter
if (delta_t > 0.2f) { if (delta_t > 0.2f) {
memset(&_ra_sum[0], 0, sizeof(_ra_sum)); memset((void *)&_ra_sum[0], 0, sizeof(_ra_sum));
_ra_deltat = 0; _ra_deltat = 0;
return; return;
} }
@ -890,7 +890,7 @@ AP_AHRS_DCM::drift_correction(float deltat)
} }
// zero our accumulator ready for the next GPS step // zero our accumulator ready for the next GPS step
memset(&_ra_sum[0], 0, sizeof(_ra_sum)); memset((void *)&_ra_sum[0], 0, sizeof(_ra_sum));
_ra_deltat = 0; _ra_deltat = 0;
_ra_sum_start = last_correction_time; _ra_sum_start = last_correction_time;

Loading…
Cancel
Save