Welcome to Rider Pi Robot repository
8. Read the battery level of the car
Read the battery level of the car
1. Experimental purpose
Realize the reading of the battery level of the car.
2. Experimental path source code
Enter the car 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 the path of Rider-pi_class/2.Basic Control Ooperations/8.Read the battery level of the car and run Read battery.ipynb.
3. Experimental phenomenon
After running the code, print out the battery power data

4. Main source code analysis
while True:vol = g_car.rider_read_battery()print("vol:"+str(vol)+"%")Read the battery power data through the API interface. And print it out.