-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0330cfd
commit e9ee34a
Showing
3 changed files
with
50 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,20 @@ | ||
project( SpatPlugin VERSION 7.6.0 LANGUAGES CXX ) | ||
|
||
set(TMX_PLUGIN_NAME "SPAT") | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
find_package(carma-clock REQUIRED) | ||
|
||
BuildTmxPlugin() | ||
|
||
target_link_libraries(${PROJECT_NAME} tmxutils ::carma-clock) | ||
|
||
|
||
|
||
add_library(${PROJECT_NAME}_lib src/NTCIP1202.cpp | ||
src/SignalControllerConnection.cpp) | ||
target_link_libraries(${PROJECT_NAME}_lib PUBLIC | ||
tmxutils ::carma-clock ) | ||
target_link_libraries(${PROJECT_NAME}_lib PUBLIC tmxutils ::carma-clock ) | ||
############# | ||
## Testing ## | ||
############# | ||
enable_testing() | ||
|
||
set(BINARY ${PROJECT_NAME}_test) | ||
|
||
file(GLOB_RECURSE TEST_SOURCES LIST_DIRECTORIES false test/*.h test/*.cpp) | ||
|
||
set(SOURCES ${TEST_SOURCES} | ||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/test) | ||
|
||
set(SOURCES ${TEST_SOURCES} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/test) | ||
add_executable(${BINARY} ${TEST_SOURCES}) | ||
|
||
add_test(NAME ${BINARY} COMMAND ${BINARY}) | ||
target_include_directories(${BINARY} PUBLIC src/) | ||
|
||
target_link_libraries(${BINARY} PUBLIC ${PROJECT_NAME}_lib | ||
gtest) | ||
target_link_libraries(${BINARY} PUBLIC ${PROJECT_NAME}_lib gtest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# SPaT Plugin Documentation | ||
|
||
## Introduction | ||
The SPaT Plugin is responsible for receiving information from the Traffic Signal Controller (TSC or SC) necessary for broadcasting Signal Phase and Timing (SPaT) messages. This includes querying any SNMP objects to determine TSC state and listen for any broadcast SPaT information from the TSC. | ||
|
||
## Related Plugins | ||
|
||
A list of plugins related to the SPaT Plugin. | ||
|
||
### Immediate Forward Plugin | ||
|
||
For RSU Immediate Message Forwarding (IMF) functionality forward SPaT (Signal Phase and Timing Messages). | ||
|
||
## Configuration/Deployment | ||
|
||
This plugin has several configuration parameters. Below these are listed out as together with descriptions on how to set them. | ||
|
||
**Intersection_ID**: The intersection id for SPAT generated by this plugin (Note Only used in SPAT MODE = BINARY). | ||
|
||
**Intersection_Name**: The intersection name for SPAT generated by this plugin (Note Only used in SPAT MODE = BINARY). | ||
|
||
**SignalGroupMapping**: JSON data defining a list of SignalGroups and phases (Note Only used in SPAT MODE = BINARY). | ||
|
||
**Local_IP**: The IPv4 address of the local computer for receiving Traffic Signal Controller Broadcast Messages. | ||
|
||
**Local_UDP_Port**: The local UDP port for reception of Traffic Signal Controller Broadcast Messages from the TSC. | ||
|
||
**TSC_IP**: The IPv4 address of the destination Traffic Signal Controller (TSC). | ||
|
||
**TSC_Remote_SNMP_Port**: The destination port on the Traffic Signal Controller (TSC) for SNMP NTCIP communication." | ||
|
||
**SPAT_Mode**: The format of received SPAT from Traffic Signal Controller (TSC). Acceptance values are BINARY and J2735_HEX. | ||
|
||
## Design | ||
|
||
|
||
### Messages | ||
|
||
|
||
## Functionality Testing | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters