GithubHelp home page GithubHelp logo

cqu-bdsc / collision-warning-system Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 4.0 63.41 MB

Collision Warning System,DSRC

License: GNU General Public License v3.0

Java 76.02% C++ 20.44% QMake 0.16% Makefile 2.62% C 0.76%
qt5 android udp-socket demo offline-maps tracking-algorithm

collision-warning-system's Introduction

Collision-Warning-System

Collision Warning System,DSRC

进度更新

2018-7-13
概要设计说明书更新,版本V2.0

2018-7-19
详细设计说明书更新

2018-7-24
Android与PC通过UDP传输JSON完成

2018-7-27
PC端信息处理模块完成

2018-8-4
PC端信息显示模块完成

2018-8-5
Android信息采集模块完成

2018-8-15
模块整合完成, 项目模块化开发基本完成

2018-9-26 系统测试第二次实验,实验结果比较不错。

近期计划

  • 实现安卓端的警报提醒

  • 实际测试前对代码进行重构(UI 以及数据通信方面)

  • 购买实际测试前需要使用的设备

模块设计任务

周易

  • UDP通信模块
  • 信息处理模块
  • 信息显示模块

张浪

  • 信息采集模块
  • UDP通信模块
  • 显示界面模块

详细设计说明

项目架构

Github 协作开发

Branch 分支

  • master
    ---README.md 本文件
    ---DOC 说明文档
  • android
    ---APP 安卓项目
  • pc
    ---Server PC QT C++ 桌面UI项目

数据说明

Android端与PC端通信为传输以以下数据格式定义的JSON数据包。

JSON介绍:一种轻量级的数据交换格式。 易于人阅读和编写。同时也易于机器解析和生成。

Android端采集车辆信息后,将其打包成JSON数据包发送给PC,其采集与发送信息格式定义如下。

信息 Item Type 备注
ID “id” int 以本机的MAC地址进行Hash得到
时间戳 “timeStamp” long 单位:秒(s),以发送事件到1970年第一秒的秒数
速度 “speed” float 单位:km/h, 保留3位小数,车辆车头方向的速度信息
方向 “direction” float 车辆车头方向的朝向,0为正北,90正东,-90正西,180或-180正南
纬度 “lat” double 使用百度SDK获得GPS定位信息,保留3位
经度 “lon” double 同上
加速度 “acc” double 单位:m/s^2, 保留1位小数

PC端接收到Android端发送的JSON数据后,对其进行解析并进行处理,同时处理完成后将结果返回给Android端,其返回的信息格式定义如下。

信息 Item Type 备注
ID “id” int 以发送过来的车辆ID为准
碰撞时间 “time” int 单位:秒(s)
碰撞距离 “distance” double 单位:m,保留3位小数
警报 “warning” boolean True: 碰撞, False: 不碰撞
地图
碰撞轨迹

实验结果说明

时延

TIM图片20180927165006

丢包率

DSRC 丢包率:(1 - 520/537)*100% = 3.16% 4G 丢包率:0%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.