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
PigeonIMU.getAccumGyro breaks simulation #104
Comments
You could catch the exception or check whether you're in simulation. Currently almost none of the PigeonIMU simulation is actually implemented. Contributions welcome. |
Thank you all for working on this. We would love to be able to help, but as it stands now, we are only able to utilize these incredible libraries and are not yet strong enough coders to help develop them. We are not certain if we will be using accumulated gyro, fused heading, or Yaw, Pitch, Roll methods, but chances are good we will use the Yaw, Pitch, Roll. As such, the methods we will attempt to use are below.
If anyone attempts to add any of these, we could certainly test them. |
Before I saw your note, I read the documentation and guessed what someone might use. It seems to me that getYawPitchRoll is really what most people will want to use? ... or maybe fused heading, but that seems to be the same as yaw? It's not clear to me what the difference between the output of getYawPitchRoll and getAccumGyro and getFusedHeading are. I've implemented getYawPitchRoll and getFusedHeading because that's probably what one wants to use. Anyone who has actually used a pigeon please speak up and let me know if that's wrong. :) |
I think, judging from the documentation, that |
Our team is using getAccumGyro in place of getYawPitchRoll. We tried to use getYawPitchRoll at first on our bot, but for some reason the angles we were getting were not continuous. For example, when we would tilt our bot upward, it would go very slowly from 0 to 10 degrees, but very rapidly from 10 to 20 degrees. When we use getAccumGyro we don't have this problem. |
That is why I put all three. We know what we want to accomplish, similar to adam-mcdaniel, but the documentation on CTRE's end seems confusing as to which is best. To make matters a bit more confusing, they do not use the same terminology as some other IMUs (think Navx), so it will require some trial and error to get everything to work as we envision. |
Which axis of |
So, after reading through the manual, I noticed two things.
|
Hm, Z? Ok. |
I can't sim any of my robot code because of this function. I don't need it for the sim, but it would be a lot of work to rip out everything in my program just because it's not implemented in the sim. Is there a way to just force it to not throw an error, or to return [0, 0, 0] and print a warning or something of that nature?
The text was updated successfully, but these errors were encountered: