1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00
Commit graph

702 commits

Author SHA1 Message Date
breadoven
505b58f9f0 initial build 2023-08-03 21:33:53 +01:00
shota
1188ff79fe fixes 2023-08-02 20:06:18 +09:00
shota
c9ff9cd099 updates 2023-08-02 18:00:52 +09:00
shota
271c7988c8 minor fix 2023-08-02 11:49:37 +09:00
shota
7c8b9976b7 automatic mixer profile switching on rth and land 2023-08-02 00:44:22 +09:00
shota
384439a809 automated transition 2023-07-31 23:51:23 +09:00
shota
1d34800388 initinal failsafe support for mixer profile 2023-07-30 22:36:24 +09:00
shota
167db6ec59 add sannity check in Platform specific RC modes, Add sanity check in mixer_profile switching 2023-07-27 12:09:26 +09:00
shota
5a14ff7b7b move ENABLE_STATE(FW_HEADING_USE_YAW) from navigation.c to mixer.c 2023-07-26 00:03:49 +09:00
shota
2fb9601dd6 mixprofile transition support 2023-07-01 03:29:10 +09:00
shota
203bb2a471 mixer and pid profile linking 2023-06-30 04:01:01 +09:00
shota
3ad0991125 Merge remote-tracking branch 'origin/master' into sh_mixer_profile 2023-06-26 02:33:09 +09:00
breadoven
3a0e6efb3b Add usage setting 2023-06-15 21:59:30 +01: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
breadoven
fb8be51333 Update navigation.c 2023-05-21 21:58:39 +01:00
Darren Lines
34e4205f00 Merge branch 'master' into MrD_Increase-channels-to-24-Not-for-F411-or-F722 2023-05-14 13:56:10 +01:00
Pawel Spychalski (DzikuVx)
90a717e8ad Merge remote-tracking branch 'origin/master' into release_6.1.0 2023-05-13 09:09:19 +02:00
breadoven
cfca116a14 Merge remote-tracking branch 'upstream/master' into abo_multi_function_utility 2023-04-28 10:19:48 +01:00
breadoven
195b5cbe11 Update navigation.c 2023-04-01 14:59:00 +01:00
breadoven
0b7632d4c4 fixes 2023-03-28 11:29:50 +01:00
breadoven
a0456565ac fix loiter detection FW + tweaks 2023-03-27 21:42:01 +01:00
breadoven
5a454a3400 update 2023-03-26 23:24:26 +01:00
breadoven
f8da237e28 first build 2023-03-24 13:40:49 +00:00
breadoven
27e5903a4b Add comments 2023-03-17 23:11:20 +00:00
Darren Lines
0589b5636e Increase RC Channels to 24
Both FrSky and Jeti can use 24 channels. INAV doesn't handle the additional channels gracefully, certainly from Jeti. This PR increases the channel count to 24. But, does not apply to F411 or F722.
2023-03-17 23:10:37 +00:00
breadoven
3b1b585ac0 Update navigation.c 2023-03-17 21:55:34 +00:00
breadoven
9871c6edee Add turtle mode function 2023-02-22 23:14:39 +00:00
Darren Lines
13d4257163 Enhance Linear Descent RTH feature
This PR takes the existing Linear Descent option for RTH and enhances it. Firstly, Linear Descent is now no longer an RTH type. If previously using `AT_LEAST_LINEAR_DESCENT`, you should now just use `AT_LEAST` as the RTH type. Linear Descent is now a separate option that can be used with and other RTH type. To do this, the target altitude of the descent is now the `nav_rth_home_altitude`. In some cases, if flying below the home position, this could even be a linear ascent.

An option has also been added to decide how far away the linear descent starts. This is via the `nav_rth_linear_descent_start_distance` parameter. Current behaviour can be maintained by setting this to `0` [default]. You can also specify a distance from home when the descent begins. This is in metres and be up to 10km away. Of course, this value can be adjusted if required.
2023-02-19 16:08:17 +00:00
breadoven
36caed01ab Add trackback suspend + vibration warning 2023-02-18 13:14:05 +00:00
breadoven
a5e2550193 add Safehome suspend function 2023-02-10 22:49:48 +00:00
breadoven
b9688e5142 add emergency landing 2023-01-29 00:11:44 +00:00
breadoven
199f859098 Merge remote-tracking branch 'upstream/master' into abo_multi_function_utility 2023-01-28 23:32:52 +00:00
Paweł Spychalski
bb79ad8f02
Merge pull request #8686 from breadoven/abo_manual_emerg_landing
Manual emergency landing FW and MR
2023-01-27 16:11:05 +01:00
breadoven
5a4f3190d5 update 2023-01-26 21:09:34 +00:00
breadoven
dfabcbdd1d limit update rate + use Ms 2023-01-25 20:55:58 +00:00
breadoven
2181b9e69d Update navigation.c 2023-01-13 14:38:43 +00:00
breadoven
eaf42803c3 Merge remote-tracking branch 'upstream/master' into abo_fw_coursehold_change 2023-01-13 11:38:57 +00:00
Paweł Spychalski
c57e112ecc
Merge pull request #8579 from iNavFlight/MrD_Enhance-programming-options-for-waypoint-missions
Enhance programming options for waypoint missions
2023-01-13 08:21:12 +01:00
breadoven
9cacbb2a75 Update navigation.c 2023-01-12 20:25:14 +00:00
breadoven
d27badcfeb update various 2023-01-09 22:47:13 +00:00
breadoven
36723bdf30 Update navigation.c 2023-01-05 18:43:53 +00:00
Darren Lines
ba8da95562 Merge branch 'master' into MrD_Enhance-programming-options-for-waypoint-missions 2023-01-03 12:49:52 +00:00
breadoven
fc099d470a Update navigation.c 2022-12-31 10:43:26 +00:00
breadoven
e04032cceb Update navigation.c 2022-12-30 23:37:35 +00:00
Paweł Spychalski
8575a1b765
Merge pull request #8643 from breadoven/abo_nav_yaw_refactor
Nav "Yaw" usage refactor
2022-12-23 10:17:25 +01:00
breadoven
89d8e91472 Update navigation.c 2022-12-22 23:07:19 +00:00
breadoven
e7f9f6e135 remove redundant function + update 2022-12-19 00:16:16 +00:00
breadoven
a366ae4671 first cut 2022-12-19 00:06:01 +00:00
breadoven
99b03c70be Update navigation.c 2022-12-17 22:08:04 +00:00
Ray Morris
77eb8e3518 Be consistent in using #ifdef USE_SAFE_HOME 2022-12-16 16:18:15 -06:00