ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I fixed the problem. The SonarSRF08 library did not shift the I2C address right by one, so the addresses sent to Wire were wrong.
Wire.beginTransmission(address/2); Wire.requestFrom(address/2, numBytes);
Now the +4 added to the address in the example (calling program) is not needed. I am now able to add code to cycle through my three SRF08 Sonar modules.
Alan
2 | fixed addressing error |
I fixed the problem. The SonarSRF08 library did not shift the I2C address right by one, so the addresses sent to Wire were wrong.
Wire.beginTransmission(address/2); Wire.requestFrom(address/2, numBytes);
Now the +4 added to the address in the example (calling program) is not needed. I am have now able to add added code to cycle through my three SRF08 Sonar modules.
Alan