Skip to content

Commit ae40990

Browse files
committed
[refactoring] Remove ball speed measurement for autoRef protocol
It will be integrated differently later
1 parent 84eabbb commit ae40990

File tree

4 files changed

+132
-144
lines changed

4 files changed

+132
-144
lines changed

pkg/refproto/ssl_game_controller_auto_ref.pb.go

Lines changed: 31 additions & 105 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: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ message AutoRefToController {
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;
2422
}
2523

2624
// ControllerToAutoRef is the wrapper message for all messages from controller to autoRef
@@ -53,14 +51,4 @@ message AutoRefMessage {
5351
required float distance = 2;
5452
}
5553
}
56-
}
57-
58-
// BallSpeedMeasurement is a single measurement sample of the ball speed
59-
message BallSpeedMeasurement {
60-
// The UNIX timestamp [μs] when the measurement was taken.
61-
required uint64 timestamp = 1;
62-
// the ball speed measurement [m/s]
63-
required float ball_speed = 2;
64-
// the estimated initial ball speed (kick speed) [m/s]
65-
optional float initial_ball_speed = 3;
6654
}

pkg/refproto/ssl_game_controller_common.pb.go

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

pkg/refproto/ssl_game_controller_common.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,14 @@ message Signature {
5959
required string token = 1;
6060
// the PKCS1v15 signature of this message
6161
required bytes pkcs1v15 = 2;
62+
}
63+
64+
// BallSpeedMeasurement is a single measurement sample of the ball speed
65+
message BallSpeedMeasurement {
66+
// The UNIX timestamp [μs] when the measurement was taken.
67+
required uint64 timestamp = 1;
68+
// the ball speed measurement [m/s]
69+
required float ball_speed = 2;
70+
// the estimated initial ball speed (kick speed) [m/s]
71+
optional float initial_ball_speed = 3;
6272
}

0 commit comments

Comments
 (0)