Skip to content
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

develop merge to main for major version update v8 #704

Merged
merged 555 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
555 commits
Select commit Hold shift + click to select a range
d521601
Add randomization namespace
200km Jul 20, 2024
d2c23bd
Fix format
200km Jul 20, 2024
fa7a41a
Remove warnings
200km Jul 20, 2024
1e52b2e
Add gnss namespace
200km Jul 20, 2024
a215e90
Fix format
200km Jul 20, 2024
c9f20d4
Add orbit namespace
200km Jul 20, 2024
80cfe1f
Fix format
200km Jul 20, 2024
216744c
Fix test
200km Jul 20, 2024
5873393
Add time_system namespace
200km Jul 20, 2024
83865aa
Add control_utilities namespace
200km Jul 20, 2024
f4866fe
Add geodesy namespace
200km Jul 20, 2024
aba36b1
Add gravity namespace
200km Jul 20, 2024
f539e9b
Add optics namespace
200km Jul 20, 2024
05d4687
Add planet_rotation namespace
200km Jul 20, 2024
c0d9dd9
Fix format
200km Jul 20, 2024
a55c615
Move logs directory
200km Jul 20, 2024
38b6b8c
Modify path to logs directory
200km Jul 20, 2024
0e2fb49
Modify path to logs directory
200km Jul 20, 2024
dbd5883
Move and rename initialize_files
200km Jul 20, 2024
57efaba
Fix initialize_files path
200km Jul 20, 2024
3720ab5
Fix to use macro
200km Jul 20, 2024
e7b06ed
Add environment directory in settings
200km Jul 20, 2024
bcf5f6b
Move gnss directory
200km Jul 20, 2024
fbe9736
Make sample_satellite directory
200km Jul 20, 2024
50a00a3
Move to sample_satellite directory
200km Jul 20, 2024
87358f1
Make sample_ground_station directory
200km Jul 20, 2024
20af6ac
Update file path
200km Jul 20, 2024
07ae818
Make ground_station/components
200km Jul 20, 2024
606af83
Add antenna pattern for ground station
200km Jul 20, 2024
0c33f8d
Fix data directory in s2e
200km Jul 20, 2024
536052a
Fix to use GITHUB_OUTPUT
200km Jul 20, 2024
dcd4839
Fix small
200km Jul 20, 2024
0bd6d36
Fix small
200km Jul 20, 2024
ecf0daf
Fix small
200km Jul 20, 2024
859389a
Fix data directory path in CI
200km Jul 21, 2024
c4b4edf
Modify default settings directory path
200km Jul 21, 2024
97107aa
Add EXT_LIB_DIR_FROM_EXE option to CI
200km Jul 21, 2024
57c8a85
Fix Linux build
200km Jul 21, 2024
2279318
Fix INI file path
200km Jul 21, 2024
6090585
Add CORE_DIR_FROM_EXE setting in CI
200km Jul 21, 2024
cf8aebf
Fix simulation config setting
200km Jul 21, 2024
8cdc86b
Fix simulation config setting
200km Jul 21, 2024
efff45b
Fix working directory for Win
200km Jul 21, 2024
7f4afcc
Revive shell:bash
200km Jul 21, 2024
ed38c9d
Merge branch 'feature/move-initialize-file-directory' into feature/re…
200km Jul 21, 2024
159361f
Fix ini file name
200km Jul 22, 2024
295c4c4
Merge pull request #661 from ut-issl/feature/move-logs-directory
200km Aug 8, 2024
e0706c4
Update dependency numpy-stl to v3.1.2
renovate[bot] Aug 8, 2024
3f6930a
Merge pull request #667 from ut-issl/renovate/numpy-stl-3.x
200km Aug 8, 2024
fd45f1a
Merge pull request #662 from ut-issl/feature/move-initialize-file-dir…
200km Aug 9, 2024
8d31bf6
Merge pull request #663 from ut-issl/feature/refactor-settings
200km Aug 9, 2024
dcb078c
Merge pull request #660 from ut-issl/feature/add-new-namespaces
200km Aug 13, 2024
0a56281
Merge pull request #658 from ut-issl/feature/add-orbit-namespace
200km Aug 13, 2024
aae3b57
Merge pull request #657 from ut-issl/feature/add-gnss-namespace
200km Aug 13, 2024
1a40df5
Merge pull request #659 from ut-issl/feature/add-timesystem-namespace
200km Aug 13, 2024
768107b
Merge pull request #656 from ut-issl/feature/fix-name-space
200km Aug 13, 2024
d94af62
Merge pull request #671 from ut-issl/main
conjikidow Aug 23, 2024
5ef8268
Fix small for formatting
200km Aug 25, 2024
2db2816
Merge branch 'develop' into feature/refactor-logger-by-std-filesystem
200km Aug 25, 2024
acf63db
Rename .h to .hpp
200km Aug 25, 2024
4ed7960
Merge pull request #618 from ut-issl/feature/refactor-logger-by-std-f…
200km Aug 25, 2024
67ebdc2
Merge pull request #630 from ut-issl/feature/split-c2a-communication-…
200km Aug 25, 2024
aa697fb
Merge with develop
200km Aug 25, 2024
cfb77ac
Move egm file to settings
200km Aug 25, 2024
b7a375d
Delete GeoPotential CMake
200km Aug 25, 2024
3a96fc9
Remove Geopotential CMake call
200km Aug 25, 2024
5fbb92b
Update download directory for lunar gravity field
200km Aug 25, 2024
076b337
Update default directory path for gravity field settings
200km Aug 25, 2024
d2ae413
Move IGRF coeff files to settings
200km Aug 25, 2024
a771dd1
Merge pull request #675 from ut-issl/main
conjikidow Aug 25, 2024
a195423
Update directory path to the IGRF coefficient
200km Aug 25, 2024
7da0c37
Update actions/setup-python action to v5.1.1
renovate[bot] Aug 25, 2024
f68bf7e
Add space wheather directory
200km Aug 25, 2024
f8ebcd9
Modify nrlmsise CMake
200km Aug 25, 2024
31c420f
Update directory path for space wheather
200km Aug 25, 2024
4ce4458
Fix typo
200km Aug 25, 2024
c9e52a2
Fix CI
200km Aug 25, 2024
7da5987
Add cspice directory in settings/environment
200km Aug 25, 2024
d7aa8ef
Update generic kernel storing directory
200km Aug 25, 2024
4cc78bf
Update directory path for CSPICE kernels
200km Aug 25, 2024
08f4628
Add star catalogue directory
200km Aug 25, 2024
5ebaedf
Fix hip catalogue download directory
200km Aug 25, 2024
817965a
Update directory path to the hip catalogue
200km Aug 25, 2024
4804ab6
Fix to path reviewdog
200km Aug 25, 2024
2d2ad11
Merge pull request #654 from ut-issl/renovate/actions-setup-python-5.x
200km Aug 25, 2024
ea5c6bc
Merge pull request #676 from ut-issl/feature/add-gravity-field-settin…
200km Aug 25, 2024
19010e4
Merge pull request #677 from ut-issl/feature/add-magnetic-field-setti…
200km Aug 25, 2024
7965d62
Merge pull request #678 from ut-issl/feature/add-space-wheather-direc…
200km Aug 25, 2024
c6602a7
Merge pull request #679 from ut-issl/feature/add-cspice-settings
200km Aug 25, 2024
409652e
Merge pull request #680 from ut-issl/feature/add-star-catalogue
200km Aug 25, 2024
254cd78
Add gitignore for new setting files
200km Aug 25, 2024
e8646bf
Rename INI_FILE_DIR_FROM_EXE to SETTINGS_DIR_FROM_EXE
200km Aug 25, 2024
0c9ddc3
Fix Actions setting
200km Aug 25, 2024
f5ee306
modify extlib directory definition
200km Aug 25, 2024
f518c3c
Add setting file copy when cache is available
200km Aug 25, 2024
e51be0d
Fix small
200km Aug 25, 2024
eaa00e5
Fix directory
200km Aug 25, 2024
bb0a2f7
Merge pull request #681 from ut-issl/feature/add-ignore-for-new-setti…
200km Aug 25, 2024
5177e13
Merge pull request #682 from ut-issl/feature/rename-preprocessor-for-…
200km Aug 25, 2024
48b4e05
Add copied file checking
200km Aug 25, 2024
8d40c5e
Add copied file checking
200km Aug 25, 2024
b6e6b08
Merge pull request #683 from ut-issl/feature/modify-extlib-cmake
200km Aug 25, 2024
098952e
Fix directory
200km Aug 25, 2024
7d6b200
Fix directory
200km Aug 25, 2024
894a63b
Fix directory
200km Aug 25, 2024
edf63e4
Fix
200km Aug 25, 2024
503493e
Merge pull request #684 from ut-issl/feature/fix-actions-cache
200km Aug 25, 2024
1a65545
Merge pull request #668 from ut-issl/feature/modify-settings
200km Aug 25, 2024
747c94b
Fix ini file copy for telescope
200km Aug 25, 2024
b1b14f9
Fix format
200km Aug 25, 2024
5af10e3
Update actions/setup-python action to v5.2.0
renovate[bot] Aug 29, 2024
a15ffcf
Merge pull request #686 from ut-issl/renovate/actions-setup-python-5.x
200km Aug 30, 2024
562acf9
Merge pull request #685 from ut-issl/feature/fix-file-copy-thruster
200km Aug 30, 2024
dc89d5b
Add albedo radiation calculation to Node class
kai0722 Sep 12, 2024
09feae4
Add albedo heatload calculation to Heatload class
kai0722 Sep 12, 2024
4afbd2e
Refactor temperature propagation method to include albedo factor
kai0722 Sep 12, 2024
89bf2de
Refactor temperature propagation method to include albedo factor
kai0722 Sep 12, 2024
81438fc
Refactor thermal module to include albedo heatload calculation
kai0722 Sep 12, 2024
b8bf76e
Rename namespaec math to s2e::math
200km Sep 14, 2024
70dfc4f
Rename namespaec atmosphere to s2e::atmosphere
200km Sep 14, 2024
4f102b4
Rename namespaec control_utilities to s2e::control_utilities
200km Sep 14, 2024
99abe3c
Rename namespaec geodesy to s2e::geodesy
200km Sep 14, 2024
f6ab6b5
Rename namespaec gnss to s2e::gnss
200km Sep 14, 2024
46ceb85
Rename namespaec gravity to s2e::gravity
200km Sep 14, 2024
5582b4d
Rename namespaec numerical_integration to s2e::numerical_integration
200km Sep 14, 2024
4727707
Rename namespaec optics to s2e::optics
200km Sep 14, 2024
6d641f1
Rename namespaec orbit to s2e::orbit
200km Sep 14, 2024
63d0460
Rename namespaec planet_rotation to s2e::planet_rotation
200km Sep 14, 2024
ba23a62
Rename namespaec randomization to s2e::randomization
200km Sep 14, 2024
2539d24
Rename namespaec randomization to s2e::randomization
200km Sep 14, 2024
2c59724
Rename namespaec time_system to s2e::time_system
200km Sep 14, 2024
7709a6c
add orbit calculation with definition file
fukudakazuya Sep 17, 2024
ea0b1eb
modify path
fukudakazuya Sep 18, 2024
bb91739
modify file name
fukudakazuya Sep 19, 2024
1c652ae
delete orbit_definition_file_reader
fukudakazuya Sep 19, 2024
330467d
Refactor Node class to rename albedo flux to albedo radiation and upd…
kai0722 Sep 20, 2024
d6f2b8f
Remove unused albedo flux debug output and simplify string handling f…
kai0722 Sep 20, 2024
a1cc0d8
Refactor CalcAlbedoRadiation_W method to use earth position and eclip…
kai0722 Sep 20, 2024
d637fa7
Refactor temperature calculation to use GetIsEclipsed method for ecli…
kai0722 Sep 20, 2024
5605351
Refactor Temperature class to include calc_albedo flag for albedo rad…
kai0722 Sep 20, 2024
ce7a9fa
Refactor Heatload class to use const double for setter parameters
kai0722 Sep 20, 2024
3885db4
Refactor albedo radiation calculation to use earth_albedo_factor and …
kai0722 Sep 20, 2024
9f76ed3
Refactor Temperature class to rename albedo flags and update initiali…
kai0722 Sep 20, 2024
ec65e35
Fix typo in documentation comment for GetSolarRadiation_W method
kai0722 Sep 20, 2024
c925d85
Update parameter names in CalcAlbedoRadiation_W for clarity
kai0722 Sep 20, 2024
f9c37a6
Add parameter description for solar_flux_W_m2 in CalcSolarRadiation_W…
kai0722 Sep 20, 2024
a692e9d
Add parameter description for srp_environment in InitTemperature method
kai0722 Sep 20, 2024
996f40e
Initialize radiation variables to zero as floating-point values for c…
kai0722 Sep 20, 2024
c9d0513
Fix calculation of albedo_flux_W_m2 to use double precision for the e…
kai0722 Sep 20, 2024
fc75208
Rename calc_earth_albedo to is_calc_earth_albedo_enabled for clarity
kai0722 Sep 20, 2024
2d42f54
Fix albedo radiation calculation to use equatorial radius instead of …
kai0722 Sep 20, 2024
12ba8a2
Add Doxygen comments for clarity in heater and thermal classes
kai0722 Sep 20, 2024
c4d2e3f
Fix comment formatting for power rating in Heater class
kai0722 Sep 20, 2024
2829441
Add earth albedo calculation flag and update thermal propagation logic
kai0722 Sep 20, 2024
5cb8e4e
complete calculation
fukudakazuya Sep 21, 2024
ca863d1
Add EarthAlbedo class and integrate into local environment
kai0722 Sep 21, 2024
0659e9d
Update GetEarthAlbedoFactor to return 0.0 when calculation is disabled
kai0722 Sep 21, 2024
c09c3e0
Refactor temperature and albedo calculations to integrate EarthAlbedo…
kai0722 Sep 21, 2024
ff128e4
Refactor Dynamics and Temperature classes to remove redundant earth a…
kai0722 Sep 21, 2024
ec64810
modify function and variable names
fukudakazuya Sep 21, 2024
d4e8250
modify function name
fukudakazuya Sep 21, 2024
8010768
add ini file
fukudakazuya Sep 21, 2024
cb91a17
modify error message
fukudakazuya Sep 21, 2024
646d037
Remove unused include for initialize_file_access in Dynamics class
kai0722 Sep 21, 2024
e1ce92b
Refactor albedo radiation calculation for improved readability and ma…
kai0722 Sep 21, 2024
62c27e3
Refactor EarthAlbedo and Dynamics classes to improve albedo radiation…
kai0722 Sep 21, 2024
6c80e78
Add EarthAlbedo configuration to sample_local_environment.ini
kai0722 Sep 21, 2024
500f300
Update sample_local_environment.ini to enable atmosphere logging and …
kai0722 Sep 21, 2024
2485df3
modify file name
fukudakazuya Sep 25, 2024
bda7a43
modify function and variable names
fukudakazuya Sep 26, 2024
14824c6
Add comment to clarify earth_albedo_factor in sample_local_environmen…
kai0722 Sep 26, 2024
81a5a95
Initialize earth_albedo_W_m2 to 0.0 and set is_calc_earth_albedo_enab…
kai0722 Sep 26, 2024
4768f16
Remove debug output for Earth albedo calculation in CalcEarthAlbedo m…
kai0722 Sep 26, 2024
975534a
Add const qualifier to parameters in SetEarthAlbedoFactor and SetIsCa…
kai0722 Sep 26, 2024
75480ec
Add logging for earth_albedo_W_m2 in GetLogHeader and GetLogValue met…
kai0722 Sep 26, 2024
8bab24b
Merge branch 'develop' of github.com:ut-issl/s2e-core into feature/up…
kai0722 Sep 26, 2024
d0d142a
Refactor LocalEnvironment class member variable formatting
kai0722 Sep 26, 2024
63f4bfe
Refactor LocalEnvironment class member variable names
kai0722 Sep 26, 2024
e043d61
Refactor variable types in Node class and EarthAlbedo class
kai0722 Sep 26, 2024
b9a3e1b
Refactor thermal propagation in Dynamics::Update method
kai0722 Sep 26, 2024
7d975e0
Merge pull request #699 from ut-issl/main
200km Sep 26, 2024
40754cf
Merge with develop
200km Sep 26, 2024
6ab9525
modyfy propagate
fukudakazuya Sep 26, 2024
fcf4e93
Merge branch 'develop' into feature/add-orbit-interpolation
fukudakazuya Sep 26, 2024
4e2a7f1
Refactor shadow check in Node::CalcAlbedoRadiation_W method
kai0722 Sep 26, 2024
352d5b5
Merge branch 'feature/upgrade-thermal-analysis' of github.com:ut-issl…
kai0722 Sep 26, 2024
72d328c
Refactor shadow check in Node::CalcAlbedoRadiation_W method
kai0722 Sep 26, 2024
a95ff06
Merge pull request #688 from ut-issl/feature/upgrade-thermal-analysis
kai0722 Sep 27, 2024
9cb46ca
modify function and variable names
fukudakazuya Sep 27, 2024
3003020
Merge develop
200km Sep 27, 2024
6a437ec
Add s2e::components namespace for base
200km Sep 27, 2024
684d0d6
Add s2e::components namespace for examples
200km Sep 27, 2024
085a95f
Add s2e::components namespace for ideal
200km Sep 27, 2024
61aa36f
Add s2e::components namespace for ports
200km Sep 27, 2024
50aa055
Add s2e::components namespace for real
200km Sep 27, 2024
9f6593b
Add s2e::disturbances namespace
200km Sep 27, 2024
54c007e
Add s2e::dynamics::attitude namespace
200km Sep 27, 2024
4e9a304
Add s2e::dynamics::orbit namespace
200km Sep 27, 2024
70ec661
Add s2e::dynamics::thermal namespace
200km Sep 27, 2024
21675ce
Add s2e::dynamics namespace
200km Sep 27, 2024
62f5338
Add s2e::environment namespace
200km Sep 27, 2024
1f84751
Add s2e::logger namespace
200km Sep 27, 2024
fdf93e2
Add s2e::setting_file_reader namespace
200km Sep 27, 2024
a4adecd
Add s2e::simulation namespace
200km Sep 27, 2024
2091a70
Add s2e::utilities namespace
200km Sep 27, 2024
27bbb1a
Fix typo
200km Sep 27, 2024
ad7eb1c
Add s2e::sample namespace
200km Sep 27, 2024
ccaf910
Update namespace info in simulation sample
200km Sep 27, 2024
e8b37f5
Update namespace info in simulation
200km Sep 27, 2024
0997089
Update namespace info in s2e
200km Sep 27, 2024
10c18e1
Update namespace info in components/base
200km Sep 27, 2024
922b4ab
Update namespace info in components
200km Sep 27, 2024
85d9f0c
modify variable names
fukudakazuya Sep 27, 2024
5e48c22
add TIME_SERIES_FILE propagation mode
fukudakazuya Sep 27, 2024
8f17cdb
modify csv file path
fukudakazuya Sep 27, 2024
5c0a98f
modify format
fukudakazuya Sep 27, 2024
4d7ca22
delete time_series_file_orbit_propagation.ini
fukudakazuya Sep 27, 2024
3bded8b
modify error message
fukudakazuya Sep 27, 2024
4b30d70
delete include file
fukudakazuya Sep 27, 2024
30bf8b6
modify ephemeris time
fukudakazuya Sep 27, 2024
190c773
modify ephemeris time
fukudakazuya Sep 27, 2024
9d8d911
delete SpiceUsr.h
fukudakazuya Sep 27, 2024
5a4f12c
Add logger and setting_file_reader namespace
200km Sep 28, 2024
679e084
Add logger namespace
200km Sep 28, 2024
ebd0f75
Add dynamics namespace
200km Sep 28, 2024
0a6a3d2
Fix namespace
200km Sep 28, 2024
3d87e03
Fix format
200km Sep 28, 2024
38ff92f
solve build warning
fukudakazuya Sep 29, 2024
9f2908f
modify 1
fukudakazuya Sep 30, 2024
f372519
add time_series_orbit.csv
fukudakazuya Sep 30, 2024
9648b68
modify path name
fukudakazuya Sep 30, 2024
7d36c93
modify time_series_orbit.csv
fukudakazuya Sep 30, 2024
6d7e6d4
Merge pull request #692 from ut-issl/feature/add-orbit-interpolation
fukudakazuya Sep 30, 2024
9888bb5
Merge develop
200km Oct 1, 2024
282cead
Fix format
200km Oct 1, 2024
e753978
Fix format
200km Oct 1, 2024
31b8fd5
delete space
fukudakazuya Oct 1, 2024
1cab569
Merge pull request #702 from ut-issl/feature/modify-format-error
fukudakazuya Oct 1, 2024
af60184
Fix small
200km Oct 1, 2024
7875268
Fix bugs
200km Oct 1, 2024
b50e583
Fix bug
200km Oct 1, 2024
30b0664
Fix namespace in test
200km Oct 1, 2024
2fb5f52
Rename namespace ground_station
200km Oct 1, 2024
5993e4a
Rename spacecraft namespace
200km Oct 1, 2024
a4b50bc
Fix format
200km Oct 1, 2024
02309c6
Major version update to v8
200km Oct 2, 2024
a74da28
Merge pull request #701 from ut-issl/feature/add-namespace
200km Oct 2, 2024
8410d46
Merge pull request #703 from ut-issl/feature/major-version-update-v8
200km Oct 2, 2024
0babc02
Fix format
200km Oct 2, 2024
6ca93ed
Merge pull request #705 from ut-issl/feature/fix-format
200km Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 42 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: cache extlib
id: cache-extlib
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: extlib-${{ runner.os }}-${{ hashFiles('./ExtLibraries/**') }}-${{ matrix.build_bit }}
path: ./ExtLibraries
Expand Down Expand Up @@ -90,6 +90,7 @@ jobs:
working-directory: ./ExtLibraries
run: |
cmake --install .

