INS_HIL: init members to resolve compiler warnings

This commit is contained in:
Randy Mackay 2014-08-13 22:59:22 +09:00
parent 534922adc3
commit 0e7cbd28c8

View File

@ -4,7 +4,11 @@
#include <AP_HAL.h>
const extern AP_HAL::HAL& hal;
AP_InertialSensor_HIL::AP_InertialSensor_HIL() : AP_InertialSensor() {
AP_InertialSensor_HIL::AP_InertialSensor_HIL() :
AP_InertialSensor(),
_sample_period_usec(0),
_last_sample_usec(0)
{
_accel[0] = Vector3f(0, 0, -GRAVITY_MSS);
}