1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00
Commit graph

73 commits

Author SHA1 Message Date
Marcelo Bezerra
0cbb9754d5
waring 2025-03-25 09:39:36 +01:00
Marcelo Bezerra
a0e0c0cfa1
warning fixes 2025-03-24 17:21:31 +01:00
Marcelo Bezerra
16ebb27c8b
Merge pull request #10593 from iNavFlight/mmosca-h7a3
Update libraries - pre-req for H7A3
2025-01-22 17:51:18 +01:00
Paweł Spychalski
bfdd1231ba
Merge pull request #9355 from error414/adsb
Adsb support pingRX  / Aerobit TT-SC1
2024-02-02 10:34:23 +01:00
Paweł Spychalski
f2cefe6a37
Merge pull request #9568 from JulioCesarMatias/FixDefaultParamName
Correct wrong writing
2023-12-26 11:50:56 +01:00
Martin Luessi
0535617286
USB MSC: Fix SCIS mode sense write protection bit (#9572) 2023-12-16 16:23:14 +00:00
Julio Cesar
672aa01f60 fix telemetry name 2023-12-14 22:55:09 -03:00
Jonathan Hudson
9ba78683fc
update f4 vcp in line with BF (#9544) 2023-12-07 12:46:59 +00:00
Marcelo Bezerra
69bd3e9d93
[SITL OSX] Fix some of the warnings and add macosx SITL build to workflows (#9063)
clang can be verbose with warnings, but some of it is probably valid when building a 64bit binary.

Highlighted changes:

* Call float versions of math functions to avoid conversion to double by the compiler (absf, sqrtf, roundf, etc)
* Make sure floating point constants are marked as floats, to avoid conversion to double by the compiler. (1.0 is a double, 1.0f is a float and when doing math between float and double, all values get upgraded to double!)
* Changed memcpy_fn in unit test AND SITL builds to be a macro to memcpy (instead of inline function calling memcpy), this fixes linker errors for memcpy as macos compiler mangles the symbol in a different way and would not work with asm("memcpy") call.
* Some simulator code made heavy use of doubles, but since all the data in INAV is float, that is probably overkill and some functions/macros had float in the name, while upconvertting to double.

Open questions:

* Should scale in osdFormatCentiNumber be changed to float? It is currently uint32_t but some of the scale defines are, correctly, not integer numbers.
* I changed CENTIDEGREES_TO_DEGREES to use float on the division path, but the code seems to be ok, or assuming it would be converted to integer anyway. Is this the correct solution?
* This still does not fix the invalid settings issues, I suspect it is related to the lack of linker scripts in clang, to preserve the section data of settings.
* Binary is still not multi platform (arm/x86_64).
2023-05-25 13:12:03 +02:00
EMSR
389e9e9bc8 add at32 bsp driver lib
Co-Authored-By: EMSR <10240646+shanggl@users.noreply.github.com>
Co-Authored-By: carl <101383042+tcdddd@users.noreply.github.com>
Co-Authored-By: Hugo Chiang <hugo@gyroflow.xyz>
2023-02-13 00:49:29 +08:00
Pawel Spychalski (DzikuVx)
9983f99d03 Drop F3 codebase 2022-05-26 19:56:59 +02:00
bkleiner
a445baa705 stm32 LL library: fix pre-compiler warning 2021-12-23 17:57:50 +01:00
bkleiner
65514af420 h7: hide all the unused parameters in usbd_msc_scsi 2021-11-06 19:49:36 +01:00
bkleiner
6855c33d60 h7: enable usb msc and fix middleware compliation 2021-11-06 19:37:01 +01:00
Pawel Spychalski (DzikuVx)
f2a56aed93 remove assert in one more place 2021-07-05 13:28:56 +02:00
Pawel Spychalski (DzikuVx)
ea52108d3e Modify library to supress warnings when combining HAL and LL drivers 2021-07-05 12:35:52 +02:00
Harry Phillips
943290b2eb
Remove MAVLink inline modifiers 2021-04-06 11:42:25 +01:00
Harry Phillips
0db5d891eb
Fix generate script permissions 2021-03-24 21:35:17 +00:00
Harry Phillips
c644fdf9ea
MAVLink V2 library (auto-generated) 2021-02-28 18:26:02 +00:00
Harry Phillips
f58ef63cb4
mavgen library generator scripts 2021-02-28 18:25:07 +00:00
Konstantin (DigitalEntity) Sharlaimov
e72e70209e [H7] Add preliminary support for H7 CPUs 2020-11-07 14:28:14 +01:00
Felipe Machado
d8ac874087 [MAVLINK] Update mavlink library to latest v1.0 release 2020-08-28 18:04:21 +01:00
Alberto García Hierro
074c4dec1c [TESTS] Use CMake to build and run tests
Tests are now managed with cmake, with the intention of eventually
moving the whole build system to it. The root Makefile still has
a test target that has been adjusted to call into the appropriate
cmake commands.

Also, GTest library is now downloaded on demand the first time the
tests are run, so we can delete it from the repository.
2020-07-24 21:41:51 +01:00
Jonathan Hudson
0162563afc minor gcc 8.2 cleanup for unnecessary use of packed in f7 USB driver 2018-08-08 17:40:24 +01:00
Jonathan Hudson
f021a4d5ee cleanup a pointless use of __packed (gcc 8.2 warning) 2018-07-27 17:54:32 +01:00
Konstantin Sharlaimov
108b619a34
Cleanup build system and unused source files (#3047)
* Initial cut on cleaning up makefile and libraries.
* F3, F4, F7 support
* Add 'make release' to build targets for release
* Introduce BUILD_SUFFIX options; Comment fix
* Fix USB core
* Fix F7 warnings
* Clean up STM32F1 code
* More cleanups of unused files
2018-04-25 10:01:00 +10:00
Konstantin Sharlaimov (DigitalEntity)
1f948d42ce Port VCP buffer size checks. Upgrade CDC middleware 2018-04-14 20:02:33 +10:00
Martin Budden
146ddd576b Add STM32 lib files 2017-09-28 09:07:53 +01:00
Jonathan Hudson
559a085744 more gcc7 specific warning fixes 2017-09-08 22:07:34 +01:00
Konstantin Sharlaimov (DigitalEntity)
eaeb24fd23 Underclocking for F3 targets
De underclock f3 (#2004)

Underclocking for F1

Don't trust SystemCoreClock variable when initializing SysTick; Fix bug for F1 underclock

Fixups
2017-09-07 17:53:10 +10:00
Konstantin Sharlaimov (DigitalEntity)
49e06ef2ae Build bugs fixing 2017-08-08 23:14:10 +10:00
Sami Korhonen
2c18e5df85 Update F7 HAL and CMSIS for 722-733 support 2017-05-14 15:39:50 +03:00
Konstantin Sharlaimov (DigitalEntity)
1076fc13c3 Update MAVLink library; Initial cut on bi-directional MAVLink; Mission upload 2017-03-26 21:46:08 +10:00
Martin Budden
bebfc41fdd Merge pull request #1324 from martinbudden/inav_arm_dsp_lib
Added ARM DSP library
2017-03-19 14:56:28 +00:00
Konstantin Sharlaimov (DigitalEntity)
44c8dc2057 Fix multiple compiler warnings 2017-03-14 19:59:15 +10:00
Martin Budden
2332529980 Added ARM DSP library 2017-02-23 12:43:45 +00:00
Konstantin Sharlaimov (DigitalEntity)
3d9dab747a Upgrade to CMSIS 5.0 2016-12-14 16:49:34 +10:00
Sami Korhonen
562194325a F7 Libs 2016-12-08 16:07:29 +02:00
Konstantin Sharlaimov (DigitalEntity)
f1d81e3ec1 Move MAVLink to lib directory; Fixed CUSTOM_AIRPLANE mixer reporting in MAVLink 2016-10-17 14:46:18 +10:00
Martin Budden
ed99c264c7 Further improvements in serial const correctness 2016-10-04 09:03:38 +01:00
Martin Budden
ec1a120967 Updated STM32 USB libraries as per betaflight 2016-08-09 09:43:14 +01:00
Konstantin Sharlaimov
9ef4de8209 Remove overclock (emf_avoidance) as unstable and unsafe feature (#420) 2016-08-02 09:20:53 +03:00
Konstantin Sharlaimov (DigitalEntity)
9d8a0848ed CC3D: Force HSE to 8MHz (no other XTAL available on CC3D boards) 2016-08-02 15:33:02 +10:00
Sami Korhonen
ca6f724fee F4 Boost, Missing F4 files 2016-07-28 09:57:38 +03:00
Martin Budden
1d3b367528 Added STM32F4 libraries 2016-06-24 21:10:26 +01:00
Petr Ledvina
a5908c1343 Workaboung VCP problem with gcc 5.3 2016-05-13 09:50:43 +10:00
Petr Ledvina
2af8a120c6 Use #pragma GCC diagnostic ignored to disable unused parameter warning in StdPeriph_Driver
#pragma is used to minimize modification to StdPeriph_Driver source code - produced diff should be easy to handle
2015-10-27 16:03:10 +01:00
Michael Hope
e569a71c60 usb: add volatile in more places.
Fixes the remaining (and valid) warnings.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-30 22:44:11 +02:00
Michael Hope
ebc0f53b59 usb: mark register accesses as volatile.
Fixes the LTO build with GCC 4.9.  Tested on the STM32F3DISCOVERY.  I
assume the compiler was doing cross function optimisation, saw that
the same non-volatile address was read twice, and dropped the second
read.

Fixes #763.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-30 08:12:24 +02:00
Michael Hope
5c6760fd82 various: tidy up various things found when building with a C++ compiler.
Remove duplicate consts.
Pull in the include files where functions and variables are declared.
Mark file local but duplicated variables as static.
Mark some variable declarations as extern.
Remove duplicated variable definition.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:32:31 +02:00