@@ -154,21 +154,25 @@ func (c *RemoteControlClient) replyWithState(reply *ControllerReply) {
154154 robotsOnField := c .gcEngine .TrackerState ().NumTeamRobots (* c .team )
155155 timeoutTimeLeft := float32 (teamState .TimeoutTimeLeft .AsDuration ().Seconds ())
156156 canSubstituteRobot := c .canSubstituteRobot ()
157+ botSubstitutionsLeft := uint32 (* teamState .BotSubstitutionsLeft )
158+ botSubstitutionTimeLeft := float32 (teamState .BotSubstitutionTimeLeft .AsDuration ().Seconds ())
157159
158160 response := & ControllerToRemoteControl {
159161 State : & RemoteControlTeamState {
160- Team : c .team ,
161- KeeperId : teamState .Goalkeeper ,
162- AvailableRequests : availableRequests ,
163- ActiveRequests : activeRequests ,
164- EmergencyStopIn : & emergencyStopIn ,
165- TimeoutsLeft : teamState .TimeoutsLeft ,
166- TimeoutTimeLeft : & timeoutTimeLeft ,
167- ChallengeFlagsLeft : teamState .ChallengeFlags ,
168- MaxRobots : teamState .MaxAllowedBots ,
169- RobotsOnField : & robotsOnField ,
170- YellowCardsDue : yellowCardsDue ,
171- CanSubstituteRobot : & canSubstituteRobot ,
162+ Team : c .team ,
163+ KeeperId : teamState .Goalkeeper ,
164+ AvailableRequests : availableRequests ,
165+ ActiveRequests : activeRequests ,
166+ EmergencyStopIn : & emergencyStopIn ,
167+ TimeoutsLeft : teamState .TimeoutsLeft ,
168+ TimeoutTimeLeft : & timeoutTimeLeft ,
169+ ChallengeFlagsLeft : teamState .ChallengeFlags ,
170+ MaxRobots : teamState .MaxAllowedBots ,
171+ RobotsOnField : & robotsOnField ,
172+ YellowCardsDue : yellowCardsDue ,
173+ CanSubstituteRobot : & canSubstituteRobot ,
174+ BotSubstitutionsLeft : & botSubstitutionsLeft ,
175+ BotSubstitutionTimeLeft : & botSubstitutionTimeLeft ,
172176 },
173177 ControllerReply : reply ,
174178 }
0 commit comments