Skip to content

Web App

NRizzoInc edited this page Feb 17, 2021 · 6 revisions

Description

The web app is the main way for your client to receive commands to send to the raspberry pi's running server. To access the web app, start up the client and use the "Main Page" link printed in the terminal. You can set the port the web app opens on via command line.

The following are some instructions on how to use it:

Motors

  • The 'w', 'a', 's', 'd' (aka the wasd keys) are the easiest way to control the robots movement direction.
  • You can also use the mouse to control the motors via the d-pad at the top-right of the screen.

LEDs

  • Click the buttons on the screen to toggle the LEDs state. The color of the button corresponds to the color of the LED it controls
  • The number keys (1-4) can also be used to toggle the LEDs
    • 1 = red
    • 2 = yellow
    • 3 = green
    • 4 = blue

Camera

  • Shows a live stream of the camera's data
  • There is a pause/play button that can be used to control whether or not the camera is recording
  • If the client or web app disconnects, the video will automatically stop itself until connection is reestablished.

Servos (Rotates Camera)

  • The camera's field of view can be modified by moving the servos horizontally and vertically
  • The servos are controlled via the arrow keys
  • The degree that each servo moves from each arrow key can be changed by the slider labeled Servo Sensitivity
    • Be careful setting it to high values as you may damage the hardware by going to fast

Controller Example

image.png

Clone this wiki locally