-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nos3#84-fprime-checkout' into dev
- Loading branch information
Showing
46 changed files
with
662 additions
and
54 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
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
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
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,9 +1,22 @@ | ||
<nos3-mission-cfg> | ||
<start-time>814048200.0</start-time> | ||
<gsw>cosmos</gsw> | ||
<!-- Note fprime gsw and fsw only operational in sc-minimal-config.xml --> | ||
|
||
<!-- Ground Software --> | ||
<!-- cosmos, openc3, or fprime --> | ||
<gsw>cosmos</gsw> | ||
|
||
<!-- Flight Software --> | ||
<!-- cfs or fprime --> | ||
<fsw>cfs</fsw> | ||
|
||
<!-- Number of spacecraft --> | ||
<number-spacecraft>1</number-spacecraft> | ||
|
||
<!-- Spacecraft 1 Configuration --> | ||
<!-- sc-full-config.xml or sc-minimal-config.xml --> | ||
<sc-1-cfg>sc-full-config.xml</sc-1-cfg> | ||
<!-- | ||
<sc-2-cfg>sc-minimal-config.xml</sc-2-cfg> | ||
--> | ||
</nos3-mission-cfg> | ||
|
||
<!-- Spacecraft N Configuration --> | ||
<!-- <sc-N-cfg>sc-minimal-config.xml</sc-N-cfg> --> | ||
</nos3-mission-cfg> |
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
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
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
Empty file.
Submodule arducam
updated
36 files
Submodule generic_adcs
updated
38 files
Submodule generic_css
updated
22 files
Submodule generic_eps
updated
22 files
Submodule generic_fss
updated
22 files
Submodule generic_imu
updated
22 files
Submodule generic_mag
updated
27 files
Submodule generic_radio
updated
22 files
Submodule generic_reaction_wheel
updated
16 files
Submodule generic_star_tracker
updated
22 files
Submodule generic_thruster
updated
9 files
Submodule generic_torquer
updated
18 files
Submodule novatel_oem615
updated
36 files
Submodule sample
updated
34 files
Submodule syn
updated
2348 files
Submodule ds
updated
21 files
+0 −2 | fsw/inc/ds_extern_typedefs.h | |
+0 −2 | fsw/inc/ds_msg.h | |
+4 −3 | fsw/src/ds_app.c | |
+2 −0 | fsw/src/ds_app.h | |
+1 −1 | fsw/src/ds_appdefs.h | |
+28 −28 | fsw/src/ds_cmds.c | |
+1 −1 | fsw/src/ds_dispatch.c | |
+121 −128 | fsw/src/ds_file.c | |
+1 −3 | fsw/src/ds_file.h | |
+31 −29 | fsw/src/ds_table.c | |
+10 −10 | fsw/src/ds_table.h | |
+0 −32 | fsw/tables/ds_file_tbl.c | |
+11 −11 | unit-test/ds_app_tests.c | |
+63 −64 | unit-test/ds_cmds_tests.c | |
+45 −45 | unit-test/ds_dispatch_tests.c | |
+118 −159 | unit-test/ds_file_tests.c | |
+5 −4 | unit-test/ds_table_tests.c | |
+3 −3 | unit-test/stubs/ds_file_stubs.c | |
+30 −30 | unit-test/stubs/ds_table_stubs.c | |
+0 −1 | unit-test/stubs/stub_basetypes.h | |
+2 −2 | unit-test/utilities/ds_test_utils.h |
Submodule hwlib
updated
17 files
+1 −1 | fsw/linux/libcan.c | |
+3 −3 | fsw/linux/libgpio.c | |
+24 −24 | fsw/linux/libi2c.c | |
+0 −4 | fsw/linux/libsocket.c | |
+0 −1 | fsw/linux/libspi.c | |
+12 −15 | fsw/linux/libtrq.c | |
+13 −13 | fsw/linux/libuart.c | |
+2 −0 | fsw/public_inc/hwlib.h | |
+7 −2 | fsw/src/hwlib.c | |
+58 −0 | fsw/stubs/libcan.c | |
+38 −0 | fsw/stubs/libgpio.c | |
+50 −0 | fsw/stubs/libi2c.c | |
+83 −0 | fsw/stubs/libsocket.c | |
+60 −0 | fsw/stubs/libspi.c | |
+116 −0 | fsw/stubs/libtrq.c | |
+42 −0 | fsw/stubs/libtrq_ioctl.h | |
+48 −0 | fsw/stubs/libuart.c |
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,69 @@ | ||
cmake_minimum_required(VERSION 2.6.4) | ||
|
||
project (sample_checkout) | ||
|
||
if (NOT DEFINED TGTNAME) | ||
message(FATAL_ERROR "TGTNAME must be defined on the cmake command line (e.g. \"-DTGTNAME=cpu1\")") | ||
endif() | ||
|
||
# if(${TGTNAME} STREQUAL cpu1) | ||
# SET(CMAKE_C_FLAGS_INIT "-m32" CACHE STRING "C Flags required by platform") | ||
# SET(CMAKE_C_FLAGS "-m32" CACHE STRING "C Flags required by platform") | ||
# endif() | ||
|
||
include(../../ComponentSettings.cmake) | ||
|
||
if(${TGTNAME} STREQUAL cpu1) | ||
find_path(_ITC_CMAKE_MODULES_ | ||
NAMES FindITC_Common.cmake | ||
PATHS ${ITC_CMAKE_MODULES} | ||
${ITC_DEV_ROOT}/cmake/modules | ||
$ENV{ITC_DEV_ROOT}/cmake/modules | ||
/usr/local/cmake/modules | ||
/usr/cmake/modules) | ||
if(NOT _ITC_CMAKE_MODULES_) | ||
message(WARNING "Unable to find ITC CMake Modules") | ||
endif() | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${_ITC_CMAKE_MODULES_}) | ||
|
||
find_package(NOSENGINE REQUIRED QUIET COMPONENTS common transport client uart can i2c spi) | ||
endif() | ||
|
||
include_directories("./") | ||
include_directories("../fsw/platform_inc") | ||
include_directories("../fsw/src") | ||
include_directories("../../../fsw/apps/hwlib/fsw/public_inc") | ||
|
||
set(sample_checkout_src | ||
test.cpp | ||
../fsw/src/sample_device.c | ||
) | ||
|
||
if(${TGTNAME} STREQUAL cpu1) | ||
include_directories("../../../fsw/apps/hwlib/sim/inc") | ||
set(sample_checkout_src | ||
${sample_checkout_src} | ||
../../../fsw/apps/hwlib/sim/src/libuart.c | ||
../../../fsw/apps/hwlib/sim/src/libcan.c | ||
../../../fsw/apps/hwlib/sim/src/libi2c.c | ||
../../../fsw/apps/hwlib/sim/src/libspi.c | ||
../../../fsw/apps/hwlib/sim/src/nos_link.c | ||
) | ||
set(sample_checkout_libs | ||
${ITC_Common_LIBRARIES} | ||
${NOSENGINE_LIBRARIES} | ||
) | ||
endif() | ||
if(${TGTNAME} STREQUAL cpu2) | ||
set(sample_checkout_src | ||
${sample_checkout_src} | ||
../../../fsw/apps/hwlib/fsw/linux/libuart.c | ||
) | ||
endif() | ||
|
||
add_executable(sample_checkout ${sample_checkout_src}) | ||
target_link_libraries(sample_checkout ${sample_checkout_libs}) | ||
|
||
if(${TGTNAME} STREQUAL cpu1) | ||
set_target_properties(sample_checkout PROPERTIES COMPILE_FLAGS " -g" LINK_FLAGS " -g") | ||
endif() |
Submodule fprime-nos3
added at
d10dec
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,11 @@ | ||
#!/bin/bash | ||
# | ||
# Convenience script for NOS3 development | ||
# Use with the Dockerfile in the deployment repository | ||
# https://github.com/nasa-itc/deployment | ||
# | ||
|
||
cd fsw/fprime/fprime-nos3 | ||
. fprime-venv/bin/activate | ||
fprime-util build | ||
|
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,32 @@ | ||
#!/bin/bash -i | ||
# | ||
# Convenience script for NOS3 development | ||
# Use with the Dockerfile in the deployment repository | ||
# https://github.com/nasa-itc/deployment | ||
# | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source $SCRIPT_DIR/env.sh | ||
|
||
|
||
# Check that local NOS3 directory exists | ||
if [ ! -d $USER_NOS3_DIR ]; then | ||
echo "" | ||
echo " Need to run make prep first!" | ||
echo "" | ||
exit 1 | ||
fi | ||
|
||
# Check that configure build directory exists | ||
if [ ! -d $BASE_DIR/cfg/build ]; then | ||
echo "" | ||
echo " Need to run make config first!" | ||
echo "" | ||
exit 1 | ||
fi | ||
|
||
# Make flight software build directory | ||
mkdir -p $BASE_DIR/fsw/build | ||
|
||
# Build | ||
$DFLAGS_CPUS -v $BASE_DIR:$BASE_DIR --name "nos_build_fsw" -w $BASE_DIR $DBOX make -j$NUM_CPUS -e FLIGHT_SOFTWARE=cfs build-fsw |
Oops, something went wrong.