- name: check extlib
shell: powershell
working-directory: ./ExtLibraries
Expand All @@ -99,38 +100,48 @@ jobs:
ls cspice/include
ls cspice/generic_kernels
ls nrlmsise00
ls nrlmsise00/table
ls nrlmsise00/lib*
ls nrlmsise00/lib*/libnrlmsise00.lib
ls nrlmsise00/src

- name: copy to settings
if: steps.cache-extlib.outputs.cache-hit == 'true'
shell: powershell
run: |
ls ./settings/environment/cspice
cp -r "./ExtLibraries/cspice/generic_kernels" "./settings/environment/cspice"
ls ./settings/environment/cspice
ls ./settings/environment/cspice/generic_kernels/lsk
ls ./settings/environment/cspice/generic_kernels/pck
ls ./settings/environment/cspice/generic_kernels/spk

- name: build 32bit
if: matrix.build_bit == 'BUILD_64BIT=OFF'
shell: cmd
run: |
cl.exe
cmake -G "Visual Studio 17 2022" -A Win32 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DEXT_LIB_DIR=./ExtLibraries -DFLIGHT_SW_DIR=./c2a-core -DC2A_NAME=Examples/minimum_user -D${{ matrix.use_c2a }} -D${{ matrix.build_bit }}
cmake -G "Visual Studio 17 2022" -A Win32 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DSETTINGS_DIR_FROM_EXE=./settings -DCORE_DIR_FROM_EXE=./ -DEXT_LIB_DIR=./ExtLibraries -DEXT_LIB_DIR_FROM_EXE=./ExtLibraries -DFLIGHT_SW_DIR=./c2a-core -DC2A_NAME=Examples/minimum_user -D${{ matrix.use_c2a }} -D${{ matrix.build_bit }}
cmake --build .

