Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Connection Protobufs #6

Open
Tyler-Lentz opened this issue Oct 18, 2023 · 0 comments
Open

Frontend Connection Protobufs #6

Tyler-Lentz opened this issue Oct 18, 2023 · 0 comments

Comments

@Tyler-Lentz
Copy link
Contributor

Tyler-Lentz commented Oct 18, 2023

🚀 Feature

We want to be able to send connection information from the frontend to the backend. Protobufs will help because we will use the protobuf to define the message passing format, then convert it into TypeScript interfaces for the frontend, and Go structs for the backend.

The extra details about the types and fields isn't necessary for this task, but I'm including them to give a sense of the wider system and to explain why they are important.

What we need:

Enums

  • enum ConnectionName

    • AntennaTracker
    • OnboardComputer
    • RadioMavlink
  • enum ConnectionType

    • Ethernet
    • Radio
    • Wifi

Messages

  • ConnectionStatus

    • name (ConnectionName)
    • isActive (boolean)
    • type (ConnectionType)
  • ATConnectionInfo

    • lat (floating point number)
      • (lat position of the antenna tracker)
    • lon (floating point number)
      • (lon position of the antenna tracker)
    • direction (floating point number)
      • note: this will either be degrees or radians (the antenna tracker team will decide how it makes sense to send from their end) but either way for us we just need a floating point number to store the value. Represents the angle the antenna tracker is facing.
    • log (string)
      • basically raw text of the most recent UDP packets that have arrived from the antenna tracker link
  • OBCConnectionInfo

    • mavHeartbeat (floating point number)
      • essentially a time value which tells us the quality of the serial connection from OBC to flight controller on the plane
    • cameraConnected (boolean)
      • true/false is the camera connected to the OBC
  • RMavConnectionInfo

    • mavHeartbeat (floating point number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant