kittcar / donkey

self driving car
MIT License
0 stars 0 forks source link

convert RC PWM signals to 0-100% duty cycle for drive motor #5

Open kiran-mohan opened 6 years ago

kiran-mohan commented 6 years ago

The existing donkey code controls the drive motor using RC PWM signals which have a 20ms period and the signal range is between 1ms to 2ms. The car purchased has the RC controller's receiver and ESC integrated into one circuit, and so, it is difficult to command RC PWM signals to the native ESC / RC receiver of the car. Hence, a separate ESC is going to be used which would take regular PWM signals with a range of 0-100% duty cycle.

The output from the donkey driver needs to be scaled appropriately.

griswaldbrooks commented 6 years ago

@kiran-mohan updated a config.py which allowed the robot to scale appropriately.