Skip to content

Commit

Permalink
[temp] update tools (dev version)
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Feb 10, 2024
1 parent dabf4e0 commit 5fef3e9
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 18 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/cyphal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,27 @@ jobs:
fetch-depth: 0

- name: Install dependencies
run: ./scripts/tools/install_for_ubuntu.sh --yes
run: |
pip install pyserial python-can pydronecan pycyphal pytest pytest-asyncio yakut
pip install -i https://test.pypi.org/simple/ raccoonlab-tools
pip install -U nunavut
sudo apt-get install -y gcc-arm-none-eabi stlink-tools
- run: make cyphal

- name: Archive .bin file
uses: actions/upload-artifact@v3
with:
name: cyphal_firmware.bin
path: build/obj/example.bin
if-no-files-found: error

- name: Archive .elf file
uses: actions/upload-artifact@v3
with:
name: cyphal_firmware.elf
path: build/obj/example.elf
if-no-files-found: error

sitl:
runs-on: ubuntu-22.04
Expand All @@ -34,14 +42,24 @@ jobs:
submodules: recursive
fetch-depth: 0

- name: Clone Cyphal DSDL
run: |
mkdir -p /home/runner/.cyphal/zubax_dsdl
git clone https://github.com/Zubax/zubax_dsdl.git /home/runner/.cyphal/zubax_dsdl
mkdir -p /home/runner/.cyphal/public_regulated_data_types
git clone https://github.com/OpenCyphal/public_regulated_data_types.git /home/runner/.cyphal/public_regulated_data_types
- name: Install dependencies
run: |
./scripts/tools/install_for_ubuntu.sh --yes
pip install pytest
pip install pyserial python-can pydronecan pycyphal pytest pytest-asyncio yakut
pip install -i https://test.pypi.org/simple/ raccoonlab-tools
pip install -U nunavut
sudo apt-get install -y linux-modules-extra-$(uname -r)
- run: make sitl_cyphal
- run: |
export REG_DATA_TYPE_PATH="$PWD/Libs/Cyphal/Libs/public_regulated_data_types/uavcan $PWD/Libs/Cyphal/Libs/public_regulated_data_types/reg"
make run &
cd scripts/tools/cyphal
cd scripts/tools/scripts/cyphal
source init.sh -i slcan0 -n 127 -v
./specification_checker.py
rl-test-cyphal-specification -k "not test_unique_id"
21 changes: 13 additions & 8 deletions .github/workflows/dronecan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
- name: Checkout Dronecan
run: cd Libs/Dronecan && git checkout bb50fad # v0.3.1

- name: Install dependencies
run: ./scripts/tools/install_for_ubuntu.sh --yes
- name: Inscripts/tools/stall dependencies
run: |
sudo apt-get install -y gcc-arm-none-eabi stlink-tools
- run: make dronecan

Expand All @@ -41,10 +42,14 @@ jobs:
run: cd Libs/Dronecan && git checkout bb50fad # v0.3.1

- name: Install dependencies
run: ./scripts/tools/install_for_ubuntu.sh --yes

