|
@@ -2,6 +2,7 @@
|
|
|
#include "dispatch_command.h"
|
|
|
#include <google/protobuf/text_format.h>
|
|
|
#include "../tool/time_tool.h"
|
|
|
+#include "dispatch_manager.h"
|
|
|
|
|
|
Dispatch_command::Dispatch_command()
|
|
|
{
|
|
@@ -147,6 +148,15 @@ Error_manager Dispatch_command::dispatch_response_to_sql(Error_manager dispatch_
|
|
|
if ( m_dispatch_process_type == Common_data::DISPATCH_PROCESS_STORE )
|
|
|
{
|
|
|
LOG(INFO) << " dispatch_response_to_sql DISPATCH_PROCESS_STORE 存车答复成功 = "<< t_error << " --- " << this;
|
|
|
+
|
|
|
+ //20230213 huli add plc car_wheel_base
|
|
|
+ float t_wheelbase = Dispatch_manager::get_instance_references().m_dispatch_plc.m_plc_car_wheel_base;
|
|
|
+ if ( t_wheelbase > 0.1 )
|
|
|
+ {
|
|
|
+ m_dispatch_command_map[m_car_number_optimal].m_measure_info_msg.set_wheelbase(t_wheelbase);
|
|
|
+ m_dispatch_command_map[m_car_number_optimal].m_measure_info = m_dispatch_command_map[m_car_number_optimal].m_measure_info_msg.DebugString();
|
|
|
+ }
|
|
|
+
|
|
|
//增加 车辆表, 存车指令 完成后添加车辆信息
|
|
|
t_error = insert_vehicle_for_car_number();
|
|
|
//更新 指令队列, 根据车牌号 删除指令
|