From 7c9dfe9250249442a2a1fa587fb4f5586091a04b Mon Sep 17 00:00:00 2001 From: Brandon Sutherland Date: Fri, 28 Jun 2024 12:38:11 -0600 Subject: [PATCH 1/3] added workflows and files from old repo --- .github/workflows/build_pixracer_pro.yml | 17 ++++++++++++++ .github/workflows/build_varmint_10X.yml | 17 ++++++++++++++ .gitignore | 1 + LICENSE | 28 ++++++++++++++++++++++++ README.md | 8 ++++++- 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_pixracer_pro.yml create mode 100644 .github/workflows/build_varmint_10X.yml create mode 100644 .gitignore create mode 100644 LICENSE diff --git a/.github/workflows/build_pixracer_pro.yml b/.github/workflows/build_pixracer_pro.yml new file mode 100644 index 0000000..e90e7b9 --- /dev/null +++ b/.github/workflows/build_pixracer_pro.yml @@ -0,0 +1,17 @@ +name: Build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: install toolchain + run: sudo apt -y install gcc-arm-none-eabi + - name: check toolchain + run: arm-none-eabi-gcc --version + - name: build + run: cd pixracer_pro && mkdir build && cd build && cmake .. && make diff --git a/.github/workflows/build_varmint_10X.yml b/.github/workflows/build_varmint_10X.yml new file mode 100644 index 0000000..56bc37d --- /dev/null +++ b/.github/workflows/build_varmint_10X.yml @@ -0,0 +1,17 @@ +name: Build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: install toolchain + run: sudo apt -y install gcc-arm-none-eabi + - name: check toolchain + run: arm-none-eabi-gcc --version + - name: build + run: cd varmint_10X && mkdir build && cd build && cmake .. && make diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..78ab16f --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2024, AeroVironment Inc. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index c2060ef..7756444 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -Board Support for a couple of STM32H7x3 based flight controllers +# Varmint H7 + +This repository contains a board implementation of the [ROSflight firmware](https://github.com/rosflight/rosflight_firmware) for AeroVironment's Varmint FCU package, a STM32H753 based flight controller with a NVIDIA Jetson Orin NX on board. It also has an implementation for 3DR's [PixRacer Pro](https://docs.3dr.com/autopilots/pixracer-pro/#downloads) autopilot, which has a very similar configuration to the Varmint board. + +This code is based off of a [STM32cubeMX](https://www.st.com/en/development-tools/stm32cubemx.html) project, which enables quick configuration of the H7 processor. STM32cubeMX works by generating code for the configuration specified by the STM32cubeMX software. The generated code contains sections of "BEGIN USER CODE" and "END USER CODE" that the developer can then add their code inside. User code inside of these sections will persist between reconfigurations of the H7, while anything outside will be overwritten. + +This repository can be compiled as a standalone project or as a submodule of the firmware. Standalone compilation is only used for testing, as none of the ROSflight firmware functionality is included. When compiling with the firmware repository, use the CMakeLists.txt file found in the root of the firmware repo. From d8c6d68e5120227cb41b56966ab05258b5f7b386 Mon Sep 17 00:00:00 2001 From: Brandon Sutherland Date: Fri, 28 Jun 2024 12:42:25 -0600 Subject: [PATCH 2/3] updated workflow names --- .github/workflows/build_pixracer_pro.yml | 2 +- .github/workflows/build_varmint_10X.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_pixracer_pro.yml b/.github/workflows/build_pixracer_pro.yml index e90e7b9..460a0d5 100644 --- a/.github/workflows/build_pixracer_pro.yml +++ b/.github/workflows/build_pixracer_pro.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Pixracer Pro on: [push] diff --git a/.github/workflows/build_varmint_10X.yml b/.github/workflows/build_varmint_10X.yml index 56bc37d..5500e86 100644 --- a/.github/workflows/build_varmint_10X.yml +++ b/.github/workflows/build_varmint_10X.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Varmint 10X on: [push] From 6e2457289c3ae160a44eea837fdcbc129d5174e4 Mon Sep 17 00:00:00 2001 From: Brandon Sutherland Date: Fri, 28 Jun 2024 12:44:38 -0600 Subject: [PATCH 3/3] added status badges for workflows --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7756444..f3283e5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Varmint 10X](https://github.com/rosflight/varmint_h7/actions/workflows/build_varmint_10X.yml/badge.svg)](https://github.com/rosflight/varmint_h7/actions/workflows/build_varmint_10X.yml) [![Build Pixracer Pro](https://github.com/rosflight/varmint_h7/actions/workflows/build_pixracer_pro.yml/badge.svg)](https://github.com/rosflight/varmint_h7/actions/workflows/build_pixracer_pro.yml) + # Varmint H7 This repository contains a board implementation of the [ROSflight firmware](https://github.com/rosflight/rosflight_firmware) for AeroVironment's Varmint FCU package, a STM32H753 based flight controller with a NVIDIA Jetson Orin NX on board. It also has an implementation for 3DR's [PixRacer Pro](https://docs.3dr.com/autopilots/pixracer-pro/#downloads) autopilot, which has a very similar configuration to the Varmint board.