From 9f40eea61affd6e382b53f0dac4933b8e47a495a Mon Sep 17 00:00:00 2001 From: Frederic Ren Date: Tue, 16 Jan 2024 17:05:34 -0800 Subject: [PATCH] same field name change in cpp client --- invertedai_cpp/invertedai/data_utils.h | 2 +- invertedai_cpp/invertedai/drive_request.cc | 2 +- invertedai_cpp/invertedai/drive_response.cc | 2 +- invertedai_cpp/invertedai/initialize_response.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invertedai_cpp/invertedai/data_utils.h b/invertedai_cpp/invertedai/data_utils.h index 20173624..9026891b 100644 --- a/invertedai_cpp/invertedai/data_utils.h +++ b/invertedai_cpp/invertedai/data_utils.h @@ -145,7 +145,7 @@ struct TrafficLightState { */ struct LightRecurrentState { float state; - float ticks_remaining; + float time_remaining; }; /** diff --git a/invertedai_cpp/invertedai/drive_request.cc b/invertedai_cpp/invertedai/drive_request.cc index 44fbe2e7..a0c40603 100644 --- a/invertedai_cpp/invertedai/drive_request.cc +++ b/invertedai_cpp/invertedai/drive_request.cc @@ -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); } diff --git a/invertedai_cpp/invertedai/drive_response.cc b/invertedai_cpp/invertedai/drive_response.cc index 4afe7f43..35442269 100644 --- a/invertedai_cpp/invertedai/drive_response.cc +++ b/invertedai_cpp/invertedai/drive_response.cc @@ -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); } diff --git a/invertedai_cpp/invertedai/initialize_response.cc b/invertedai_cpp/invertedai/initialize_response.cc index 9f5fee1f..59ef071b 100644 --- a/invertedai_cpp/invertedai/initialize_response.cc +++ b/invertedai_cpp/invertedai/initialize_response.cc @@ -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); }