- name: build 64bit
if: matrix.build_bit == 'BUILD_64BIT=ON' && matrix.use_c2a == 'USE_C2A=OFF'
shell: cmd
run: |
cl.exe
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DEXT_LIB_DIR=./ExtLibraries -DFLIGHT_SW_DIR=./c2a-core -DC2A_NAME=Examples/minimum_user -D${{ matrix.use_c2a }} -D${{ matrix.build_bit }}
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_CONFIGURATION_TYPES:STRING="Debug" -DSETTINGS_DIR_FROM_EXE=./settings -DCORE_DIR_FROM_EXE=./ -DEXT_LIB_DIR=./ExtLibraries -DEXT_LIB_DIR_FROM_EXE=./ExtLibraries -DFLIGHT_SW_DIR=./c2a-core -DC2A_NAME=Examples/minimum_user -D${{ matrix.use_c2a }} -D${{ matrix.build_bit }}
cmake --build .

- name: fix simulation config
shell: bash
working-directory: ./data/sample/initialize_files
working-directory: ./settings
run: |
find . -type f -name '*.ini' -exec sed -i 's/..\/..\/..\/ExtLibraries/..\/..\/ExtLibraries/g' {} \;
find . -type f -name '*.ini' -exec sed -i 's/..\/..\/logs/.\/logs/g' {} \;

