Skip to content

The frontend of Peppa Car. 小車(jū)佩奇前端。

Notifications You must be signed in to change notification settings

POW48/PeppaCar-Frontend

Repository files navigation

Peppa Car

Peppa Car

The Frontend of Peppa Car 小車(jū)佩奇

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

WebSocket Packet Format

Gamepad Format

{
  "mode": "user|track|ball",
  "direction": 0,
  "speed": 8
}

P.S. mode is one of user, track or ball. Fields direction and speed are only displayed when mode is equal to user. direction is set to 0 to 359. And speed is in range of 0 to 10.

Sensor Status Format

{
  "type": "sensor",
  "data": {
    "xxsensor": 3.1415,
    "yysensor": 2.7182
  }
}

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

About

The frontend of Peppa Car. 小車(jū)佩奇前端。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published