From 9737c426eb2e69b8ca4b8e4763ff8a0b566f2627 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 20 Jul 2015 17:26:37 -0700 Subject: [PATCH] SITL: Gazebo index out of bound - imu_orientation_quat[size=3] is fed to Quaternion[size=4] which causes an index-out-of-range problem --- libraries/SITL/SIM_Gazebo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SITL/SIM_Gazebo.h b/libraries/SITL/SIM_Gazebo.h index 0adc21902f..c542fa842c 100644 --- a/libraries/SITL/SIM_Gazebo.h +++ b/libraries/SITL/SIM_Gazebo.h @@ -54,7 +54,7 @@ private: double timestamp; double imu_angular_velocity_rpy[3]; double imu_linear_acceleration_xyz[3]; - double imu_orientation_quat[3]; + double imu_orientation_quat[4]; double velocity_xyz[3]; double position_xyz[3]; };