- name: run simulation(SampleSat)
if: matrix.build_bit == 'BUILD_64BIT=OFF' || (matrix.build_bit == 'BUILD_64BIT=ON' && matrix.use_c2a == 'USE_C2A=OFF')
working-directory: ./data/sample
working-directory: ./
run: |
..\..\Debug\S2E.exe
.\Debug\S2E.exe

build_s2e_linux:
name: Build on Linux
Expand All @@ -149,8 +160,8 @@ jobs:
run: |
COMPILER="${{ matrix.compiler }}"
read -r -a COMPILER <<< "$COMPILER"
echo "::set-output name=CC::${COMPILER[0]}"
echo "::set-output name=CXX::${COMPILER[1]}"
echo "CC=${COMPILER[0]}" >> "$GITHUB_OUTPUT"
echo "CXX=${COMPILER[1]}" >> "$GITHUB_OUTPUT"

- name: install deps
run: |
Expand All @@ -174,7 +185,7 @@ jobs:

- name: cache extlib
id: cache-extlib
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: extlib-${{ runner.os }}-${{ hashFiles('./ExtLibraries/**') }}-${{ matrix.build_bit }}
path: ExtLibraries
Expand All @@ -190,6 +201,7 @@ jobs:
working-directory: ./ExtLibraries
run: |
cmake --install .

