Skip to content

Commit

Permalink
fix: 修复imu赋值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Apr 23, 2024
1 parent 9c99f41 commit bdcd96f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
- [feat]修改断线重连检测稳定性
- [feat]改用docker发布模式
- [fix]修复IMU赋值错误问题

版本说明:
- alpha:内部测试版本(不建议使用)
Expand Down
4 changes: 2 additions & 2 deletions src/fishbot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ void callback_sensor_publisher_timer_(rcl_timer_t *timer, int64_t last_call_time
imu_msg.header.stamp.nanosec = static_cast<uint32_t>((stamp % 1000) * 1e6); // 纳秒部分

imu_msg.angular_velocity.x = imu_data.angular_velocity.x;
imu_msg.angular_velocity.x = imu_data.angular_velocity.x;
imu_msg.angular_velocity.x = imu_data.angular_velocity.x;
imu_msg.angular_velocity.y = imu_data.angular_velocity.y;
imu_msg.angular_velocity.z = imu_data.angular_velocity.z;

imu_msg.linear_acceleration.x = imu_data.linear_acceleration.x;
imu_msg.linear_acceleration.y = imu_data.linear_acceleration.y;
Expand Down

0 comments on commit bdcd96f

Please sign in to comment.