AP_AHRS_MPU6000: cleaning up compiler warning due to unused yaw_deltat variable

This commit is contained in:
rmackay9 2012-07-28 16:23:25 +09:00
parent 07a8d0cc99
commit 9a558be53e

View File

@ -238,7 +238,6 @@ AP_AHRS_MPU6000::drift_correction_yaw(void)
float yaw_delta = 0;
bool new_value = false;
float yaw_error;
float yaw_deltat;
static float heading;
// we assume the DCM matrix is completely uncorrect for yaw
@ -259,7 +258,6 @@ AP_AHRS_MPU6000::drift_correction_yaw(void)
// if we have new compass data
if( _compass && _compass->use_for_yaw() ) {
if (_compass->last_update != _compass_last_update) {
yaw_deltat = (_compass->last_update - _compass_last_update) * 1.0e-6;
_compass_last_update = _compass->last_update;
heading = _compass->calculate_heading(_dcm_matrix);
if( !_have_initial_yaw ) {