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

45 commits

Author SHA1 Message Date
Darren Lines
eda26f085f Fixed typos 2022-05-24 08:35:30 +01:00
Darren Lines
dba1562dc0 Update logic_condition.c 2022-05-16 16:42:01 +01:00
Pawel Spychalski (DzikuVx)
2557dc0f40 Add rangefinder operands 2022-04-22 12:06:10 +02:00
Pawel Spychalski (DzikuVx)
68c47e7c09 Allow Angle target overrides 2022-04-12 08:55:36 +02:00
Pawel Spychalski (DzikuVx)
8be0247dec Add the new logic conditions definitions 2022-04-06 11:18:53 +02:00
Paweł Spychalski
e24996e28b
Merge pull request #7746 from JulioCesarMatias/MathAddNewFunction
[maths.c] Add 2D and 3D Pythagorean functions
2022-02-22 11:04:09 +01:00
Luca
b8cf0272e9 battery cells in logic condition 2022-02-09 17:51:56 +01:00
Darren Lines
2f00540c60 Removed constrain min and max as they are unnecessary 2022-02-07 08:30:56 +00:00
Darren Lines
bdc83e4e0e Added some comparative operations
Added comparative operations for constraints, min, and max.
2022-02-06 18:09:12 +00:00
JuliooCesarMDM
930c6cf859 [maths.c] Add two news functions 2022-01-11 21:39:45 -03:00
Darren Lines
787e9a76b2 Merge branch 'master' into change-profiles-with-programming 2021-10-28 18:37:24 +01:00
Darren Lines
bd4c4da4ca changes for conflict resolution 2021-10-28 18:26:51 +01:00
Darren Lines
743300c19e Made requested changes
Made changes suggested by Pawel.
2021-10-20 23:01:41 +01:00
Darren Lines
8d5a0b0b8c Changed the logic
I've changed the logic so that it now explicitly ignores certain modes (RTH, WP, FS, and emergency landing). This way the override radius can be changed without being in POS HOLD, allowing it to be preselected.
2021-09-27 16:47:37 +01:00
Darren Lines
2fec7a0285 Added nav mode check
The override loiter radius will now only apply to POSHOLD. Tested on the ground. Will not get to test in flight for at least 5 days.
2021-09-26 19:48:04 +01:00
Darren Lines
b66caae07a Adding loiter radius to programming
Adding a loiter radius override to the programming. This change allows pilots to change their loiter radius on the fly. The minimum loiter radius will always be that set in Advanced Tuning, for safety. The maximum radius is 100000cm.

As part of this change, I increased the min and max constraints of the basic maths conditions. The were set to int16, however operands can be int32. Before the change, this caused clipping of the radius when performing basic calculus on it.
2021-09-22 22:32:56 +01:00
Darren Lines
0f9c6cd8df Renamed PID Profiles to Profiles 2021-09-16 09:35:19 +01:00
Darren Lines
282ac5b1aa Update logic_condition.c
Reinitialise PID and filters if the profile has changed.
2021-09-16 08:11:18 +01:00
Darren Lines
51d5df1690 Added PID Profiles to Programming framework
## Added PID Profiles to Programming framework
This allows setting the profile and getting the active profile in the programming framework.
2021-09-09 10:24:57 +01:00
Pawel Spychalski (DzikuVx)
500c6ab923 Minor performance update 2021-05-17 11:47:37 +02:00
Michel Pastor
56286c1698
Add CRUISE mode which is equivalent to CRSH+AH (#6904) 2021-05-04 19:52:27 +02:00
Michel Pastor
3aadc493c0
Rename NAV CRUISE mode to NAV COURSE HOLD (#6297) 2021-04-06 22:21:49 +02:00
Darren Lines
4306010588
Added GPS Valid Fix to programming
Added GPS Valid fix flight parameter. Also have set the GPS sats to 0 when a GPS sensor loss occurs. This is much more useful than a false reading.
2021-03-27 10:19:04 +00:00
Mingchen Zhang
cce8345d90 move the modulus to the last entry 2021-03-12 02:14:22 +00:00
Mingchen Zhang
2eecf30603 Add modulus operator support 2021-03-11 08:12:49 +00:00
Pawel Spychalski (DzikuVx)
0e92194239 Update Docs to correct LC VBAT scale 2021-03-05 10:01:17 +01:00
Paweł Spychalski
f77c8e55ee
Merge pull request #6610 from iNavFlight/dzikuvx-dji-configurable-speed-source
Allow to configure speed source for DJI OSD
2021-02-26 19:44:30 +01:00
Tim O'Brien
0b13c2cd8d Adds heading target logic condition
- allows for a slider/global-var to set the desired heading
- addresses issue #6642
2021-02-24 14:04:05 -08:00
Pawel Spychalski (DzikuVx)
84083689bb Allow to configure speed source for DJI OSD 2021-02-16 11:54:39 +01:00
Michel Pastor
282c3b132e Fix logic condition VSpeed constraint not allowing the value to be negative 2021-02-14 17:07:30 +01:00
Pawel Spychalski (DzikuVx)
416f6470b9 Merge branch 'master' into dzikuvx-lc-rc-channels-override 2021-01-19 10:41:53 +01:00
Pawel Spychalski (DzikuVx)
d32fe6dea5 Move PID gains to UINT16 instead of UINT8. Keep it compatible on the MSP level 2020-12-04 20:38:34 +01:00
Pawel Spychalski (DzikuVx)
524e66b160 Fix channel override 2020-11-25 21:23:37 +01:00
Pawel Spychalski (DzikuVx)
9dea44a4da Allow Logic Conditions to override RC channels 2020-11-25 08:39:31 +01:00
Pawel Spychalski (DzikuVx)
29d56bab36 LC Operands update 2020-11-08 15:51:52 +01:00
Alexander van Saase
d17bfc67e3 Add logic condition for 3D home distance based on Pythagorean theorem. 2020-10-19 22:30:23 +02:00
Jonas Elvedal Hole
0543708630 Fix LC IS_FAILSAFE only occuring when RX_LOSS_MONITORING 2020-10-07 22:15:44 +02:00
Alberto García Hierro
2a727dff68 [VTX] Fix compilation with VTX control enabled without SAUDIO/TRAMP 2020-10-04 11:43:06 +01:00
Pawel Spychalski (DzikuVx)
f565b9ae4d Ability to read current waypoint index as part of LC 2020-09-21 10:51:17 +02:00
Pawel Spychalski (DzikuVx)
9714f05368 New functions: sin, cos, tan and range scaling 2020-09-07 14:39:31 +02:00
Pawel Spychalski (DzikuVx)
03a014d0e1 Bump the number of logic conditions to 32 2020-07-31 10:30:16 +02:00
Pawel Spychalski (DzikuVx)
893e532f8b Merge branch 'master' into dzikuvx-logic-condition-global-function-unification 2020-07-23 10:15:17 +02:00
Pawel Spychalski (DzikuVx)
827ac04950 Unify Global Functions and Logic Conditions into single entity 2020-07-22 21:53:54 +02:00
Pawel Spychalski (DzikuVx)
2e3f67f635 Logic Conditions integration 2020-07-20 20:11:50 +02:00
Pawel Spychalski (DzikuVx)
47cd8f317d Refactor LC, GF and GVAR to use single scheduler task 2020-07-08 15:18:52 +02:00
Renamed from src/main/common/logic_condition.c (Browse further)