|
@@ -467,7 +467,7 @@ BOOL CYAServerDlg::OnInitDialog()
|
|
|
m_log_send_package = theApp.log_send_package;
|
|
|
m_log_recv_package = theApp.log_recv_package;
|
|
|
m_log_locate_data = theApp.log_locate_data;
|
|
|
-
|
|
|
+
|
|
|
m_reader_interval_time = theApp.reader_interval_time * 1.0 / 1000.0;
|
|
|
|
|
|
m_nMallocTimes = 0;
|
|
@@ -5358,13 +5358,6 @@ void CYAServerDlg::deal_areas()
|
|
|
for(;it_card_vehicle != it_Area->second->area_card_list_vehicle->end(); ++it_card_vehicle){
|
|
|
// 计数
|
|
|
count_total++;
|
|
|
- // 区域超速,实现
|
|
|
- if(it_card_vehicle->second->get_speed() > it_Area->second->over_speed_vehicle){
|
|
|
- is_true = true;
|
|
|
- it_card_vehicle->second->is_area_over_speed = true;
|
|
|
- it_card_vehicle->second->time_over_speed = current_time;
|
|
|
- //deal_alarm_card(it_card_vehicle->second,it_Area->second->area_card_list_vehicle,is_true,AF_CARD_OVER_SPEED);
|
|
|
- }
|
|
|
|
|
|
count_vehicle++;
|
|
|
// 超时
|
|
@@ -9101,12 +9094,6 @@ void CYAServerDlg::load_his_card_postion()
|
|
|
|
|
|
it->second->pos_state = atoi(pRow[12]);
|
|
|
it->second->pos_state_old = it->second->pos_state;
|
|
|
- //if(PDT_UP == it->second->pos_state ){
|
|
|
- // it->second->area_id = 0;
|
|
|
- // /*it->second->x = 0;
|
|
|
- // it->second->y = 0;
|
|
|
- // it->second->z = 0;*/
|
|
|
- //}
|
|
|
|
|
|
it->second->last_x = it->second->x;
|
|
|
it->second->last_y = it->second->y;
|
|
@@ -10064,6 +10051,10 @@ void CYAServerDlg::parse_data_locate_reader_his( BYTE * DataBuffer, int nLen, in
|
|
|
|
|
|
void CYAServerDlg::parse_data_reader_synctime(BYTE *DataBuffer, int nLen, int& nCurPos, WORD wChr)
|
|
|
{
|
|
|
+ if(syncmanager.IsOutputLog() != m_log_parse_data){
|
|
|
+ syncmanager.SetOutputLog(m_log_parse_data);
|
|
|
+ }
|
|
|
+
|
|
|
while(nCurPos < nLen - sizeof(WORD)){
|
|
|
LOCATION_SYSTEM_BRANCH(LOCATION_SYSTEM_BRANCH_9);
|
|
|
DWORD dwReaderID = 0; // 本机分站号
|