- name: check extlib
working-directory: ./ExtLibraries
run: |
Expand All @@ -198,35 +210,45 @@ jobs:
ls cspice/include
ls cspice/generic_kernels
ls nrlmsise00
ls nrlmsise00/table
ls nrlmsise00/lib*
ls nrlmsise00/lib*/libnrlmsise00.a
ls nrlmsise00/src

- name: copy to settings
if: steps.cache-extlib.outputs.cache-hit == 'true'
run: |
ls ./settings/environment/cspice
cp -r "./ExtLibraries/cspice/generic_kernels" "./settings/environment/cspice"
ls ./settings/environment/cspice
ls ./settings/environment/cspice/generic_kernels/lsk
ls ./settings/environment/cspice/generic_kernels/pck
ls ./settings/environment/cspice/generic_kernels/spk


- name: build
env:
CC: ${{ steps.compiler.outputs.CC }}
CXX: ${{ steps.compiler.outputs.CXX }}
run: |
cmake . -DEXT_LIB_DIR=./ExtLibraries -D${{ matrix.build_bit }}
cmake . -DEXT_LIB_DIR=./ExtLibraries -DEXT_LIB_DIR_FROM_EXE=./ExtLibraries -DSETTINGS_DIR_FROM_EXE=./settings -DCORE_DIR_FROM_EXE=./ -D${{ matrix.build_bit }}
cmake --build .

