Welcome to Rider Pi Robot repository
1. Car forward and backward
Car forward and backward
1. Experimental purpose
Drive the car's forward and backward movement
2. Experimental path source code
Enter the car's system, end the car program, enter "ip (ip is the car's ip): 8888" in the browser, enter the password "yahboom"
Then log in
Enter Rider-pi_class/3.Base Motion/1. Front and rear movement of the car and run car_fb.ipynb.
3. Experimental phenomenon
After running the code, adjust the slider's speed to make the car move forward and backward.
The car cannot be in a stopped state (that is, not in a standing balance state), otherwise it cannot move.

4. Analysis of main source code parameters
# Forward and backward speeddef run_motor_x(value):g_car.rider_move_x(value,0)# Create sliders to control the motor Create four sliders to control the motorinteract(run_motor_x, \value=widgets.FloatSlider(min=-1.5,max=1.5,step=0.1,value=0));rider_move_x: This function controls the forward movement of the car, with a speed range of -1.5~1.5, negative numbers for backward movement, and positive numbers for forward movement.