Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Comments

Middle ware zenoh config file add#72

Merged
Rui-Pedro-Pires merged 7 commits intodevfrom
middleWare-zenoh-config-file-add
Feb 24, 2025
Merged

Middle ware zenoh config file add#72
Rui-Pedro-Pires merged 7 commits intodevfrom
middleWare-zenoh-config-file-add

Conversation

@Rui-Pedro-Pires
Copy link
Contributor

This pull request includes several important changes to the MiddleWare and InstrumentCluster components, focusing on configuration updates, adding new functionalities, and improving code clarity and maintainability.

Configuration and Initialization:

Code Enhancements:

  • MiddleWare/src/main.cpp: Modified the main function to accept a configuration file as an argument and added publishers for lights and gear. [1] [2] [3]
  • src/main.cpp: Updated the main function to create an InstrumentCluster instance with an optional configuration file argument and ensured proper memory management. [1] [2]

New Functionalities:

  • src/InstrumentCluster.cpp: Added a new constructor to the InstrumentCluster class to initialize it with a configuration file and declared subscribers for speed, battery, lights, and gear.
  • include/InstrumentCluster.hpp: Updated the InstrumentCluster class definition to include the new constructor.

UI Updates:

  • ui/FootbarInfo.qml: Refactored the UI to display battery percentage and autonomy from the instrumentCluster object and commented out the old battery level image code. [1] [2]

@Rui-Pedro-Pires Rui-Pedro-Pires merged commit 7e93c1b into dev Feb 24, 2025
1 check passed
@Rui-Pedro-Pires Rui-Pedro-Pires deleted the middleWare-zenoh-config-file-add branch February 24, 2025 13:33
Rui-Pedro-Pires added a commit that referenced this pull request Aug 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant