Skip to content

Commit

Permalink
same field name change in cpp client
Browse files Browse the repository at this point in the history
  • Loading branch information
rf-ivtdai committed Jan 17, 2024
1 parent 6d4c3be commit 9f40eea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion invertedai_cpp/invertedai/data_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct TrafficLightState {
*/
struct LightRecurrentState {
float state;
float ticks_remaining;
float time_remaining;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion invertedai_cpp/invertedai/drive_request.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void DriveRequest::refresh_body_json_() {
for (const LightRecurrentState &light_recurrent_state : this->light_recurrent_states_.value()) {
json element = {
light_recurrent_state.state,
light_recurrent_state.ticks_remaining
light_recurrent_state.time_remaining
};
this->body_json_["light_recurrent_states"].push_back(element);
}
Expand Down
2 changes: 1 addition & 1 deletion invertedai_cpp/invertedai/drive_response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void DriveResponse::refresh_body_json_() {
for (const LightRecurrentState &light_recurrent_state : this->light_recurrent_states_.value()) {
json element = {
light_recurrent_state.state,
light_recurrent_state.ticks_remaining
light_recurrent_state.time_remaining
};
this->body_json_["light_recurrent_states"].push_back(element);
}
Expand Down
2 changes: 1 addition & 1 deletion invertedai_cpp/invertedai/initialize_response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void InitializeResponse::refresh_body_json_() {
for (const LightRecurrentState &light_recurrent_state : this->light_recurrent_states_.value()) {
json element = {
light_recurrent_state.state,
light_recurrent_state.ticks_remaining
light_recurrent_state.time_remaining
};
this->body_json_["light_recurrent_states"].push_back(element);
}
Expand Down

0 comments on commit 9f40eea

Please sign in to comment.