Skip to content

Commit

Permalink
Merge pull request #671 from ut-issl/main
Browse files Browse the repository at this point in the history
Merge main into develop for hotfix #670
  • Loading branch information
conjikidow authored Aug 23, 2024
2 parents 768107b + 518e9a9 commit d94af62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 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.7
VERSION 7.2.8
)

# build config
Expand Down Expand Up @@ -109,7 +109,7 @@ add_executable(${PROJECT_NAME} ${SOURCE_FILES})

## cspice library
if(APPLE)
if(APPLE_SILICON)
if(APPLE_SILICON)
# APPLE Silicon
set(CSPICE_LIB_DIR ${CSPICE_DIR}/cspice_apple_silicon64/lib)
else()
Expand Down Expand Up @@ -151,7 +151,7 @@ endif()
## nrlmsise00 library
if(CYGWIN)
SET (CMAKE_FIND_LIBRARY_SUFFIXES ".a")
find_library(NRLMSISE00_LIB
find_library(NRLMSISE00_LIB
NAMES libnrlmsise00.a
PATHS ${NRLMSISE00_DIR}/lib)
elseif(UNIX)
Expand All @@ -167,11 +167,11 @@ elseif(UNIX)
elseif(WIN32)
SET (CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
if(BUILD_64BIT)
find_library(NRLMSISE00_LIB
find_library(NRLMSISE00_LIB
NAMES libnrlmsise00.lib
PATHS ${NRLMSISE00_DIR}/lib64)
else()
find_library(NRLMSISE00_LIB
find_library(NRLMSISE00_LIB
NAMES libnrlmsise00.lib
PATHS ${NRLMSISE00_DIR}/lib)
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/components/real/cdh/on_board_computer_with_c2a.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ObcWithC2a : public OnBoardComputer {
*/
int ConnectComPort(int port_id, int tx_buffer_size, int rx_buffer_size) override;
/**
* @fn ConnectComPort
* @fn CloseComPort
* @brief Close UART communication port between OnBoardComputer and a component
* @param [in] port_id: Port ID
* @return -1: error, 0: success
Expand Down
3 changes: 2 additions & 1 deletion src/components/real/power/power_control_unit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class PowerControlUnit : public Component, public ILoggable {
* @brief Return power port information
* @param port_id: Power port ID
*/
inline PowerPort* GetPowerPort(const int port_id) { return power_ports_[port_id]; };
inline PowerPort* GetPowerPort(const int port_id) { return power_ports_.at(port_id); };
inline const PowerPort* GetPowerPort(const int port_id) const { return power_ports_.at(port_id); };

// Port control functions
/**
Expand Down

0 comments on commit d94af62

Please sign in to comment.