Conversation
Reviewer's GuideReferee message handling is updated to use LibXR-scoped error codes consistently, the launcher telemetry pack is expanded to carry richer robot and weapon state, and the CI test build is moved to C++20. Updated class diagram for Referee launcher telemetry and error handlingclassDiagram
class LauncherPack {
+RobotStatus rs
+RobotBuff rb
+LauncherData ld
+DartClient dc
}
class Referee {
+LauncherPack lp_
+void BindCMD(cmd : CMD)
+LibXR::ErrorCode SendFrame(cmd_id : CommandID, payload : void*, PAYLOAD_LEN : uint16_t)
+LibXR::ErrorCode SendFrame(cmd_id : CommandID, payload : PayloadType)
+LibXR::ErrorCode SendStudentCmd(data_cmd_id : CMDID, sender_id : uint16_t, receiver_id : uint16_t, payload : PayloadType)
+LibXR::ErrorCode SendUILayerDelete(sender_id : uint16_t, receiver_id : uint16_t, payload : UILayerDelete)
+LibXR::ErrorCode SendUIFigure(sender_id : uint16_t, receiver_id : uint16_t, payload : UIFigure)
+LibXR::ErrorCode SendUIFigure2(sender_id : uint16_t, receiver_id : uint16_t, payload : UIFigure2)
+LibXR::ErrorCode SendUIFigure5(sender_id : uint16_t, receiver_id : uint16_t, payload : UIFigure5)
+LibXR::ErrorCode SendUIFigure7(sender_id : uint16_t, receiver_id : uint16_t, payload : UIFigure7)
+LibXR::ErrorCode SendUICharacter(sender_id : uint16_t, receiver_id : uint16_t, payload : UICharacter)
+LibXR::ErrorCode SendSentryDecision(payload : SentryDecisionData)
+LibXR::ErrorCode SendRadarDecision(payload : RadarDecisionData)
+LibXR::ErrorCode SendSetVideoTransChannel(channel : uint8_t)
+LibXR::ErrorCode SendQueryVideoTransChannel()
+LibXR::ErrorCode SendCustomDataToController(payload : CustomData1)
+LibXR::ErrorCode SendCustomDataToController(payload : CustomData2)
+void FindHeader()
}
Referee *-- LauncherPack : uses launcher telemetry
class RobotStatus
class RobotBuff
class LauncherData
class DartClient
LauncherPack o-- RobotStatus
LauncherPack o-- RobotBuff
LauncherPack o-- LauncherData
LauncherPack o-- DartClient
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
LauncherPackstruct has been expanded, but the accompanying inline comments still describe only the old fields; consider updating the field documentation so future readers understand whatrb,ld, anddcrepresent and how they relate to the protocol. - Now that all Referee methods return
LibXR::ErrorCode, it may be worth introducing a localusing ErrorCode = LibXR::ErrorCode;or similar alias in this header to reduce verbosity and keep call sites consistent with the rest of the codebase.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `LauncherPack` struct has been expanded, but the accompanying inline comments still describe only the old fields; consider updating the field documentation so future readers understand what `rb`, `ld`, and `dc` represent and how they relate to the protocol.
- Now that all Referee methods return `LibXR::ErrorCode`, it may be worth introducing a local `using ErrorCode = LibXR::ErrorCode;` or similar alias in this header to reduce verbosity and keep call sites consistent with the rest of the codebase.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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
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 by Sourcery
Update referee launcher telemetry payload and align error handling with LibXR error codes while modernizing the test build configuration.
Enhancements:
Build: