Skip to content
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

Motor no responding to teensy command #45

Open
YiKangOY opened this issue Aug 23, 2020 · 2 comments
Open

Motor no responding to teensy command #45

YiKangOY opened this issue Aug 23, 2020 · 2 comments

Comments

@YiKangOY
Copy link

Hello!
We have configure teensy and odrive by your code(The only difference is we use AS5047P with a cpr of 4000, which I assume won't impact main function. We also comment out //#define USE_XBEE so we are using computer serial.)

However, when we send command (ie. E, R)to teensy by Serial software on computer, the motor was not moving at all, it just stay in close_loop state.

In the function SendByte, a "uint8_t" byte(which equals to unsigned char) is transformed into a "char", I guess this leads to my problem because when byte>=128 it will be transform to a negative number but I have not idea if this really matters.
void ODriveArduino::SendByte(uint8_t byte) { serial_ << (char)byte; }
Thanks!

@akrolic
Copy link

akrolic commented Jun 29, 2021

Hey @lotharelvin,

Just wanted to see if you resolved this issue or not. We are running into this issue as well, but we believe that we have a work around to get open loop control working without any feedback for the theta and gamma values.

We will post an update here with the potential work around later today, but in the meantime if you can get back to us with your experience that would be helpful!

Cheers

@akrolic
Copy link

akrolic commented Jul 2, 2021

See this issue for details Nate711/StanfordDoggoProject#54
Let me know if you still have any questions I would be happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants