![]() |
CAN Encoder Programming problem
we are designing a pivot drive system this year for our robot, however i am running into some problems with the code. We integrated the example CAN position.vi example from labview into teleop, however, when running the code, our AMS as514sb encoder will go to a certain value, then reset to 0. for example, if i set its position to 2 rotations, it may go to 1.78, then reset back to 0. this produces an effect of the motor continuously running, attempting to reach 2.00, but failing. interestingly, the encoder pulses seems to control the range of value we can move between before the value resets to zero. We are also running a US digital encoder to turn our wheels forward/back and we are having no problems with this encoder. i know the the AMS can utilize must higher pulses per minute than the US, but im not sure if that should effect the code.
|
Re: CAN Encoder Programming problem
The AS5145B is intended to be used as a rotational position encoder, not a quadrature encoder. How do you have it connected? How are you reading its value?
|
Re: CAN Encoder Programming problem
I'm from the same team as CrazyGamer and we are working together on this.
This is how we wired it: Spoiler for Wiring:
|
Re: CAN Encoder Programming problem
This is how we coded it:
Spoiler for code:
|
Re: CAN Encoder Programming problem
Quote:
You apparently have something connected to the "I" (index) pin of the Jaguar's encoder input. A signal on that pin will reset the count. Try just removing that connection and see if the count starts doing what you expect. |
Re: CAN Encoder Programming problem
Quote:
|
| All times are GMT -5. The time now is 12:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi