Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
341 commits
Select commit Hold shift + click to select a range
707133c
Add Smartport Master (#5724)
shellixyz Jul 20, 2020
1547aff
Merge remote-tracking branch 'origin' into dzikuvx-pcf8574-expander
DzikuVx Jul 20, 2020
0ee5341
Merge remote-tracking branch 'origin/master' into dzikuvx-task-aux
DzikuVx Jul 20, 2020
6f76bd5
Add bootloader and firmware update API (#5728)
shellixyz Jul 20, 2020
760ae1d
bulk erase if single sector
amfern Jul 21, 2020
b8d0a75
Merge pull request #5486 from iNavFlight/dzikuvx-task-aux
DzikuVx Jul 21, 2020
30d1323
Merge pull request #5338 from iNavFlight/dzikuvx-nav-cruise-improvements
DzikuVx Jul 22, 2020
21ef8fc
Added craft name to the osd armed page
craigmunday Jul 22, 2020
827ac04
Unify Global Functions and Logic Conditions into single entity
DzikuVx Jul 22, 2020
410db23
Merge remote-tracking branch 'origin/master' into dzikuvx-pcf8574-exp…
DzikuVx Jul 22, 2020
612367d
Merge pull request #5956 from iNavFlight/dzikuvx-hglrcf722-target
DzikuVx Jul 22, 2020
f83b54b
Merge pull request #5959 from iNavFlight/dzikuvx-pcf8574-expander
DzikuVx Jul 22, 2020
893e532
Merge branch 'master' into dzikuvx-logic-condition-global-function-un…
DzikuVx Jul 23, 2020
426d21a
Cleanup
DzikuVx Jul 23, 2020
2ad51de
[FRSKYOSD] Use new comments for grid drawing
fiam Jun 8, 2020
f50329b
[OSD] Add support for using widgets for drawing
fiam Jun 9, 2020
e786889
[OSD] Split OSD configuration into osdConfig_t and osdLayoutsConfig_t
fiam Jun 9, 2020
3ecd99b
[OSD] Add AHI settings for widget based AHI
fiam Jun 9, 2020
6b8f2ba
[OSD] Use sidebar widget for drawing sidebars when available
fiam Jun 14, 2020
144ba41
[OSD] Fix clearing of the local OSD buffer
fiam Jun 14, 2020
a25fcd5
[MSP/CLI] Constrain receive baud rates indices to their valid values
fiam Jun 15, 2020
2f8e86e
[FRSKYOSD] Add support for increasing the default data rate
fiam Jun 15, 2020
4021ba0
[BUILD] Fix compilation for targets without OSD
fiam Jun 15, 2020
4d1f21c
[OSD] Allow moving sidebars left and right
fiam Jun 20, 2020
ef5f3ec
[OSD] Change default counts per divisions in sidebars, make them conf…
fiam Jun 20, 2020
038862a
[CANVAS] Fix crash when retrieving the widgets for OSD without canvas
fiam Jun 22, 2020
606ea81
[CANVAS] New vario implementation for canvas
fiam Jun 22, 2020
694eed6
[CANVAS] Draw the crosshair centered on the display
fiam Jun 22, 2020
9bc355c
[WIDGETS] Increase AHI redrawing frequency from 10hz to 20hz
fiam Jun 22, 2020
4f3e7a3
[CMS] Wrap CMS updates in display transactions
fiam Jun 22, 2020
59f160f
[CANVAS] Fix leftover pixels when drawing the home direction arrow
fiam Jul 7, 2020
c9cc449
[CANVAS] Fix drawn sidebar scroll values for speed
fiam Jul 7, 2020
e8aac7d
[OSD] Add osd_force_grid
fiam Jul 7, 2020
d225f67
[TARGET] Initial cut on FLYWOO411
SeanTheITGuy Jun 27, 2020
7caa8b2
[TARGET] FLYWOOF411 fixups
digitalentity Jul 21, 2020
a0db810
[TARGET] Initial cut on FLYWOOF7DUAL target
digitalentity Jul 21, 2020
1794889
[TARGET] Enable PINIO on FLYWOOF7DUAL target; Add FLYWOOF411 and F7DU…
digitalentity Jul 21, 2020
75066b3
Merge pull request #5971 from iNavFlight/dzikuvx-logic-condition-glob…
DzikuVx Jul 23, 2020
d2f05b7
[NAV] Cleanup pos/vel controllers
digitalentity Jul 23, 2020
8ff3072
Merge branch 'master' into dzikuvx-mag-gain-calibration
DzikuVx Jul 23, 2020
e42ebfe
Merge pull request #5973 from iNavFlight/de_flywoo_targets
digitalentity Jul 24, 2020
3bdc3dd
Add magGain to MSP frame
DzikuVx Jul 24, 2020
cf3db04
Zero gain on mag calibration start
DzikuVx Jul 24, 2020
e520db6
Target for Foxeer F722 V2
DzikuVx Jul 24, 2020
e60bdff
Merge pull request #5981 from iNavFlight/dzikuvx-foxeer-f722-v2-target
digitalentity Jul 24, 2020
d21706e
[TESTS] Make sure all test cases run on its own
fiam May 14, 2020
074c4de
[TESTS] Use CMake to build and run tests
fiam May 14, 2020
55943a0
[SETTINGS] Cleanup the settings generator a bit
fiam May 16, 2020
30146b4
[SETTINGS] Add missing headers in PG_GENERAL_SETTINGS and PG_RPM_FILT…
fiam May 16, 2020
8035a59
[BUILD] Initial and very basic support for CMake
fiam May 16, 2020
ce3e539
Merge pull request #5729 from iNavFlight/agh_cmake_tests
fiam Jul 24, 2020
17e559e
Merge pull request #5857 from iNavFlight/agh_frskyosd_v2
fiam Jul 25, 2020
9c1bc1a
[CMS] fix editing of negative servo weights
snaewe Jul 24, 2020
a41a4de
Merge pull request #5980 from snaewe/sn/fix-cms-mixer-weight
digitalentity Jul 25, 2020
8611b37
[NAV] Allow using GPS altitude instead of barometer
digitalentity Jun 24, 2020
764f2b6
[NAV] Bump PG_POSITION_ESTIMATION_CONFIG version
digitalentity Jul 25, 2020
72c6c68
[DOCS] document flash_ commands (#5983)
stronnag Jul 25, 2020
56be63d
Merge pull request #5880 from iNavFlight/de_gps_alt_always
digitalentity Jul 27, 2020
b5633bb
add speedy bee f7 target
Mar 8, 2020
9576fa3
[BOXES] Expose constants for permanent box IDs for USER1 and USER2
fiam Jul 28, 2020
ae842aa
[SPEEDYBEEF7] Fix target compilation
fiam Jul 28, 2020
b6f26ff
[PINIO] Add support to targets to define PINIO pin flags
fiam Jul 28, 2020
9da3327
Merge pull request #5970 from craigmunday/craigmunday_craftname_osd_a…
digitalentity Jul 29, 2020
fbb7dc3
Merge branch 'master' into dzikuvx-gyro-ekf-refactor
DzikuVx Jul 30, 2020
4b14892
[NAV] Fallback to RTH in case of WP activation with no mission loaded…
digitalentity Jul 30, 2020
e4752db
Move Kalman setting to PID profile
DzikuVx Jul 30, 2020
d487b64
Merge pull request #5928 from iNavFlight/dzikuvx-gyro-ekf-refactor
DzikuVx Jul 30, 2020
03a014d
Bump the number of logic conditions to 32
DzikuVx Jul 31, 2020
101e98a
MSP2_BLACKBOX_CONFIG
DzikuVx Jul 31, 2020
316b391
Bump PG version
DzikuVx Jul 31, 2020
e4fe51c
Merge pull request #5997 from iNavFlight/de_wp_rth_fallback
digitalentity Jul 31, 2020
9cd076d
Merge pull request #6001 from iNavFlight/dzikuvx-increase-logic-condi…
DzikuVx Jul 31, 2020
f3da1c2
Add safehomes (#5995)
tonyyng Jul 31, 2020
6c5323a
fix frequency calculation
giacomo892 Aug 1, 2020
2025c15
Merge pull request #6009 from giacomo892/rpmfilterfix_giacomo892
DzikuVx Aug 1, 2020
f812d5c
Drop gyro method of ITerm relax
DzikuVx Jul 31, 2020
3ad5d03
Merge pull request #6006 from iNavFlight/dzikuvx-iterm-relax-simplifi…
DzikuVx Aug 1, 2020
591156e
Merge pull request #5992 from iNavFlight/agh_box_id_constants
fiam Aug 2, 2020
47822c0
Merge pull request #5993 from iNavFlight/agh_pinio_flags
fiam Aug 2, 2020
5ed01a8
Merge pull request #5991 from iNavFlight/agh_speedybeef7
fiam Aug 2, 2020
0a716e0
Merge pull request #5964 from amfern/fix-flashfs-halts-msp
digitalentity Aug 3, 2020
b7b75cd
Merge pull request #5974 from iNavFlight/de_nav_controller_cleanup
digitalentity Aug 3, 2020
d946907
Increase MAX_ADJUSTMENT_RANGE_COUNT to 20 (#6018)
shellixyz Aug 4, 2020
b9c221c
[SPEEDYBEEF7] Add support for disabling BT via PINIO
fiam Jul 28, 2020
fd7e382
[TARGETS] Add SPEEDYBEEF7 to release targets
fiam Aug 3, 2020
a53b1c0
Add FF to inflight adjustments
Scavanger Aug 8, 2020
8e6ed88
Set OneShgot125 as a default ESC protocol
DzikuVx Aug 9, 2020
8d61f4f
PG version bump
DzikuVx Aug 9, 2020
7083b12
Allow throttle_idle to be 0 for better 3D compatibility
DzikuVx Aug 9, 2020
d825ed6
Merge pull request #6029 from iNavFlight/dzikuvx-os125-default
digitalentity Aug 9, 2020
5c51930
Merge pull request #6011 from iNavFlight/agh_speedybee_pinio
fiam Aug 10, 2020
b3cd978
Merge pull request #6030 from iNavFlight/dzikuvx-throttle-idle-update
DzikuVx Aug 10, 2020
8c38a92
Fix the meaning of the `serialrx_inverted` setting for F.Port (#5454)
shellixyz Aug 11, 2020
a319cd6
[RX] Make halfDuplex (exposed as serialrx_halfduplex) a tristate
fiam Aug 10, 2020
2fda9ac
Merge pull request #6032 from iNavFlight/agh_half_duplex
fiam Aug 11, 2020
bf36513
Add F.Port2 support
shellixyz Jul 23, 2020
9866553
Disable SPRACINGF3EVO target
shellixyz Aug 4, 2020
a56a25a
Disable FURYF3 target
shellixyz Aug 4, 2020
64fa696
Add target for FrSky's R9 Pilot F765 fixed wing flight controller
shellixyz Jun 8, 2020
154a8ee
[R9PILOT] Use SERIAL_PORT_xxx for target configuration
fiam Aug 7, 2020
84f3774
[TARGETS] Rename R9_PILOT to FRSKYPILOT
fiam Aug 7, 2020
06c804a
[FRSKYPILOT] Update default IMU orientation for final board design
fiam Aug 7, 2020
40f4320
[FRSKYPILOT] Set serialrx_inverted to ON by default
shellixyz Aug 10, 2020
3a1e848
[FRSKYPILOT] Add to releases
shellixyz Aug 11, 2020
087ba1e
Merge pull request #6038 from shellixyz/misc/add_FRSKYPILOT_to_releases
digitalentity Aug 11, 2020
a9120cb
Add target for FrSky's ROVERF7 FC
shellixyz Jul 7, 2020
617a3a0
[no risk] fix typo in max7456.c (#6039)
qwhcr Aug 11, 2020
cde1312
Take into account video aspect ratio when drawing AHI (#5962)
shellixyz Aug 12, 2020
4ea9a5f
[OSD] Fix default value for osd_sidebar_horizontal_offset
fiam Aug 12, 2020
0d38a3a
Merge pull request #6041 from iNavFlight/agh_fix_sidebar_offset_default
fiam Aug 13, 2020
d13ba61
Merge branch 'master' into dzikuvx-mag-gain-calibration
DzikuVx Aug 14, 2020
0df8dee
Disable KFC32F3
DzikuVx Aug 14, 2020
6626121
Merge pull request #4446 from iNavFlight/dzikuvx-mag-gain-calibration
DzikuVx Aug 14, 2020
02093b3
[FRSKYPILOT] Update current sensor calibration (#6043)
shellixyz Aug 17, 2020
02dfee1
[RTH Estimator] Fix display condition (#6040)
shellixyz Aug 17, 2020
291d478
improvements
giacomo892 Aug 19, 2020
72f0be8
Created handlePIDAntiWindup. Changes FW behaviour to only activate an…
Airwide Aug 23, 2020
0115e2e
Include undocumented settings in docs (#6061)
nmaggioni Aug 24, 2020
fd24510
Improve the settings generator's error reporting (#6068)
shellixyz Aug 24, 2020
0811839
[BUILD] Port all f405 and f427 targets to cmake
fiam Jun 9, 2020
57e21bf
[BUILD] Fix .hex and .map generation with cmake
fiam Jun 9, 2020
fedabef
[BUILD] Add support for building F3 targets with cmake
fiam Jul 8, 2020
477fcfd
[BUILD] Add missing f405 based target ANYFC
fiam Jul 8, 2020
65c04ae
[BUILD] Build F7 based targets with cmake
fiam Jul 10, 2020
518e824
[BUILD] Refactor cmake macros and variable names
fiam Jul 10, 2020
fb9f61a
[BUILD] Use -Os for F3, -O2 for F4/F7 with cmake
fiam Jul 11, 2020
d6177e6
[BUILD] Add support for openocd helpers with cmake
fiam Jul 13, 2020
93723d0
[BUILD] Add support for svd generation with cmake
fiam Jul 13, 2020
9d054d1
[DEVELOPMENT] Update vscode config templates for inav development
fiam Jul 13, 2020
b9a5f95
[BUILD] Add missing targets to cmake
fiam Jul 25, 2020
bc327ea
[BUILD] Add missing/renamed sources to cmake sources list
fiam Jul 25, 2020
b9d3bc5
[BUILD] Add missing headers to main sources list
fiam Jul 25, 2020
49b9347
[BUILD] Print the number of targets for the current toolchain with cmake
fiam Jul 27, 2020
fd42e03
[BUILD] Add more compile options for stm32
fiam Jul 27, 2020
d0938cc
[CMAKE] Add support for bootloader targets
fiam Aug 9, 2020
0041cbc
[MISC] Fix warnings found by -Werror
fiam Aug 9, 2020
67974ef
[BUILD] Fix linker errors when building with -O0
fiam Aug 10, 2020
77e3040
[F4] Remove invalid UTF-8 from system_stm32f4xx.c
fiam Aug 10, 2020
bd490a5
[CMAKE] Add support for having targets that are not part of the release
fiam Aug 10, 2020
8f62efb
[CMAKE] Cleanup semihosting support
fiam Aug 10, 2020
1577784
[CMAKE] Allow running tests from the main source build
fiam Aug 12, 2020
7575cd4
[CMAKE] Use GetGitRevisionDescription.cmake to retrieve git rev
fiam Aug 14, 2020
e689bbe
[CMAKE] Add support for automatically downloading the arm compiler
fiam Aug 24, 2020
9ac514c
[CMAKE] Run all CI jobs using CMake
fiam Aug 24, 2020
fe24e61
[CMAKE] Consider warnings as errors during CI
fiam Aug 26, 2020
4db3889
[CMAKE] Increase project number in CMakeLists.txt to 2.6.0
fiam Aug 26, 2020
9712376
[CMAKE] Support cmake 3.13 and up
fiam Aug 26, 2020
d3fcada
[CMAKE] Add support for using Linux compiler binaries on FreeBSD
fiam Aug 26, 2020
227c4e1
[CMAKE] Prepend local compiler installation to PATH instead of appending
fiam Aug 26, 2020
056489d
[CMAKE] Add workaround for cmake -E rm with versions prior to 3.17
fiam Aug 26, 2020
888763f
[CMAKE] Cosmetic changes
fiam Aug 27, 2020
3b35829
Changed logic for anti windup deactivation for fixed wing
Airwide Aug 27, 2020
0879383
removed trailing whitspace
Airwide Aug 27, 2020
376e1a0
Merge pull request #5797 from marbalon/marbalon_eleres_rx_telemetry_e…
DzikuVx Aug 27, 2020
3e9f1f9
Moved Anti windup comment inside method
Airwide Aug 27, 2020
5c76b83
Fix MAG health reporting and calibration
DzikuVx Aug 27, 2020
493e342
Atomiclama and my mods
OptimusTi Aug 5, 2020
2cde375
Changed OSD_TX_MODE to OSD_RF_MODE
OptimusTi Aug 8, 2020
275b021
Changed menu sort
OptimusTi Aug 9, 2020
68f3f50
Updated OSD_RX_SNR_DB to use displayWrite
OptimusTi Aug 9, 2020
c3a338e
removed 2RSS. Only one is needed.
OptimusTi Aug 9, 2020
8b83c71
Update osd.c
OptimusTi Aug 10, 2020
182fe92
Removed RX Mode
OptimusTi Aug 16, 2020
63e2227
Finished removing rx mode
OptimusTi Aug 16, 2020
1ab9b3c
Updates to main osd.c
OptimusTi Aug 16, 2020
f50f27d
Update osd.c
OptimusTi Aug 16, 2020
b22bb5e
fixed some line indentations
OptimusTi Aug 18, 2020
ad6a4b7
Name changes
OptimusTi Aug 23, 2020
a356e5b
changed variable name just because
OptimusTi Aug 25, 2020
6f2b562
Restored old code that injects LQ into changel 17 for testing. I woul…
OptimusTi Aug 25, 2020
2d81ada
Clear LQ if telemetry lost.
OptimusTi Aug 26, 2020
09e2c5a
added blink to LQ when telemetry is lost
OptimusTi Aug 27, 2020
048bbc9
Name changes
DzikuVx Aug 27, 2020
ef12bf8
[FPORT2] fix halfduplex tristate (#6079)
shellixyz Aug 28, 2020
fdec03a
[FRSKYPILOT] Switch serialrx protocol default to F.Port2 (#6080)
shellixyz Aug 28, 2020
f3ecb80
Disable BetaflightF3 target
DzikuVx Aug 28, 2020
e4023b1
Update settings.yml
DzikuVx Aug 28, 2020
7ac4afc
rename Linux build documentation
stronnag Aug 28, 2020
f216c11
update Linux build documentation for cmake
stronnag Aug 28, 2020
bcd47c6
Merge pull request #6077 from iNavFlight/dzikuvx-fix-mag-health-repor…
DzikuVx Aug 28, 2020
a0636eb
refine Linux build document
stronnag Aug 28, 2020
6e94916
remove curl from installation requirements
stronnag Aug 28, 2020
0f5c9b5
Added STICK_CENTER_ONCE to airmodeAndAntiWindupHandlingType_e
Airwide Aug 29, 2020
a8ed83f
Fixed a bug
Airwide Aug 29, 2020
24546e4
Added airmodeHandlingType STICK_CENTER_ONCE to logic
Airwide Aug 29, 2020
4d26f5e
Added ANTI_WINDUP_DEACTIVATED to stateFlags
Airwide Aug 29, 2020
b08d1e6
Added parentheses which was missing
Airwide Aug 29, 2020
75ea5cd
remove obsolete / erroneous / historic dependency requirements
stronnag Aug 30, 2020
1cd4b09
add dependencies but otherwise disclaim information about unit tests
stronnag Aug 30, 2020
8814b00
Update formatting
DzikuVx Aug 30, 2020
b24f870
Added STICK_CENTER_ONCE to settings.yaml
Airwide Aug 30, 2020
124afc4
Merge pull request #6078 from iNavFlight/dzikuvx-fix-crsf-branch
DzikuVx Aug 31, 2020
c97d66e
[SBUS] Added back the unsafe behavior of S.Bus channel decoding to co…
digitalentity Sep 1, 2020
e934ea0
[GYRO] Fix ICM20689 driver not switching to fast SPI speed
digitalentity Sep 1, 2020
cd76407
Merge pull request #6088 from iNavFlight/de_sbus_channel_value_fix
digitalentity Sep 2, 2020
5967029
Merge pull request #6087 from iNavFlight/de_icm20689_spi_speed_fix
digitalentity Sep 2, 2020
76ad6b8
Add me to the authors file
expipiplus1 Sep 2, 2020
5137a9b
Merge pull request #6089 from expipiplus1/joe-aut
digitalentity Sep 2, 2020
da96a92
Added STICK_CENTER_ONCE to processAirmodeMultirotor(void)
Airwide Sep 2, 2020
49725de
Moved rollPitchStatus assignment before If statement
Airwide Sep 2, 2020
2fe3522
Merge pull request #6076 from Airwide/aw-fw-anti-windup-once-after-arm
DzikuVx Sep 3, 2020
f897f60
rm the obsolete Eclipse document
stronnag Sep 3, 2020
5d221d3
Merge pull request #6095 from iNavFlight/jh_rm_the_stupid_eclipse_doc…
DzikuVx Sep 3, 2020
faedca0
VSCode instructions
DzikuVx Sep 4, 2020
19e882f
Merge pull request #6099 from iNavFlight/dzikuvx-vscode-docs
DzikuVx Sep 4, 2020
cc15926
INAV PID Controller basic description
DzikuVx Sep 4, 2020
bbf9949
add "Building in FreeBSD Guide"
stronnag Sep 5, 2020
edf94ce
Update WSL for cmake
DzikuVx Sep 5, 2020
c9b71fc
[CMAKE] Remove BETAFLIGHTF3 target from releases
fiam Sep 6, 2020
728769b
[DOC] Update build instructions for macOS to use cmake
fiam Sep 6, 2020
b3503d9
Merge pull request #6100 from iNavFlight/dzikuvx-pid-docs
DzikuVx Sep 6, 2020
ab734d9
document target format
stronnag Sep 6, 2020
08874eb
clarify cmake usage document / implement review comments
stronnag Sep 6, 2020
7a7fcf3
Merge pull request #6054 from Scavanger/FF-Adjustment
DzikuVx Sep 7, 2020
9714f05
New functions: sin, cos, tan and range scaling
DzikuVx Sep 7, 2020
be9e33c
Merge pull request #6108 from iNavFlight/dzikuvx-new-lc-functions
DzikuVx Sep 7, 2020
0863629
[BOOTLOADER] Fix compilation with cmake
fiam Sep 7, 2020
03098fa
Changed SNR default to 5 to match TBS settings
OptimusTi Sep 8, 2020
b0c0b51
Update to SNR
OptimusTi Sep 9, 2020
d4073dc
Enable internal pull-up for bidir (half duplex) UARTs by default
Sep 9, 2020
cb9364c
Added blinking to LQ
OptimusTi Sep 9, 2020
f524253
Added LQ/RSSI alarm level to menu
OptimusTi Sep 10, 2020
80b4401
More spacing updates
OptimusTi Sep 10, 2020
5ea3bf3
[FPORT2] add settings to OTA start frame (#6118)
shellixyz Sep 10, 2020
f5712fc
Merge pull request #6116 from alteman/master
digitalentity Sep 10, 2020
2096bab
Spacing fix
OptimusTi Sep 11, 2020
9a1de74
Adds 250mW to TXPower
OptimusTi Sep 14, 2020
427933c
[CMAKE] Make the with_bl targets depend on targets instead of files
fiam Sep 14, 2020
23b31a9
Do not allow for Blackbox to work faster than 1kHz
DzikuVx Sep 15, 2020
46276f7
Merge pull request #6124 from OptimusTi/crsf-cms-updates-2
DzikuVx Sep 16, 2020
456d8c4
Merge pull request #6127 from iNavFlight/dzikuvx-block-fast-blackbox
DzikuVx Sep 16, 2020
ffb782b
[FRSKYPILOT] Fix UART number for OSD, should be 6, not 5 (#6130)
shellixyz Sep 16, 2020
68db45c
Fix acceleration accTmp[] errors.
Linjieqiang Sep 16, 2020
40e3b26
Fix pos_estimator errors.
Linjieqiang Sep 16, 2020
0ba9160
Added tz_automatic_dst to MSP2_COMMON_TZ and MSP2_COMMON_SET_TZ (#6115)
Airwide Sep 17, 2020
0f47bc4
Merge pull request #6058 from giacomo892/olc_improvements_giacomo892
giacomo892 Sep 18, 2020
93f6373
[CMAKE] Remove old Makefile based build system
fiam Sep 18, 2020
dd9a831
[BUILD] Delete disabled target files from Makefile based build
fiam Sep 18, 2020
bb976d9
Merge branch 'master' into agh_cmake
fiam Sep 18, 2020
2e30007
[CMAKE] Change clean_* targets to call <backend> clean
fiam Sep 20, 2020
0c716eb
Merge pull request #5743 from iNavFlight/agh_cmake
fiam Sep 20, 2020
a88aaca
[CMAKE] Override .hex start address with 0x08000000
fiam Sep 20, 2020
283c33b
Merge pull request #6136 from iNavFlight/agh_fix_cmake_hex
DzikuVx Sep 21, 2020
f565b9a
Ability to read current waypoint index as part of LC
DzikuVx Sep 21, 2020
026ec2c
Merge pull request #6137 from iNavFlight/dzikuvx-nav-wp-and-action-lc
DzikuVx Sep 21, 2020
a22c5d7
Merge pull request #6133 from Linjieqiang/fix_est_bugs
digitalentity Sep 22, 2020
81e9e7e
Missing SNR Alarm Level default added
OptimusTi Sep 23, 2020
be42332
WSL error troubleshooting
DzikuVx Sep 24, 2020
c80bcbe
Merge pull request #6145 from OptimusTi/crsf-cms_snr_alarm-fix
DzikuVx Sep 24, 2020
fecc907
Merge pull request #6146 from iNavFlight/dzikuvx-cmake-on-wsl
DzikuVx Sep 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Configuration for probot-no-response - https://github.com/probot/no-response

# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 3
# Label requiring a response
responseRequiredLabel: Missing Information
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because the information we asked
to be provided when opening it was not supplied by the original author.
With only the information that is currently in the issue, we don't have
enough information to take action.
40 changes: 12 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
start: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
count: [10]
id: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install ninja-build
- name: Setup environment
run: |
# This is the hash of the commit for the PR
Expand All @@ -25,44 +26,27 @@ jobs:
# why we try github.event.pull_request.head.sha first
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
echo "::set-env name=TARGETS::$(./src/utils/build-targets.sh -n -s ${{ matrix.start }} -c ${{ matrix.count }})"
VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/^[ \t]+|[ \t\)]+$/, "", $2); print $2 }')
echo "::set-env name=BUILD_SUFFIX::${BUILD_SUFFIX}"
echo "::set-env name=BUILD_NAME::inav-$(make print_version)-${BUILD_SUFFIX}"
echo "::set-env name=IS_LAST_JOB::$([ $(expr ${{ strategy.job-index }} + 1) = ${{ strategy.job-total }} ] && echo yes)"
- name: Ensure all targets will be tested
if: ${{ env.IS_LAST_JOB }}
run: |
UNTESTED=$(./src/utils/build-targets.sh -n -s $(expr ${{ matrix.start }} + ${{ matrix.count }}) -c 10000)
if ! [ -z "${UNTESTED}" ]; then
echo "Untested targets: ${UNTESTED}" >&2
exit 1
fi
echo "::set-env name=BUILD_NAME::inav-${VERSION}-${BUILD_SUFFIX}"
- uses: actions/cache@v1
with:
path: downloads
key: ${{ runner.os }}-downloads-${{ hashFiles('Makefile') }}-${{ hashFiles('**/make/*.mk')}}
- name: Install ARM toolchain
run: make arm_sdk_install
- name: Build targets (${{ matrix.start }})
if: ${{ env.TARGETS }}
run: ./src/utils/build-targets.sh -s ${{ matrix.start }} -c ${{ matrix.count }} -S ${{ env.BUILD_SUFFIX }}
key: ${{ runner.os }}-downloads-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('**/cmake/*')}}
- name: Build targets (${{ matrix.id }})
run: mkdir -p build && cd build && cmake -DWARNINGS_AS_ERRORS=ON -DCI_JOB_INDEX=${{ matrix.id }} -DCI_JOB_COUNT=${{ strategy.job-total }} -DBUILD_SUFFIX=${{ env.BUILD_SUFFIX }} -G Ninja .. && ninja ci
- name: Upload artifacts
if: ${{ env.TARGETS }}
uses: actions/upload-artifact@v2-preview
with:
name: ${{ env.BUILD_NAME }}.zip
path: ./obj/dist/*.hex
path: ./build/*.hex

test:
needs: [build]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: downloads
key: ${{ runner.os }}-downloads-${{ hashFiles('Makefile') }}-${{ hashFiles('**/make/*.mk')}}
- name: Install ARM toolchain
run: make arm_sdk_install
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install ninja-build
- name: Run Tests
run: make test
run: mkdir -p build && cd build && cmake -DTOOLCHAIN=none -G Ninja .. && ninja check
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
.project
.settings
.cproject
__pycache__
startup_stm32f10x_md_gcc.s
.vagrant/
.vscode/
cov-int*
obj/
patches/
tools/
downloads/
/build/
/obj/
/patches/
/tools/
/downloads/

# script-generated files
docs/Manual.pdf
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Hyon Lim
James Harrison
Jan Staal
Jeremy Waters
Joe Hermaszewski
Joe Poser
Joel Fuster
Johannes Kasberger
Expand Down
72 changes: 72 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
cmake_minimum_required(VERSION 3.13...3.18)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

set(MAIN_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(MAIN_LIB_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib")
set(MAIN_UTILS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/utils")
set(MAIN_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/main")
set(SVD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/dev/svd")
set(DOWNLOADS_DIR "${MAIN_DIR}/downloads")
set(TOOLS_DIR "${MAIN_DIR}/tools")

set(TOOLCHAIN_OPTIONS none arm-none-eabi)
set(TOOLCHAIN "arm-none-eabi" CACHE STRING "Toolchain to use. Available: ${TOOLCHAIN_OPTIONS}")
set_property(CACHE TOOLCHAIN PROPERTY STRINGS ${TOOLCHAIN_OPTIONS})
if("" STREQUAL TOOLCHAIN)
set(TOOLCHAIN none)
endif()
if (NOT ${TOOLCHAIN} IN_LIST TOOLCHAIN_OPTIONS)
message(FATAL_ERROR "Invalid toolchain ${TOOLCHAIN}. Valid options are: ${TOOLCHAIN_OPTIONS}")
endif()

option(COMPILER_VERSION_CHECK "Ensure the compiler matches the expected version" ON)

if(TOOLCHAIN STREQUAL none)
add_subdirectory(src/test)
else()
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/${TOOLCHAIN}.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/${TOOLCHAIN}-checks.cmake")
endif()

project(INAV VERSION 2.6.0)

enable_language(ASM)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_EXTENSIONS ON)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_program(RUBY_EXECUTABLE ruby)
if (NOT RUBY_EXECUTABLE)
message(FATAL_ERROR "Could not find ruby")
endif()

if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(IS_RELEASE_BUILD ON)
endif()

include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
string(SUBSTRING ${GIT_SHA1} 0 8 GIT_REV)

set(FIRMWARE_VERSION ${PROJECT_VERSION})

option(WARNINGS_AS_ERRORS "Make all warnings into errors")
message("-- toolchain: ${TOOLCHAIN}, WARNINGS_AS_ERRORS: ${WARNINGS_AS_ERRORS}")

include(settings)
include(openocd)
include(svd)
include(main)
include(stm32)

add_subdirectory(src)

collect_targets()

message("-- Build type: ${CMAKE_BUILD_TYPE}")
include(ci)
Loading