Remote to Cont Sample
This sample demonstrates transferring RC remote inputs to steering servo and ESC.
To run the sample:
Download the sample code from https://github.com/Turta-io/RCDriverHAT/blob/master/Samples/Python/Remote_to_Controller.py
Copy the sample code to a folder on the Raspberry Pi.
Open terminal, and then go to the folder you copied the sample.
Run the sample with the following command:
Sample Code
Remote_to_Controller.py
Result
When you run the sample, it reads PWM pulses from the receiver port, and generates pulses on control port accordingly. The example output should be like this:
To stop the Python script, just press CTRL + C.
Last updated