Changeset 159 in tmcsimulator for branches/FEPSimulator
- Timestamp:
- 10/21/2017 03:59:08 PM (9 years ago)
- Location:
- branches/FEPSimulator
- Files:
-
- 1 deleted
- 3 edited
-
DataPacker.cpp (modified) (1 diff)
-
DataPacker.h (modified) (1 diff)
-
build/Debug/GNU-MacOSX/Main.o.d (deleted)
-
network.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/FEPSimulator/DataPacker.cpp
r156 r159 1 1 #include "DataPacker.h" 2 #include <stdio.h>3 2 4 3 unsigned char * DataPacker::msg; -
branches/FEPSimulator/DataPacker.h
r82 r159 17 17 #include <iostream> 18 18 #include <string.h> 19 #include <stdio.h> 19 20 20 21 class DataPacker { -
branches/FEPSimulator/network.h
r80 r159 9 9 10 10 /*** CONSTANTS ***/ 11 const int Fixed_Byte_To_Checksum = 25; // the first byte is not considered in the calculation of "BYTE 2" 11 const int Fixed_Byte_To_Checksum = 25; // the first byte is not considered 12 //in the calculation of "BYTE 2" 12 13 const int CONTROL_DATA_LEN = 27; 13 14 15 // loop detector / lane type arrays 14 16 char * const dp5[8] = { "ML_1", "ML_2", "ML_3", "ML_4", "ML_5", 15 17 "ML_6", "HOV_Lane", "FYW_Conn"}; … … 21 23 "SD_6", "Pass_Vol_Count", "X"}; 22 24 23 // FEP line: has several lds 25 // FEP line: Represents a serial communication line from field stations to the 26 // An FEP Line has several Loop Detector Stations (Stations) connected) 24 27 typedef struct fep_line FEP_LINE; 25 28 struct fep_line … … 37 40 }; 38 41 39 // Loop detector 42 // Loop Detector: A single sensor that detects the volume, occupancy, and speed 43 // in a single highway lane 40 44 typedef struct loop LOOP; 41 45 struct loop 42 46 { 47 // meta data 43 48 long loopID; 44 49 char *loop_loc; 45 50 51 // dynamic data 46 52 int vol; 47 53 float occ; … … 49 55 }; 50 56 51 // Loop detector station: has several loops 57 // Loop detector station: A single field station that contains multiple loops at 58 // a location 52 59 typedef struct Station STATION; 53 60 struct Station … … 68 75 }; 69 76 77 // A helper structure used to pack the volume and occupancy at a loop into 78 // a two byte message 70 79 typedef struct volOcc VOLOCC; 71 80 struct volOcc
Note: See TracChangeset
for help on using the changeset viewer.