- name: Build SITL DroneCAN
run: make sitl_dronecan
run: |
pip install pyserial python-can pydronecan pycyphal pytest pytest-asyncio yakut
pip install -i https://test.pypi.org/simple/ raccoonlab-tools
sudo apt-get install -y linux-modules-extra-$(uname -r)
- name: Run SITL for 5 seconds
run: timeout 5s make run || res=$?; if [[ $res -ne 124 && $res -ne 0 ]]; then exit $res; fi
- run: make sitl_dronecan
- run: |
make run &
cd scripts/tools/scripts/cyphal
source init.sh -i slcan0 -n 127 -v
rl-test-dronecan-specification
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ check_submodules:
echo "[INFO] Directory is fine"; \
fi
upload:
./scripts/tools/stm32/flash.sh ${BUILD_OBJ_DIR}/example.bin
rl-upload-firmware --binary ${BUILD_OBJ_DIR}/example.bin
run:
./scripts/tools/can/vcan.sh slcan0
./scripts/tools/scripts/can/create_slcan.sh -i slcan0 -v
./build/obj/example.out
autogenerate_git_related_headers:
mkdir -p ${BUILD_DIR}/src
./scripts/tools/stm32/generate_software_version.sh ${BUILD_DIR}/src
./scripts/tools/scripts/stm32/generate_software_version.sh ${BUILD_DIR}/src
clean:
-rm -fR ${BUILD_OBJ_DIR}/
distclean:
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools
Submodule tools updated 88 files
+8 −5 .github/workflows/cyphal_init.yml
+15 −15 .github/workflows/specification_checker.yml
+2 −0 .gitignore
+170 −28 README.md
+0 −64 can/create_slcan_from_serial.sh
+0 −39 can/get_sniffer_symlink.sh
+0 −21 can/test.py
+0 −80 cyphal/README.md
+0 −22 cyphal/get_subjects.sh
+0 −271 cyphal/specification_checker.py
+0 −28 cyphal/sub.sh
+0 −7 cyphal/test_registers.sh
+0 −190 cyphal/utils.py
+0 −25 dronecan/config.sh
+0 −121 dronecan/gnss.py
+0 −381 dronecan/param_setter.py
+0 −3 ds015/README.md
+0 −10 ds015/physics/kinematics/geodetic/Point.0.1.dsdl
+0 −14 ds015/service/gnss/Covariance.0.1.dsdl
+0 −33 ds015/service/gnss/Gnss.0.1.dsdl
+0 −11 ds015/service/gnss/RelativePosition.0.1.dsdl
+0 −35 ds015/service/gnss/Status.0.1.dsdl
+0 −9 nodes/README.md
+0 −31 nodes/common.py
+0 −34 nodes/gnss/README.md
+0 −3 nodes/gnss/_gnss/README.md
+0 −40 nodes/gnss/_gnss/configurator.py
+0 −24 nodes/gnss/_gnss/default_registers.yaml
+0 −24 nodes/gnss/_gnss/full_registers.yaml
+0 −2 nodes/gnss/_gnss/requirements.txt
+0 −15 nodes/gnss/_gnss/save_config.sh
+0 −81 nodes/gnss/_gnss/ubx_cmd.py
+0 −66 nodes/gnss/test.py
+0 −15 nodes/latest_firmware.yml
+0 −429 nodes/monitor.py
+0 −40 nodes/test.py
+41 −0 pyproject.toml
+12 −0 requirements.txt
+3 −3 scripts/can/README.md
+71 −8 scripts/can/create_slcan.sh
+0 −0 scripts/can/install.sh
+0 −0 scripts/can/vcan.sh
+172 −0 scripts/cyphal/README.md
+4 −33 scripts/cyphal/init.sh
+10 −0 scripts/cyphal/setup_linux_slcan.sh
+10 −0 scripts/cyphal/setup_linux_socketcan.sh
+10 −0 scripts/cyphal/setup_windows_slcan.ps1
+36 −0 scripts/deploy.sh
+0 −0 scripts/install_for_ubuntu.sh
+10 −0 scripts/sniffer/README.md
+26 −0 scripts/sniffer/cyphal.py
+13 −0 scripts/sniffer/dronecan_slcan.py
+34 −0 scripts/sniffer/pyserial.py
+10 −0 scripts/sniffer/python_can_slcan.py
+6 −0 scripts/sniffer/setup_linux.sh
+0 −0 scripts/stm32/README.md
+0 −0 scripts/stm32/build_cubeide.sh
+0 −0 scripts/stm32/flash.sh
+0 −0 scripts/stm32/generate_git_hash.sh
+6 −3 scripts/stm32/generate_software_version.sh
+62 −0 src/raccoonlab_tools/common/colorizer.py
+89 −0 src/raccoonlab_tools/common/device_manager.py
+146 −0 src/raccoonlab_tools/common/firmware_manager.py
+94 −0 src/raccoonlab_tools/common/node.py
+30 −0 src/raccoonlab_tools/common/printer.py
+129 −0 src/raccoonlab_tools/common/protocol_parser.py
+0 −3 src/raccoonlab_tools/cyphal/fragments.py
+10 −9 src/raccoonlab_tools/cyphal/gnss.py
+259 −0 src/raccoonlab_tools/cyphal/utils.py
+40 −0 src/raccoonlab_tools/dronecan/global_node.py
+202 −0 src/raccoonlab_tools/dronecan/utils.py
+14 −0 src/raccoonlab_tools/scripts/common/check_protocol.py
+45 −0 src/raccoonlab_tools/scripts/common/get_info.py
+31 −0 src/raccoonlab_tools/scripts/common/upload_firmware.py
+361 −0 src/raccoonlab_tools/scripts/cyphal/monitor.py
+441 −0 src/raccoonlab_tools/scripts/cyphal/test_specification.py
+24 −17 src/raccoonlab_tools/scripts/cyphal/ublox_center.py
+59 −0 src/raccoonlab_tools/scripts/dronecan/config.py
+19 −0 src/raccoonlab_tools/scripts/dronecan/get_params.py
+12 −29 src/raccoonlab_tools/scripts/dronecan/servo_tester/README.md
+3 −0 src/raccoonlab_tools/scripts/dronecan/servo_tester/node_parser.py
+3 −0 src/raccoonlab_tools/scripts/dronecan/servo_tester/servo_tester.py
+33 −0 src/raccoonlab_tools/scripts/dronecan/set_params.py
+14 −0 src/raccoonlab_tools/scripts/dronecan/sim_battery/README.md
+12 −9 src/raccoonlab_tools/scripts/dronecan/sim_battery/sim_battery.py
+80 −0 src/raccoonlab_tools/scripts/dronecan/test_gps_mag_baro.py
+73 −0 src/raccoonlab_tools/scripts/dronecan/test_specification.py
+0 −40 tests/params_example.yaml

0 comments on commit 5fef3e9

Please sign in to comment.