AP_InertialSensor: params always use set method

This commit is contained in:
Iampete1 2022-07-05 04:08:56 +01:00 committed by Peter Hall
parent 3878e64f97
commit ea03ea320c
2 changed files with 2 additions and 2 deletions

View File

@ -1573,7 +1573,7 @@ AP_InertialSensor::_init_gyro()
_gyro_cal_ok[k] = true;
_gyro_offset[k] = new_gyro_offset[k];
#if HAL_INS_TEMPERATURE_CAL_ENABLE
caltemp_gyro[k] = 0.5 * (get_temperature(k) + start_temperature[k]);
caltemp_gyro[k].set(0.5 * (get_temperature(k) + start_temperature[k]));
#endif
}
}

View File

@ -56,7 +56,7 @@ void AP_InertialSensor::BatchSampler::init()
return;
}
_required_count -= _required_count % 32; // round down to nearest multiple of 32
_required_count.set(_required_count - (_required_count % 32)); // round down to nearest multiple of 32
const uint32_t total_allocation = 3*_required_count*sizeof(uint16_t);
GCS_SEND_TEXT(MAV_SEVERITY_DEBUG, "INS: alloc %u bytes for ISB (free=%u)", (unsigned int)total_allocation, (unsigned int)hal.util->available_memory());