⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autoboard.lst

📁 通过车载终端采集GPS数据
💻 LST
📖 第 1 页 / 共 2 页
字号:
 173   1      /*   nf_read_tobuf3(debug_address, debug_msg, 128);
 174   1          siob_send(debug_msg, 128);
 175   1          debug_address += 128;
 176   1          sprintf(debug_msg, "%bu\r\n", debugTestValue);
C51 COMPILER V7.09   AUTOBOARD                                                             09/16/2008 09:24:44 PAGE 4   

 177   1          siob_send(debug_msg, strlen(debug_msg));*/
 178   1      /*     char *tmp_ptr;
 179   1          tmp_ptr = debug_msg;
 180   1          *tmp_ptr = 0;
 181   1          tmp_ptr = debug_msg + strlen(debug_msg);
 182   1          sprintf(tmp_ptr, "value:%bu;", positionInfo[debug_pos_value].value);
 183   1          tmp_ptr = debug_msg + strlen(debug_msg);
 184   1          sprintf(tmp_ptr, "LATI:%s ", position2string(positionInfo[debug_pos_value].latitude) );
 185   1      
 186   1          tmp_ptr = debug_msg + strlen(debug_msg);
 187   1          sprintf(tmp_ptr, "LONG:%s ", position2string(positionInfo[debug_pos_value].longitude) );
 188   1      
 189   1          tmp_ptr = debug_msg + strlen(debug_msg);
 190   1          sprintf(tmp_ptr, "speed:%bu;", positionInfo[debug_pos_value].speed);
 191   1          tmp_ptr = debug_msg + strlen(debug_msg);
 192   1          sprintf(tmp_ptr, "\r\n");
 193   1      
 194   1          sioc_send(debug_msg, strlen(debug_msg));
 195   1          debug_pos_value++;
 196   1          if (debug_pos_value >= 204)
 197   1              debug_pos_value = 0;*/
 198   1      
 199   1      /*    char *tmp_ptr;
 200   1          unsigned char position_state;
 201   1          unsigned char cur_position;
 202   1          long position_cur, position_next;
 203   1      
 204   1          GPS_DATA *gps_ptr;
 205   1      
 206   1          cur_position = get_cur_position();
 207   1          position_state = get_position_state();
 208   1          position_cur = get_cur_station_dis();
 209   1          position_next = get_next_station_dis();
 210   1      
 211   1          get_gps_data(&gps_ptr);
 212   1      
 213   1          tmp_ptr = debug_msg;
 214   1          *tmp_ptr = 0;
 215   1      
 216   1          tmp_ptr = debug_msg + strlen(debug_msg);
 217   1          get_line_id(tmp_ptr);
 218   1          *(tmp_ptr+4) = 0;
 219   1      
 220   1          tmp_ptr = debug_msg + strlen(debug_msg);
 221   1          if( position_state )
 222   1              sprintf(tmp_ptr, " LOCK   ");
 223   1          else
 224   1              sprintf(tmp_ptr, " UNLOCK ");
 225   1      
 226   1      
 227   1          tmp_ptr = debug_msg + strlen(debug_msg);
 228   1          if( (position_value==0) || (position_value==0xFF) )
 229   1              sprintf(tmp_ptr, "IDLE:");
 230   1          else
 231   1              sprintf(tmp_ptr, "ACT :");
 232   1      
 233   1          tmp_ptr = debug_msg + strlen(debug_msg);
 234   1          sprintf(tmp_ptr, "%02bX:%02bX, ", position_value, cur_position);
 235   1      
 236   1          tmp_ptr = debug_msg + strlen(debug_msg);
 237   1          sprintf(tmp_ptr, "CUR:%05ld:%05ld ", position_cur,position_next);
 238   1      
C51 COMPILER V7.09   AUTOBOARD                                                             09/16/2008 09:24:44 PAGE 5   

 239   1      #if 0 
 240   1          tmp_ptr = debug_msg + strlen(debug_msg);
 241   1          sprintf(tmp_ptr, "AR:%bd:%bd:%bd ", 
 242   1                          voiceInfo.arriveFlag, voiceInfo.location, gPosDirction);
 243   1      
 244   1          tmp_ptr = debug_msg + strlen(debug_msg);
 245   1          sprintf(tmp_ptr, "LAST:%05ld:%05ld ", 
 246   1                          voiceInfo.lastDisCur, voiceInfo.lastDisNex);
 247   1      
 248   1      #endif
 249   1      
 250   1          tmp_ptr = debug_msg + strlen(debug_msg);
 251   1          sprintf(tmp_ptr, "VALID:%02bd ", gps_ptr->valid);
 252   1      
 253   1          tmp_ptr = debug_msg + strlen(debug_msg);
 254   1          sprintf(tmp_ptr, "LATI:%s ", position2string(gps_ptr->latitude) );
 255   1      
 256   1          tmp_ptr = debug_msg + strlen(debug_msg);
 257   1          sprintf(tmp_ptr, "LONG:%s ", position2string(gps_ptr->longitude) );
 258   1      
 259   1          tmp_ptr = debug_msg + strlen(debug_msg);
 260   1          sprintf(tmp_ptr, "SPEED:%04d TIME:%02bd:%02bd:%02bd ", 
 261   1                         gps_ptr->speed, gps_ptr->time[0], gps_ptr->time[1], gps_ptr->time[2]);
 262   1      
 263   1          tmp_ptr = debug_msg + strlen(debug_msg);
 264   1          sprintf(tmp_ptr, "GPRS:%bu TX:%u, RX:%u, RST:%bd",
 265   1                  gprsInfo.state, ipInfo.txCount, ipInfo.rxCount, gprsInfo.resetCount);
 266   1      
 267   1      
 268   1          tmp_ptr = debug_msg + strlen(debug_msg);
 269   1          sprintf(tmp_ptr, "\r\n");
 270   1      
 271   1          siob_send(debug_msg, strlen(debug_msg));*/
 272   1          GPS_DATA *gps_ptr;
 273   1          Byte i, tmpValue;
 274   1          long littlex, littley, largex, largey;
 275   1          get_gps_data(&gps_ptr);
 276   1          set_menucurspeed(gps_ptr->speed);
 277   1          tmpValue = get_menucurspeed();
 278   1        /*  gAlarmZone.timeout++;
 279   1          if (gAlarmZone.timeout >  ALARMZONE_TIMEOUT)
 280   1          {   
 281   1              gAlarmZone.timeout = 0;
 282   1              
 283   1              
 284   1              if (gps_ptr->valid != 0)
 285   1              {  
 286   1                  for (i=0; i<gAlarmZone.num; i++)
 287   1                  {
 288   1                      if (gAlarmZone.zone[i].Point1X < gAlarmZone.zone[i].Point2X)
 289   1                      {
 290   1                          littlex = gAlarmZone.zone[i].Point1X;
 291   1                          largex = gAlarmZone.zone[i].Point2X;
 292   1                      }
 293   1                      else
 294   1                      {
 295   1                          littlex = gAlarmZone.zone[i].Point2X;
 296   1                          largex = gAlarmZone.zone[i].Point1X;
 297   1                      }
 298   1                      if (gAlarmZone.zone[i].Point1Y < gAlarmZone.zone[i].Point2Y)
 299   1                      {
 300   1                          littley = gAlarmZone.zone[i].Point1Y;
C51 COMPILER V7.09   AUTOBOARD                                                             09/16/2008 09:24:44 PAGE 6   

 301   1                          largey = gAlarmZone.zone[i].Point2Y;
 302   1                      }
 303   1                      else
 304   1                      {
 305   1                          littley = gAlarmZone.zone[i].Point2Y;
 306   1                          largey = gAlarmZone.zone[i].Point1Y;
 307   1                      }
 308   1                      if (1 == isInAlarmZone(gps_ptr->longitude, littlex, largex))
 309   1                      {
 310   1                          if (1 == isInAlarmZone(gps_ptr->latitude, littley, largey))
 311   1                          {
 312   1                              
 313   1                              if (systemInfo.speedHold > gAlarmZone.zone[i].menuSpeed)
 314   1                                  systemInfo.speedHold = gAlarmZone.zone[i].menuSpeed;
 315   1                              if (tmpValue > gAlarmZone.zone[i].menuSpeed)                            
 316   1                                  break;
 317   1                          }
 318   1                      }
 319   1                  }
 320   1                  if ((i < gAlarmZone.num) && (gAlarmZone.speedouttime < ALARMZONE_SPEEDTIME))
 321   1                      gAlarmZone.speedouttime++;
 322   1                  else if ((i >= gAlarmZone.num) && (gAlarmZone.speedouttime > 0))
 323   1                      gAlarmZone.speedouttime--;
 324   1                  if (gAlarmZone.speedouttime >= ALARMZONE_SPEEDTIME)
 325   1                  {
 326   1                      gAlarmZone.speedouttime = ALARMZONE_SPEEDTIME;
 327   1                      //播放超速提示音
 328   1                      play_littlespeaker(LITTLESPEAKER_SPEEDALARM);
 329   1                  }
 330   1                      
 331   1              }
 332   1          }*/
 333   1      }
*** WARNING C280 IN LINE 273 OF MAIN\AUTOBOARD.C: 'i': unreferenced local variable
*** WARNING C280 IN LINE 274 OF MAIN\AUTOBOARD.C: 'littlex': unreferenced local variable
*** WARNING C280 IN LINE 274 OF MAIN\AUTOBOARD.C: 'littley': unreferenced local variable
*** WARNING C280 IN LINE 274 OF MAIN\AUTOBOARD.C: 'largex': unreferenced local variable
*** WARNING C280 IN LINE 274 OF MAIN\AUTOBOARD.C: 'largey': unreferenced local variable


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    589    ----
   CONSTANT SIZE    =     12    ----
   XDATA SIZE       =   1051      50
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  6 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -