|
@@ -94,11 +94,13 @@ void car::handle_over_speed()
|
|
|
|
|
|
bool status = true;
|
|
|
for(size_t i = 0;i < m_speeds.size();i++){
|
|
|
- if(m_speed < 35){
|
|
|
+ if(m_speed < CYaSetting::m_sys_setting.over_speed){
|
|
|
status = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ log_info("CYaSetting::m_sys_setting.over_speed=%.2f.", CYaSetting::m_sys_setting.over_speed);
|
|
|
+
|
|
|
uint64_t id = m_type;
|
|
|
id = ((id<<32) | m_id);
|
|
|
if(status){
|
|
@@ -109,7 +111,7 @@ void car::handle_over_speed()
|
|
|
|
|
|
status = true;
|
|
|
for(size_t i = 20;i < m_speeds.size();i++){
|
|
|
- if(m_speed>35){
|
|
|
+ if (m_speed > CYaSetting::m_sys_setting.over_speed) {
|
|
|
status = false;
|
|
|
}
|
|
|
}
|
|
@@ -182,7 +184,7 @@ void car::handle_anti_coll(const point& pt, const int& sid, int cell_index)
|
|
|
//float dist = pt.dist(c.second->m_v_point);
|
|
|
float dist = fabs(cell_index - c.second->m_v_cell_index);
|
|
|
// zmg
|
|
|
- if (true)
|
|
|
+ if (false)
|
|
|
{
|
|
|
if (m_cid == 82)
|
|
|
{
|
|
@@ -340,7 +342,7 @@ void car::on_timer()
|
|
|
}
|
|
|
}
|
|
|
//zmg
|
|
|
- if (true)
|
|
|
+ if (false)
|
|
|
{
|
|
|
if (m_cid == 82)
|
|
|
{
|