Repository navigation
Transtion to CMake. #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,3 +12,4 @@ tests/test_* | |
| .mypy.ini | ||
| .ruff.toml | ||
| towncrier.toml | ||
| .LICENSE.txt | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ isort: false | |
| mypy: true | ||
| ruff: true | ||
| towncrier: true | ||
| insert-license: true | ||
This file contains hidden or 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,18 @@ | ||
| cmake_minimum_required(VERSION 3.23) | ||
|
|
||
| project(ts_cRIOcpp) | ||
|
|
||
| add_library(cRIOcpp) | ||
|
|
||
| find_package(spdlog REQUIRED) | ||
| target_link_libraries(cRIOcpp PRIVATE spdlog::spdlog) | ||
|
|
||
| target_compile_options(cRIOcpp | ||
| PRIVATE | ||
| -Wl,--gc-sections -fPIC -fdata-sections -ffunction-sections | ||
| ) | ||
|
|
||
| add_subdirectory(include) | ||
| add_subdirectory(src) | ||
|
|
||
| add_subdirectory(tests) |
This file contains hidden or 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 @@ | ||
| CMake integration, towncrier. | ||
This file contains hidden or 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 @@ | ||
| Insert proper license headers. |
This file contains hidden or 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,91 +1,93 @@ | ||
| .. _Version_History: | ||
|
|
||
| ############### | ||
| Version History | ||
| ############### | ||
|
|
||
| .. towncrier release notes start | ||
|
|
||
| v1.17.0 | ||
| ------- | ||
| ======= | ||
|
|
||
| * FPGASerialPort class - opens virtual terminal to communicate with FPGA device. | ||
|
|
||
| v1.16.1 | ||
| ------- | ||
| ======= | ||
|
|
||
| * Log WrongResponse occurence in FPGA::ilcCommands, not in Modbus::BusList. | ||
|
|
||
| v1.16.0 | ||
| ------- | ||
| ======= | ||
|
|
||
| * Handle 0xFF (255) error response in the FPGASerialDevice. | ||
|
|
||
| v1.15.0 | ||
| ------- | ||
| ======= | ||
|
|
||
| * Rename reset messages to disambiguate calls with device's reset. | ||
|
|
||
| v1.14.0 | ||
| ------- | ||
| ======= | ||
| * PIDParameters load method with default PIDParameters. | ||
| * BusList::missing_response method. | ||
|
|
||
| v1.13.1 | ||
| ------- | ||
| ======= | ||
| * TaskQueue remove method | ||
| * Flush method to flush transport's serial port buffers | ||
| * PID class + processing | ||
|
|
||
| v1.13.0 | ||
| ------- | ||
| ======= | ||
| * Glycol temperature readout from FPGA serial line | ||
|
|
||
| v1.12.0 | ||
| ------- | ||
| ======= | ||
| * simplified MPU communication | ||
|
|
||
| v1.11.1 | ||
| ------- | ||
| ======= | ||
| * SensorMonitor ILC | ||
| * broadcast commands to step and freeze | ||
| * SimpleFPGACliApp class | ||
| * formatDuration template class | ||
| * More constants | ||
|
|
||
| v1.11.0 | ||
| ------- | ||
| ======= | ||
| * Modbus::, ILC::ILCBusList classes. Communication code moved from ModbusBuffer | ||
| to FPGA class. | ||
| * Improved documentation. | ||
| * Public constants to explain meaning of the numbers | ||
| * mpuCommands redesign | ||
|
|
||
| v1.10.1 | ||
| ------- | ||
| ======= | ||
|
|
||
| * Set and read DCA Gain commands (ILC code 73 and 74) | ||
| * Add NiWarning class, improve Ni error reporting | ||
| * FPGA communication debugging | ||
| * support for M2 command line client | ||
|
|
||
| v1.10.0 | ||
| ------- | ||
| ======= | ||
|
|
||
| * getStringStatus function | ||
| * handleMissingReply, MissingReply exception | ||
| * IRQTimeout handling | ||
|
|
||
| v1.9.0 | ||
| ------ | ||
| ====== | ||
|
|
||
| * MPU changed to SerialMultiplex | ||
|
|
||
| v1.8.0 | ||
| ------ | ||
| ====== | ||
|
|
||
| * LVDT ElectroMechanical readout | ||
|
|
||
| v1.7.0 | ||
| ------ | ||
| ====== | ||
|
|
||
| * offsets,.. ILC commands | ||
| * improved re-heater gain management |
This file contains hidden or 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,12 @@ | ||
| target_sources(cRIOcpp | ||
| PUBLIC | ||
| FILE_SET HEADERS | ||
| FILES | ||
| rapidcsv.h | ||
| ) | ||
|
|
||
| target_include_directories(cRIOcpp PRIVATE | ||
| ${CMAKE_CURRENT_SOURCE_DIR}/include | ||
| ) | ||
|
|
||
| add_subdirectory(ILC) |
This file contains hidden or 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,7 @@ | ||
| target_sources(cRIOcpp | ||
| PUBLIC | ||
| FILE_SET HEADERS | ||
| FILES | ||
| ILCBusList.h | ||
| SensorMonitor.h | ||
| ) |
This file contains hidden or 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,5 @@ | ||
| add_subdirectory(ILC) | ||
| add_subdirectory(LSST/cRIO) | ||
| add_subdirectory(LSST/PID) | ||
| add_subdirectory(Modbus) | ||
| add_subdirectory(Transports) |
This file contains hidden or 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,5 @@ | ||
| target_sources(cRIOcpp | ||
| PUBLIC | ||
| ILCBusList.cpp | ||
| SensorMonitor.cpp | ||
| ) |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,5 @@ | ||
| target_sources(cRIOcpp | ||
| PUBLIC | ||
| LimitedPID.cpp | ||
| PID.cpp | ||
| ) |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,26 @@ | ||
| target_sources(cRIOcpp | ||
| PUBLIC | ||
| Application.cpp | ||
| CSC.cpp | ||
| CliApp.cpp | ||
| Command.cpp | ||
| ControllerThread.cpp | ||
| ElectromechanicalPneumaticILC.cpp | ||
| Event.cpp | ||
| FPGA.cpp | ||
| FPGACliApp.cpp | ||
| IntelHex.cpp | ||
| InterruptWatcherTask.cpp | ||
| MPU.cpp | ||
| MPUTelemetry.cpp | ||
| ModbusBuffer.cpp | ||
| NiError.cpp | ||
| NiStatus.cpp | ||
| PrintILC.cpp | ||
| SimpleFPGA.cpp | ||
| TaskQueue.cpp | ||
| ThermalILC.cpp | ||
| Thread.cpp | ||
| ) | ||
|
|
||
| add_subdirectory(Settings) |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.