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

643 commits

Author SHA1 Message Date
breadoven
1b79cbd232 Add define for functions only 2023-08-30 23:29:46 +01:00
breadoven
274bfe6e69 Merge remote-tracking branch 'upstream/master' into abo_multi_function_utility 2023-08-28 12:59:52 +01:00
Paweł Spychalski
44caafd8db
Merge pull request #9249 from breadoven/abo_blackbox_add_target_heading
Add blackbox target heading + missing Nav auto enabled flight modes
2023-08-25 13:34:57 +02:00
breadoven
1524cc5c21 Add missing flight modes 2023-08-22 10:15:30 +01:00
breadoven
90d8a0ef37 add target heading 2023-08-19 21:26:12 +01:00
breadoven
24ad38256c Merge remote-tracking branch 'upstream/master' into abo_mc_althold_throttle_type 2023-08-14 22:24:02 +01:00
breadoven
5f1a10ad74
Merge pull request #8920 from breadoven/abo_climb_rate_controller_improvement
Nav altitude control improvements
2023-08-07 12:21:57 +01:00
breadoven
6eb19f2135 first build 2023-08-05 22:28:12 +01: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
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
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
breadoven
ce7ee28677 first build 2022-12-15 22:46:25 +00:00
Darren Lines
fe2e151583 Reduced calculations on WpNumber 2022-12-14 21:52:53 +00:00
Darren Lines
7577918b70
Merge pull request #8611 from iNavFlight/MrD_Stop-nav-modes-being-enabled-when-arming
Stop allowing navigation modes to be active while arming.
2022-12-12 11:19:00 +00:00
breadoven
eb4d99388d Update navigation.c 2022-12-08 23:34:17 +00:00
breadoven
7b53373921
Merge pull request #8601 from breadoven/abo_throttle_low_cleanup
Throttle low clean up
2022-12-08 14:34:11 +00:00
breadoven
987fa6d3bb
Merge pull request #8604 from breadoven/abo_osd_add_groundcourse_crosstrackerr
OSD Ground Course and Cross Track Error
2022-12-08 14:32:35 +00:00