- name: fix simulation config
working-directory: ./data/sample/initialize_files
working-directory: ./settings
run: |
find . -type f -name '*.ini' -exec sed -i 's/..\/..\/..\/ExtLibraries/..\/..\/ExtLibraries/g' {} \;
find . -type f -name '*.ini' -exec sed -i 's/..\/..\/logs/.\/logs/g' {} \;

- name: run simulation(SampleSat)
working-directory: ./data/sample
working-directory: ./
run: |
../../S2E
./S2E

- name: generate graph
working-directory: ./scripts/Plot
run: |
sudo apt-get install -y gnuplot
pip3 install yq
LOG=$(ls ../../data/sample/logs/logs_*/*.csv)
LOG=$(ls ../../logs/logs_*/*.csv)
echo "plot $LOG"
./gen_graph.sh "${LOG}"
ls
Expand All @@ -239,7 +261,7 @@ jobs:
ver=$(grep python_version ./Pipfile | sed -e 's/^python_version\s=\s"\(.*\)"$/\1/')
echo "version=$ver" >> "$GITHUB_OUTPUT"

- uses: actions/setup-python@v5.0.0
- uses: actions/setup-python@v5.2.0
with:
python-version: ${{ steps.python-version.outputs.version }}

Expand All @@ -248,6 +270,7 @@ jobs:
run: |
pip install pipenv
pipenv install
pipenv run pip list
pipenv run python plot_gs_visibility.py --no-gui
ls ./*_gs_visibility.png

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/google-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: cache extlib
id: cache-extlib
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: extlib-${{ runner.os }}-${{ hashFiles('./ExtLibraries/**') }}}
path: ExtLibraries
Expand All @@ -85,7 +85,6 @@ jobs:
ls cspice/include
ls cspice/generic_kernels
ls nrlmsise00
ls nrlmsise00/table
ls nrlmsise00/lib*
ls nrlmsise00/lib*/libnrlmsise00.a
ls nrlmsise00/src
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ver=$(grep python_version ./Pipfile | sed -e 's/^python_version\s=\s"\(.*\)"$/\1/')
echo "version=${ver}" >> "$GITHUB_OUTPUT"

