Skip to content

Commit

Permalink
added missing orientation to the imu data
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Jun 14, 2024
1 parent 5390e1a commit febe80d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uav_system_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ void UavSystemRos::publishIMU(const MultirotorModel::State &state) {
imu.linear_acceleration.y = acc(1);
imu.linear_acceleration.z = acc(2);

imu.orientation = mrs_lib::AttitudeConverter(state.R);

ph_imu_.publish(imu);
}

Expand Down

0 comments on commit febe80d

Please sign in to comment.