├── README.md ├── client ├── android │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── AndroidManifest.xml │ ├── gen │ │ └── com │ │ │ └── apiof │ │ │ └── picar │ │ │ ├── BuildConfig.java │ │ │ └── R.java │ ├── ic_launcher-web.png │ ├── libs │ │ └── android-support-v4.jar │ ├── proguard-project.txt │ ├── project.properties │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── layout │ │ │ └── activity_main.xml │ │ ├── menu │ │ │ └── main.xml │ │ ├── values-sw600dp │ │ │ └── dimens.xml │ │ ├── values-sw720dp-land │ │ │ └── dimens.xml │ │ ├── values-v11 │ │ │ └── styles.xml │ │ ├── values-v14 │ │ │ └── styles.xml │ │ └── values │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ └── src │ │ └── com │ │ └── apiof │ │ └── picar │ │ ├── HttpUtils.java │ │ ├── MainActivity.java │ │ └── WebUtils.java └── csharp │ ├── PiCar │ ├── App.config │ ├── HttpUtility.cs │ ├── MainFrm.Designer.cs │ ├── MainFrm.cs │ ├── MainFrm.resx │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── WangHeng.Org.PiCar.csproj │ └── icon.ico │ └── WangHeng.Org.PiCar.sln └── server ├── README.MD ├── pi_car ├── __init__.py ├── __init__.pyc ├── config.py ├── config.pyc ├── static │ ├── car.common.js │ ├── car.js │ ├── img │ │ ├── down.png │ │ ├── left.png │ │ ├── right.png │ │ ├── stop - 副本.png │ │ ├── stop.png │ │ └── up.png │ ├── jquery-1.11.2.min.js │ └── style.css ├── templates │ ├── home.html │ └── layout.html ├── views.py └── views.pyc └── server.py /README.md: -------------------------------------------------------------------------------- 1 | # My Pi Car 2 | =============================== 3 | Author: WangHeng 4 | 5 | Blog: http://wangheng.org 6 | #### LISENSE:GPL 7 | =============================== 8 | User Guide: 9 | 10 | 11 | > sudo python server.py 12 | 13 | 14 | then visit Pi_IP:2000 15 | -------------------------------------------------------------------------------- /client/android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /client/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | piCar 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /client/android/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/com/apiof/picar/MainActivity.java=UTF-8 3 | -------------------------------------------------------------------------------- /client/android/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /client/android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /client/android/gen/com/apiof/picar/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.apiof.picar; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /client/android/gen/com/apiof/picar/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.apiof.picar; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class dimen { 14 | /** Default screen margins, per the Android Design guidelines. 15 | 16 | Customize dimensions originally defined in res/values/dimens.xml (such as 17 | screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. 18 | 19 | */ 20 | public static final int activity_horizontal_margin=0x7f040000; 21 | public static final int activity_vertical_margin=0x7f040001; 22 | } 23 | public static final class drawable { 24 | public static final int ic_launcher=0x7f020000; 25 | } 26 | public static final class id { 27 | public static final int action_settings=0x7f080007; 28 | public static final int btnBackward=0x7f080001; 29 | public static final int btnForward=0x7f080005; 30 | public static final int btnStop=0x7f080002; 31 | public static final int btnTurnLeft=0x7f080003; 32 | public static final int btnTurnRight=0x7f080004; 33 | public static final int textView1=0x7f080000; 34 | public static final int textView2=0x7f080006; 35 | } 36 | public static final class layout { 37 | public static final int activity_main=0x7f030000; 38 | } 39 | public static final class menu { 40 | public static final int main=0x7f070000; 41 | } 42 | public static final class string { 43 | public static final int action_settings=0x7f050001; 44 | public static final int app_name=0x7f050000; 45 | public static final int car_contrl=0x7f050003; 46 | public static final int hello_world=0x7f050002; 47 | public static final int info=0x7f050009; 48 | public static final int strBackWard=0x7f050004; 49 | public static final int strForWard=0x7f050007; 50 | public static final int strStop=0x7f050006; 51 | public static final int strTurnLeft=0x7f050005; 52 | public static final int strTurnRight=0x7f050008; 53 | } 54 | public static final class style { 55 | /** 56 | Base application theme, dependent on API level. This theme is replaced 57 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 58 | 59 | 60 | Theme customizations available in newer API levels can go in 61 | res/values-vXX/styles.xml, while customizations related to 62 | backward-compatibility can go here. 63 | 64 | 65 | Base application theme for API 11+. This theme completely replaces 66 | AppBaseTheme from res/values/styles.xml on API 11+ devices. 67 | 68 | API 11 theme customizations can go here. 69 | 70 | Base application theme for API 14+. This theme completely replaces 71 | AppBaseTheme from BOTH res/values/styles.xml and 72 | res/values-v11/styles.xml on API 14+ devices. 73 | 74 | API 14 theme customizations can go here. 75 | */ 76 | public static final int AppBaseTheme=0x7f060000; 77 | /** Application theme. 78 | All customizations that are NOT specific to a particular API-level can go here. 79 | */ 80 | public static final int AppTheme=0x7f060001; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /client/android/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujiwh/piCar/343e8f735208dcc347ada00e20a97890853d148d/client/android/ic_launcher-web.png -------------------------------------------------------------------------------- /client/android/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujiwh/piCar/343e8f735208dcc347ada00e20a97890853d148d/client/android/libs/android-support-v4.jar -------------------------------------------------------------------------------- /client/android/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /client/android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | -------------------------------------------------------------------------------- /client/android/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujiwh/piCar/343e8f735208dcc347ada00e20a97890853d148d/client/android/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/android/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujiwh/piCar/343e8f735208dcc347ada00e20a97890853d148d/client/android/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/android/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujiwh/piCar/343e8f735208dcc347ada00e20a97890853d148d/client/android/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/android/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujiwh/piCar/343e8f735208dcc347ada00e20a97890853d148d/client/android/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /client/android/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 16 | 17 |