- uses: actions/setup-python@v5.0.0
- uses: actions/setup-python@v5.2.0
with:
python-version: ${{ steps.python-version.outputs.version }}

Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ src/.vscode/
build/

# Log files
data/**/logs/
**/logs/

# CSIPCE
scripts/tmp_cspice/
Expand All @@ -34,3 +34,9 @@ Icon

# Python
__pycache__/

# Setting files
settings/environment/cspice
settings/environment/space_weather
settings/environment/gravity_field
settings/environment/star_catalogue
29 changes: 17 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13)
project(S2E
LANGUAGES CXX
DESCRIPTION "S2E: Spacecraft Simulation Environment"
VERSION 7.2.9
VERSION 8.0.0
)

# build config
Expand Down Expand Up @@ -41,8 +41,8 @@ if(NOT DEFINED C2A_NAME)
endif()

## Directory path for ini files
if(NOT DEFINED INI_FILE_DIR_FROM_EXE)
set(INI_FILE_DIR_FROM_EXE ../../data/sample/initialize_files)
if(NOT DEFINED SETTINGS_DIR_FROM_EXE)
set(SETTINGS_DIR_FROM_EXE ../../settings)
endif()

if(NOT DEFINED EXT_LIB_DIR_FROM_EXE)
Expand Down Expand Up @@ -89,7 +89,11 @@ add_subdirectory(src/environment/local)
add_subdirectory(src/dynamics)
add_subdirectory(src/disturbances)
add_subdirectory(src/components)
add_subdirectory(src/library)
add_subdirectory(src/math_physics)
add_subdirectory(src/setting_file_reader)
add_subdirectory(src/logger)
add_subdirectory(src/utilities)
add_subdirectory(ExtLibraries/inih)

