User Manual

54
Code Explanation
There are two folders under /home/pi: SunFounder_PiCar for controlling motors and steering
and SunFounder_PiCar-V for pan/tilt and wireless control. Here look into the code of PiCar-V.
Since too many contents and instructions are involved in the code, we will not cover every
detail. For more knowledge about Python 2, Python 3, PyQt, Django, HTML, and CSS in the
programs, you can visit related websites or buy books to learn by yourself. In the following
part, we will go through the overall structure and the process in brief.
First, let’s check the files in the code folder:
.git is a hidden directory to store all the information of a Git repository; it's generated
automatically after you create the repository.
client is to store the code of the PC client.
datasheet stores the manual of some chips used in the hardware modules.
mjpg-streamer is an open source streaming media library, through which the data of the
camera is transferred.
Remote_control is to store the code of the web server; it controls the motor and servo of
the car based on the API request.
.gitignore records the requests of file types to be ignored when the Github repository is
synchronized.
i2cHelper.py is a Python script written by Python 2 to configure and detect the I2C
connection.
install_dependencies, an executable bash script for simple installation and environment
configuration.
LICENSE, as the name suggests, is a text file of GNU V2 license.
README.md and show record some information normally for statement and prompts.