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

RC-100::available() requires a warm up call. #333

Open
ruddyscent opened this issue Sep 5, 2023 · 0 comments
Open

RC-100::available() requires a warm up call. #333

ruddyscent opened this issue Sep 5, 2023 · 0 comments

Comments

@ruddyscent
Copy link

I am modifying the sketch for Turtlebot3-waffle to use four wheels. While working on it, I noticed that the RC-100 only recognizes the joystick intermittently. I found a workaround but couldn't find the cause, so I created this issue.

In my case, running rc100_.available() before the availability check solves the RC-100's responsiveness problem, like the following code snippet:

void Turtlebot3Controller::getRCdata(float *get_cmd_vel)
{
  ...
  rc100_.available(); // Warm up
  if (rc100_.available())
  {
    received_data = rc100_.readData();
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

1 participant