set(SOURCE_FILES
src/s2e.cpp
Expand Down Expand Up @@ -178,13 +182,14 @@ endif()
#target_link_libraries(${PROJECT_NAME} ${NRLMSISE00_LIB})

# Initialize link
target_link_libraries(COMPONENT DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT LIBRARY)
target_link_libraries(DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT SIMULATION LIBRARY)
target_link_libraries(DISTURBANCE DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT LIBRARY)
target_link_libraries(SIMULATION DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT DISTURBANCE LIBRARY)
target_link_libraries(GLOBAL_ENVIRONMENT ${CSPICE_LIB} LIBRARY)
target_link_libraries(LOCAL_ENVIRONMENT GLOBAL_ENVIRONMENT ${CSPICE_LIB} LIBRARY)
target_link_libraries(LIBRARY ${NRLMSISE00_LIB})
target_link_libraries(COMPONENT DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT MATH_PHYSICS SETTING_FILE_READER LOGGER UTILITIES)
target_link_libraries(DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT SIMULATION MATH_PHYSICS)
target_link_libraries(DISTURBANCE DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT MATH_PHYSICS)
target_link_libraries(SIMULATION DYNAMICS GLOBAL_ENVIRONMENT LOCAL_ENVIRONMENT DISTURBANCE MATH_PHYSICS)
target_link_libraries(GLOBAL_ENVIRONMENT ${CSPICE_LIB} MATH_PHYSICS)
target_link_libraries(LOCAL_ENVIRONMENT GLOBAL_ENVIRONMENT ${CSPICE_LIB} MATH_PHYSICS)
target_link_libraries(MATH_PHYSICS ${NRLMSISE00_LIB})
target_link_libraries(SETTING_FILE_READER INIH)

target_link_libraries(${PROJECT_NAME} DYNAMICS)
target_link_libraries(${PROJECT_NAME} DISTURBANCE)
Expand Down Expand Up @@ -235,7 +240,7 @@ if(GOOGLE_TEST)

add_executable(${TEST_PROJECT_NAME} ${TEST_FILES})
target_link_libraries(${TEST_PROJECT_NAME} gtest gtest_main gmock)
target_link_libraries(${TEST_PROJECT_NAME} LIBRARY)
target_link_libraries(${TEST_PROJECT_NAME} MATH_PHYSICS)
include_directories(${TEST_PROJECT_NAME})
add_test(NAME s2e-test COMMAND ${TEST_PROJECT_NAME})
enable_testing()
Expand Down
6 changes: 5 additions & 1 deletion ExtLibraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ if(NOT DEFINED EXT_LIB_DIR)
set(EXT_LIB_DIR "${CMAKE_CURRENT_LIST_DIR}/../../ExtLibraries/")
endif()

if(NOT DEFINED SETTINGS_DIR)
set(SETTINGS_DIR "${CMAKE_CURRENT_LIST_DIR}/../settings/")
endif()

# windows path
string(REPLACE "\\" "/" EXT_LIB_DIR ${EXT_LIB_DIR})
string(REPLACE "\\" "/" SETTINGS_DIR ${SETTINGS_DIR})

message("ExtLibraries install dir: ${EXT_LIB_DIR}")

add_subdirectory(nrlmsise00)
add_subdirectory(cspice)
add_subdirectory(GeoPotential)
add_subdirectory(lunar_gravity_field)
11 changes: 0 additions & 11 deletions ExtLibraries/GeoPotential/CMakeLists.txt

This file was deleted.

4 changes: 3 additions & 1 deletion ExtLibraries/cspice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include(FetchContent)
set(CSPICE_INSTALL_DIR ${EXT_LIB_DIR}/cspice)
set(GENERIC_KERNEL_URL_BASE https://naif.jpl.nasa.gov/pub/naif/generic_kernels)

set(GENERIC_KERNEL_INSTALL_DIR ${SETTINGS_DIR}/environment/cspice)

if(WIN32)
# Windows
if(BUILD_64BIT)
Expand Down Expand Up @@ -118,5 +120,5 @@ configure_file(
)

install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/generic_kernels
DESTINATION ${CSPICE_INSTALL_DIR}
DESTINATION ${GENERIC_KERNEL_INSTALL_DIR}
)
9 changes: 9 additions & 0 deletions ExtLibraries/inih/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
project(INIH)
cmake_minimum_required(VERSION 3.13)

add_library(${PROJECT_NAME} STATIC
ini.c
cpp/INIReader.cpp
)

include(../../common.cmake)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion ExtLibraries/lunar_gravity_field/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.18)

include(FetchContent)

set(LUNAR_GRAVITY_FIELD_INSTALL_DIR ${EXT_LIB_DIR}/lunar_gravity_field)
set(LUNAR_GRAVITY_FIELD_INSTALL_DIR ${SETTINGS_DIR}/environment/gravity_field)

set(LUNAR_GRAVITY_FIELD_URL_BASE https://pds-geosciences.wustl.edu/grail/grail-l-lgrs-5-rdr-v1/grail_1001/shadr)
set(LUNAR_GRAVITY_FIELD_FILE gggrx_1200a_sha.tab)
Expand Down
3 changes: 2 additions & 1 deletion ExtLibraries/nrlmsise00/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include(ExternalProject)
include(FetchContent)

set(NRLMSISE_INSTALL_DIR ${EXT_LIB_DIR}/nrlmsise00)
set(TABLE_FILE_INSTALL_DIR ${SETTINGS_DIR}/environment/space_weather)

set(NRLMSISE_TABLE_URL_BASE ftp://ftp.agi.com/pub/DynamicEarthData)
set(NRLMSISE_TABLE_FILE SpaceWeather-v1.2.txt)
Expand Down Expand Up @@ -90,5 +91,5 @@ install(FILES ${NRLMSISE_TMP_DIR}/nrlmsise-00_data.c

## install table
install(FILES ${NRLMSISE_TMP_DIR}/${NRLMSISE_TABLE_FILE}
DESTINATION ${NRLMSISE_INSTALL_DIR}/table
DESTINATION ${TABLE_FILE_INSTALL_DIR}
)
2 changes: 1 addition & 1 deletion common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${S2E_DIR}/src)
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

# Directory path setting
target_compile_definitions(${PROJECT_NAME} PRIVATE "INI_FILE_DIR_FROM_EXE=\"${INI_FILE_DIR_FROM_EXE}\"")
target_compile_definitions(${PROJECT_NAME} PRIVATE "SETTINGS_DIR_FROM_EXE=\"${SETTINGS_DIR_FROM_EXE}\"")
target_compile_definitions(${PROJECT_NAME} PRIVATE "EXT_LIB_DIR_FROM_EXE=\"${EXT_LIB_DIR_FROM_EXE}\"")
target_compile_definitions(${PROJECT_NAME} PRIVATE "CORE_DIR_FROM_EXE=\"${CORE_DIR_FROM_EXE}\"")

Expand Down
Loading