Skip to content

Commit 62d4f8d

Browse files
committed
[feature] Add ball speed measurements to autoRef protocol
1 parent 3a87abf commit 62d4f8d

File tree

2 files changed

+115
-28
lines changed

2 files changed

+115
-28
lines changed

pkg/refproto/ssl_game_controller_auto_ref.pb.go

Lines changed: 103 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/refproto/ssl_game_controller_auto_ref.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ message AutoRefToControllerRequest {
1919
optional GameEvent game_event = 2;
2020
// auto_ref_message is an optional message that describes the current state or situation of the game/autoRef
2121
optional AutoRefMessage auto_ref_message = 3;
22+
// ball_speed_measurement contains a list of ball speed measurements
23+
repeated BallSpeedMeasurement ball_speed_measurement = 4;
2224
}
2325

2426
// a message from autoRef, describing the current state or situation
@@ -43,4 +45,14 @@ message AutoRefMessage {
4345
required float distance = 2;
4446
}
4547
}
48+
}
49+
50+
// BallSpeedMeasurement is a single measurement sample of the ball speed
51+
message BallSpeedMeasurement {
52+
// The UNIX timestamp [μs] when the measurement was taken.
53+
required uint64 timestamp = 1;
54+
// the ball speed measurement [m/s]
55+
required float ball_speed = 2;
56+
// the estimated initial ball speed (kick speed) [m/s]
57+
optional float initial_ball_speed = 3;
4658
}

0 commit comments

Comments
 (0)