-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imu_rate vs imu_sample_rate #81
Comments
Personally, I would set |
It seems I misunderstood the imu_sample_rate variable then. I tried setting my imu_rate to 125 and imu_sample_rate to -1, but discovered that the driver will not output any IMU data in that case. However, if I set the imu_rate to 100 it outputs as expected. Do you know why that might be? |
It's possible something is going wrong that's preventing the driver from auto-detecting the IMU type. After it's done configuring the device ( So, things to check are:
In the meantime, the STIM300 is supposed to run at 125 Hz, so try manually setting that for both |
According to the logs the IMU is being detected correctly as STIM300 and the imu_sample_rate is being set to 125. But for some reason setting imu_rate to 25 or 125 will result in no output. However, setting imu_rate to 50 or 100 will work just fine. Is there a particular reason you recommended using some fraction of the IMU rate as opposed to 100 or 50? |
Hmm, it seems strange that 25 or 125 wouldn't work... but if 50 and 100 work, that's probably fine. I feel like if the IMU is running at 125 Hz and the Novatel is publishing logs at 100 Hz, if you were to plot those values on a graph, you'd see some discontinuities in the output at points where the Novatel ends up aggregating multiple logs together, although that may not actually matter in practice. |
What is the proper usage of the imu_rate and imu_sample_rate variables?
imu_sample_rate changes the hardware configuration, so I would expect imu_rate to be the reporting rate of the ROS driver. However, if I set imu_rate to 50 and imu_sample_rate to 100 the reported values seem to double from what is reported when both parameters are equal. For exampl if the parameters are (100,100) I might get a yaw rate of 1.0 but if the parameters are (50, 100) I get a yaw rate of 2.0. Is this expected behavior?
I am using a Novatel PwrPak7 with SPAN configuration with STIM300 Imu
The text was updated successfully, but these errors were encountered: