Welcome to Rider Pi Robot repository
4. Adjust car posture
Adjust car posture
1. Experimental purpose
Adjust the posture of the driving car
2. Experimental path source code
Enter the system of the car, end the car program, enter "ip (ip is the ip of the car): 8888" in the browser, enter the password "yahboom"
Then log in
Enter the path of Rider-pi_class/3.Base Motion/4. Adjust the left and right posture of the car and run car_attitude.ipynb.
3. Experimental phenomenon
After running the code, adjust the size of the slider to adjust the left and right posture of the car.
The car cannot be in a stopped state (that is, not in a standing balance state), otherwise it cannot move.
Rightmost:
Leftmost:

4. Analysis of main source code parameters
x#Adjust left and right posturesdef Set_roll(value):g_car.rider_roll(value)#Create sliders to control the motors Create four sliders to control the motorinteract(Set_roll, \value=widgets.IntSlider(min=-17,max=17,step=1,value=0));rider_roll: This function controls the car's posture, with a range of -17 ~ 17.