Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #include "../stdafx.h"
  2. #include "Algorithm.hpp"
  3. //#include "Communicate.hpp"
  4.  
  5. #include <string>
  6.  
  7. using namespace std;
  8.  
  9. using namespace System;
  10.  
  11.  
  12. namespace Algorithm
  13. {
  14. char *map_file;
  15. char *map_pkt_file;
  16. char *Storage_file;
  17.  
  18. uint16_t *map_size_xya; //x,y + aktywne komórki
  19.  
  20. struct Map_struct **Map;
  21.  
  22. uint32_t *Map_RFID;
  23.  
  24. struct Storage_struct **Storage;
  25. uint8_t Storage_Amount;
  26.  
  27. uint16_t Lifter_X, Lifter_Y, Lifter_Z; // 0-parter,1-pietro | 0-lewo,1-prawo | 0-tyl, 1-przo
  28.  
  29. uint32_t ***Lifter;
  30.  
  31. uint16_t Lifter_Cell_ID;
  32.  
  33. Cart_struct **Cart_tab;
  34.  
  35. uint16_t Cart_amount;
  36.  
  37.  
  38. uint8_t Init()
  39. {
  40. map_file = "Map/mapa.csv";
  41. map_pkt_file = "Map/mapaPkt.csv";
  42. Storage_file = "Map/magazyn.csv";
  43.  
  44. map_size_xya = (uint16_t *)calloc(3, sizeof(uint16_t));
  45. map_size_xya[0] = 1;
  46. map_size_xya[1] = 1;
  47. map_size_xya[2] = 1;
  48. //static uint16_t map_size_xya_Init[3] = {1,1,1};
  49. //map_size_xya = map_size_xya_Init;
  50.  
  51. Storage_Amount = 0;
  52.  
  53. Lifter_X = 2; //0-parter,1-pietro
  54. Lifter_Y = 2; //0-lewo,1-prawo
  55. Lifter_Z = 2; //0-tyl, 1-przo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement