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

Feat/conn status #156

Merged
merged 6 commits into from
Apr 18, 2024
Merged

Feat/conn status #156

merged 6 commits into from
Apr 18, 2024

Conversation

Tyler-Lentz
Copy link
Contributor

@Tyler-Lentz Tyler-Lentz commented Apr 17, 2024

Related PR with tritonuas/gcs#121

Information for both here

On the OBC it implements a /connection route and a / route for connection testing purposes for the GCS. It also resets the container to :main because :x86 is currently broken.

On the GCS side of things it implements the obc connection page. There is shit CSS but it displays the info correctly.

Also, it links up the main status indicators on the topbar, but the only one that actually provides meaningful info is the obc one as we aren't really testing connection on the others I think

How To Test / Expected Behavior

Spawn up this branch's obcpp in one terminal.

Pull newest GCS and run make build-docker and make run-compose

Open localhost:5000 in web browser

verify that after 2s the OBC connection is green

then visit the OBC connection page and see if it is giving the information (should be all false/null values because nothing is really connected)

Notes

General code quality on the GCS side is very bad. Also the CSS is awful. But It should work.

@Tyler-Lentz Tyler-Lentz requested a review from AskewParity April 17, 2024 23:14
Copy link
Member

@atar13 atar13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good. Glad to see this get added. Once this is merged in the camera connection status can be displayed as well.

@@ -1,11 +1,14 @@
// See this page for reference of options: https://containers.dev/implementors/json_reference
{
"name": "Existing Dockerfile",
"image": "ghcr.io/tritonuas/obcpp:x86",
"image": "ghcr.io/tritonuas/obcpp:main",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rip

@@ -46,6 +48,11 @@ GCSServer::~GCSServer() {
}

void GCSServer::_bindHandlers() {
this->server.Get("/", [](const httplib::Request& request, httplib::Response& response) {
response.status = 200;
response.set_content("Fort-nite", "text/plain");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@Tyler-Lentz Tyler-Lentz merged commit edcfbb6 into main Apr 18, 2024
2 checks passed
@Tyler-Lentz Tyler-Lentz deleted the feat/conn-status branch April 18, 2024 22:49
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

Successfully merging this pull request may close these issues.

2 participants