diff --git a/README.md b/README.md index 5a863e4..839277f 100644 --- a/README.md +++ b/README.md @@ -1 +1,17 @@ -# robot \ No newline at end of file +# 巡线 & 蓝牙控制机器人 + +## 功能 +1. 蓝牙实时控制 +2. 自动巡线 + + +## 目录结构 + +### core +主要实现代码(包括客户端和服务端)。 + +### raspberrypi l298n hc-02 +相关硬件文档与测试 + +### SerialRW +Windows 下串口通信工具 diff --git a/bt_control/client/BTRC/.gitignore b/core/client/BTRC/.gitignore similarity index 100% rename from bt_control/client/BTRC/.gitignore rename to core/client/BTRC/.gitignore diff --git a/bt_control/client/BTRC/.idea/codeStyles/Project.xml b/core/client/BTRC/.idea/codeStyles/Project.xml similarity index 100% rename from bt_control/client/BTRC/.idea/codeStyles/Project.xml rename to core/client/BTRC/.idea/codeStyles/Project.xml diff --git a/bt_control/client/BTRC/.idea/gradle.xml b/core/client/BTRC/.idea/gradle.xml similarity index 100% rename from bt_control/client/BTRC/.idea/gradle.xml rename to core/client/BTRC/.idea/gradle.xml diff --git a/bt_control/client/BTRC/.idea/misc.xml b/core/client/BTRC/.idea/misc.xml similarity index 100% rename from bt_control/client/BTRC/.idea/misc.xml rename to core/client/BTRC/.idea/misc.xml diff --git a/bt_control/client/BTRC/.idea/runConfigurations.xml b/core/client/BTRC/.idea/runConfigurations.xml similarity index 100% rename from bt_control/client/BTRC/.idea/runConfigurations.xml rename to core/client/BTRC/.idea/runConfigurations.xml diff --git a/bt_control/client/BTRC/app/.gitignore b/core/client/BTRC/app/.gitignore similarity index 100% rename from bt_control/client/BTRC/app/.gitignore rename to core/client/BTRC/app/.gitignore diff --git a/bt_control/client/BTRC/app/build.gradle b/core/client/BTRC/app/build.gradle similarity index 100% rename from bt_control/client/BTRC/app/build.gradle rename to core/client/BTRC/app/build.gradle diff --git a/bt_control/client/BTRC/app/proguard-rules.pro b/core/client/BTRC/app/proguard-rules.pro similarity index 100% rename from bt_control/client/BTRC/app/proguard-rules.pro rename to core/client/BTRC/app/proguard-rules.pro diff --git a/bt_control/client/BTRC/app/src/androidTest/java/com/lt/btrc/ExampleInstrumentedTest.java b/core/client/BTRC/app/src/androidTest/java/com/lt/btrc/ExampleInstrumentedTest.java similarity index 100% rename from bt_control/client/BTRC/app/src/androidTest/java/com/lt/btrc/ExampleInstrumentedTest.java rename to core/client/BTRC/app/src/androidTest/java/com/lt/btrc/ExampleInstrumentedTest.java diff --git a/bt_control/client/BTRC/app/src/main/AndroidManifest.xml b/core/client/BTRC/app/src/main/AndroidManifest.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/AndroidManifest.xml rename to core/client/BTRC/app/src/main/AndroidManifest.xml diff --git a/bt_control/client/BTRC/app/src/main/java/com/lt/btrc/MainActivity.java b/core/client/BTRC/app/src/main/java/com/lt/btrc/MainActivity.java similarity index 100% rename from bt_control/client/BTRC/app/src/main/java/com/lt/btrc/MainActivity.java rename to core/client/BTRC/app/src/main/java/com/lt/btrc/MainActivity.java diff --git a/bt_control/client/BTRC/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/core/client/BTRC/app/src/main/res/drawable-v24/ic_launcher_foreground.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to core/client/BTRC/app/src/main/res/drawable-v24/ic_launcher_foreground.xml diff --git a/bt_control/client/BTRC/app/src/main/res/drawable/ic_launcher_background.xml b/core/client/BTRC/app/src/main/res/drawable/ic_launcher_background.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/drawable/ic_launcher_background.xml rename to core/client/BTRC/app/src/main/res/drawable/ic_launcher_background.xml diff --git a/bt_control/client/BTRC/app/src/main/res/layout/activity_main.xml b/core/client/BTRC/app/src/main/res/layout/activity_main.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/layout/activity_main.xml rename to core/client/BTRC/app/src/main/res/layout/activity_main.xml diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/core/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml rename to core/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/core/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml rename to core/client/BTRC/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher.png b/core/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to core/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/core/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher_round.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher_round.png rename to core/client/BTRC/app/src/main/res/mipmap-hdpi/ic_launcher_round.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher.png b/core/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to core/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/core/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher_round.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher_round.png rename to core/client/BTRC/app/src/main/res/mipmap-mdpi/ic_launcher_round.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/core/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to core/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/core/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png rename to core/client/BTRC/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/core/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to core/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/core/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png rename to core/client/BTRC/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/core/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to core/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/bt_control/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/core/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png rename to core/client/BTRC/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png diff --git a/bt_control/client/BTRC/app/src/main/res/values/colors.xml b/core/client/BTRC/app/src/main/res/values/colors.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/values/colors.xml rename to core/client/BTRC/app/src/main/res/values/colors.xml diff --git a/bt_control/client/BTRC/app/src/main/res/values/strings.xml b/core/client/BTRC/app/src/main/res/values/strings.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/values/strings.xml rename to core/client/BTRC/app/src/main/res/values/strings.xml diff --git a/bt_control/client/BTRC/app/src/main/res/values/styles.xml b/core/client/BTRC/app/src/main/res/values/styles.xml similarity index 100% rename from bt_control/client/BTRC/app/src/main/res/values/styles.xml rename to core/client/BTRC/app/src/main/res/values/styles.xml diff --git a/bt_control/client/BTRC/app/src/test/java/com/lt/btrc/ExampleUnitTest.java b/core/client/BTRC/app/src/test/java/com/lt/btrc/ExampleUnitTest.java similarity index 100% rename from bt_control/client/BTRC/app/src/test/java/com/lt/btrc/ExampleUnitTest.java rename to core/client/BTRC/app/src/test/java/com/lt/btrc/ExampleUnitTest.java diff --git a/bt_control/client/BTRC/build.gradle b/core/client/BTRC/build.gradle similarity index 100% rename from bt_control/client/BTRC/build.gradle rename to core/client/BTRC/build.gradle diff --git a/bt_control/client/BTRC/gradle.properties b/core/client/BTRC/gradle.properties similarity index 100% rename from bt_control/client/BTRC/gradle.properties rename to core/client/BTRC/gradle.properties diff --git a/bt_control/client/BTRC/gradle/wrapper/gradle-wrapper.jar b/core/client/BTRC/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from bt_control/client/BTRC/gradle/wrapper/gradle-wrapper.jar rename to core/client/BTRC/gradle/wrapper/gradle-wrapper.jar diff --git a/bt_control/client/BTRC/gradle/wrapper/gradle-wrapper.properties b/core/client/BTRC/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from bt_control/client/BTRC/gradle/wrapper/gradle-wrapper.properties rename to core/client/BTRC/gradle/wrapper/gradle-wrapper.properties diff --git a/bt_control/client/BTRC/gradlew b/core/client/BTRC/gradlew similarity index 100% rename from bt_control/client/BTRC/gradlew rename to core/client/BTRC/gradlew diff --git a/bt_control/client/BTRC/gradlew.bat b/core/client/BTRC/gradlew.bat similarity index 100% rename from bt_control/client/BTRC/gradlew.bat rename to core/client/BTRC/gradlew.bat diff --git a/bt_control/client/BTRC/settings.gradle b/core/client/BTRC/settings.gradle similarity index 100% rename from bt_control/client/BTRC/settings.gradle rename to core/client/BTRC/settings.gradle diff --git a/bt_control/mcu/pi.c b/core/mcu/pi.c similarity index 100% rename from bt_control/mcu/pi.c rename to core/mcu/pi.c diff --git a/bt_control/mcu/protocol.h b/core/mcu/protocol.h similarity index 100% rename from bt_control/mcu/protocol.h rename to core/mcu/protocol.h