-
Notifications
You must be signed in to change notification settings - Fork 4
TM 11: Task 4 #21
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
Open
vasyl-ks
wants to merge
20
commits into
Hyperloop-UPV:backend/vasyl
Choose a base branch
from
vasyl-ks:backend/vasyl_task4
base: backend/vasyl
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
TM 11: Task 4 #21
vasyl-ks
wants to merge
20
commits into
Hyperloop-UPV:backend/vasyl
from
vasyl-ks:backend/vasyl_task4
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…and adjust growth by mode - Implement linear increase of pressure and temperature based on normalized speed ratio. - Add mode-dependent growth factor (eco|normal|speed) to control how fast pressure and temperature rise. - Ensure values remain within min/max limits to avoid unrealistic sensor outputs.
…ion completion - Fixed a race condition where tests and other processes could start before the configuration process had fully completed by introducing a shared channel-based synchronization mechanism. - Also refactored another initialization flow to use the same signaling strategy for consistency across components.
…ation Refactored the logging system to replace the single global logger with dedicated loggers for main, data, and command outputs. Each logger now writes to its own directory and automatically rotates files after reaching the configured line limit.
- Added structured [INFO]/[ERROR] log format across components. - Added startup logs for Hub, Consumer, and Generator. - Added connection logs for UDP, TCP, and WebSocket.
- Rename ResultData fields - Change WebSocket port from 10000 to 3000 in config - Add structured logging with [INFO]/[ERROR] tags across hub and generator
…software-H11 into backend/vasyl_task4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Final integration of the vehicle telemetry system — combines Generator, Hub, Consumer, and WebSocket Frontend into a complete real-time telemetry and control platform with live visualization.
Implementation
model.SensorData(speed, pressure, temperature) atsensor.intervalMilliSeconds; reacts toCommandinputs (start,stop,accelerate,mode) and produces aggregatedmodel.ResultDatasummaries via concurrent fan-out/fan-in processing.ResultDatato Frontend (WebSocket) and Consumer (UDP).Commandmessages from the Frontend to Generator (via channel) and Consumer (via TCP)..jsonlfiles underlogs/data/andlogs/commands/, rotating afterlogger.maxLines.config.LoadConfig()loads sensor ranges, processing windows, ports, mode ratios, and log rotation rules fromconfig.json.cmd/app/main_test.gosimulates frontend interactions — connects via WebSocket, issues control commands, validates telemetry flow, and records session logs.start.shlaunches both backend (go run ./cmd/app/main.go) and frontend (npm run dev) for unified local development.