Skip to content

Commit

Permalink
imu: fakeimu use wheel odometry to simulate vyaw
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Chou <[email protected]>
  • Loading branch information
hippo5329 committed May 8, 2024
1 parent d3c03d2 commit 51d48fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/src/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ void publishData()
{
odom_msg = odometry.getData();
imu_msg = imu.getData();
#ifdef USE_FAKE_IMU
imu_msg.angular_velocity.z = odom_msg.twist.twist.angular.z;
#endif
mag_msg = mag.getData();
#ifdef MAG_BIAS
const float mag_bias[3] = MAG_BIAS;
Expand Down

0 comments on commit 51d48fb

Please sign in to comment.