adafruit / Adafruit_CircuitPython_ServoKit

CircuitPython helper library for the PWM/Servo FeatherWing, Shield and Pi HAT kits.
MIT License
69 stars 29 forks source link

Delay using the I2C communication with ROS #39

Closed Ronak2904 closed 2 years ago

Ronak2904 commented 2 years ago

I am using the Adafruit ServoKit library to send the signals to move my steering and motor conroller on the RC Autonomous Car. The Hardware used is PCA9685. I am generating the signal commands using MATLAB and sending it using ROS. Then the signals are passed from ROS to the hardware by using the adafruit library using python as the coding language. There is a build up of a delay every time I try to send the messages using the above described method.

ladyada commented 2 years ago

yah sounds like you have a lot of stuff between your commands and the python code - thats whats going to cause the delay. join a robotic car forum for advice on how to speed it up!