I am working with Lemlib and PROS. I would like to know how to set my vertical tracking to an encode as it looks like it is set to nullptr so it can use IMEs. Is this a problem and/or how do I change it.
The API says nothing about it.
Yes, I’m aware the comments in the code you copy/pasted from the configuration tutorial mentions IMEs. That is likely a typo on their end.
If you had read the OdomSensors constructor information in the API reference I sent, you would have seen information confirming that leaving it as nullptr is fine. For example, // no second vertical tracking wheel, set to nullptr
. Additionally, The variables are pointers so that they can be set to nullptr if they are not used
.
So, to give you the answer, if you are not using a second vertical tracking wheel, you should leave it as nullptr.
Please remember that the tutorials are there to help you understand how to use LemLib, not for you to copy paste and have everything work (because it won’t). Please use both the tutorials and API reference to actually understand the code you are writing, as if you don’t use them you are unlikely to be able to use LemLib to a decent degree of success, rather you will probably encounter many issues that are explained by the documentation.