Browse Source

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
master
Tom Pittenger 10 years ago committed by Andrew Tridgell
parent
commit
9737c426eb
  1. 2
      libraries/SITL/SIM_Gazebo.h

2
libraries/SITL/SIM_Gazebo.h

@ -54,7 +54,7 @@ private: @@ -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];
};

Loading…
Cancel
Save