Skip to content

UVic-Environmental-Engineering-Club/usv-server

Repository files navigation

UVic Environmental Engineering Club - usv-server

This is the software that is going to run inside a AWS. WebSocket (Socket.io) server that communicates between ground station and USV.

To work properly, this needs to run on conjunction with the other repos:

  • usv-pi
  • usv-ground-station

Project Structure for USV

Running the server

(Can be run without docker, just install yarn npm install -g yarn, yarn install, yarn dev)

  1. yarn dev
  • To run in dev
  1. yarn prettier --write .
  • run prettier to clean up code
  1. yarn start
  • To run as production

Note: yarn prettier to clean up code

Structure of Repo

This Socket.io project has two namespaces:

  1. usvNamespace
  2. groundstationNamespace

groundstationNamespace

  • On connection, it sends the current route that is set to update its state from before it was connected
  • The route can be modified by sending certain events:
    • adding points
    • deleting points
    • clearing the points etc..
  • Everytime the route is changed it is forwarded to any device connected to the usvNamespace

usvNamespace

  • On connection, it receives the current route
  • Receives all updates from groundstationNamespace
  • Forwards logs received from the usv to grounstationNamespace

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published