forked from iNavFlight/inav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into abo_fw_alt_vel_co…
…ntrol
- Loading branch information
Showing
50 changed files
with
1,829 additions
and
322 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## Building SITL | ||
|
||
### Linux and FreeBSD: | ||
Almost like normal, ruby, cmake and make are also required. | ||
With cmake, the option "-DSITL=ON" must be specified. | ||
|
||
``` | ||
mkdir build_SITL | ||
cd build_SITL | ||
cmake -DSITL=ON .. | ||
make | ||
``` | ||
|
||
### Windows: | ||
Compile under cygwin, then as in Linux. | ||
Copy cygwin1.dll into the directory, or include cygwin's /bin/ directory in the environment variable PATH. | ||
|
||
If the build fails (segfault, possibly out of memory), adding `-DCMAKE_BUILD_TYPE=MinRelSize` to the `cmake` command may help. | ||
|
||
#### Build manager | ||
|
||
`ninja` may also be used (parallel builds without `-j $(nproc)`): | ||
|
||
``` | ||
cmake -GNinja -DSITL=ON .. | ||
ninja | ||
``` | ||
|
||
### Compiler requirements | ||
|
||
* Modern GCC. Must be a *real* GCC, macOS faking it with clang will not work. GCC 10 to GCC 13 are known to work. | ||
* Unix sockets networking. Cygwin is required on Windows (vice `winsock`). | ||
* Pthreads | ||
|
||
## Supported environments | ||
|
||
* Linux on x86_64, ia-32, Aarch64 (e.g. Rpi4), RISCV64 (e.g. VisionFive2) | ||
* Windows on x86_64 | ||
* FreeBSD (x86_64 at least). |
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,19 @@ | ||
# Building in Gitpod | ||
|
||
Gitpod offers an online build environment for building INAV targets. | ||
## Setting up the environment and building targets | ||
|
||
1. Go to https://gitpod.io/new | ||
1. Paste `https://github.com/iNavFlight/inav/tree/[version]` into the field called "Select a repository". | ||
1. Ensure that you substitute [version] (e.g. 7.1.0) with the version number of INAV that you want to build. | ||
1. Cick on the link that shows in the drop down and Gitpod will atomatically selects the adequate Editor and Browser. | ||
1. Leave the other fields as default and click "Continue". Your build environment will be created. | ||
1. At the bottom of the page, you will see a command line. Type `make [TARGET]` and wait for the target to be built. | ||
1. Once the build has finished, navigate to the build folder using `cd build`. | ||
1. Once in the folder, run `objcopy -O ihex -R .eeprom [TARGET].elf [TARGET].hex` to convert the `.elf` file to a `.hex` file. | ||
1. Your new target `.hex` binary will be located in a folder called `bin`, which can be found at the top left of the page. | ||
|
||
|
||
NOTE: You can use this method to build your forks as well. Just paste in the link to your fork and follow the rest of the steps. | ||
|
||
You are done! |
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
Oops, something went wrong.