Darren Lines
fe2e151583
Reduced calculations on WpNumber
2022-12-14 21:52:53 +00:00
Darren Lines
bc5cc39a1b
Fixed return issue
...
Returning the bit, not a Boolean, fixed.
2022-12-14 19:05:18 +00:00
Darren Lines
374a8f8ce8
Check the bit correctly
2022-12-11 21:34:42 +00:00
Darren Lines
8f4fc0754b
Update for when User action is triggered
2022-12-11 21:18:51 +00:00
Darren Lines
b5da2ca7d3
Corrected user actions and updated docs
2022-11-24 08:04:52 +00:00
Darren Lines
b2ad70329b
fixed initial code and added more
...
Now working:
- Distance to WP
- Distance from WP
- User actions 1 to 4
2022-11-23 22:39:22 +00:00
Darren Lines
7115d03276
add distance to WP
...
needs testing ... and compiling even. Coding at work is blind xD
2022-11-23 13:35:18 +00:00
Darren Lines
775a080768
Initial code
...
This will break LCs backwards compatibility. But a small conversion tool will be simple to make.
2022-11-22 13:40:36 +00:00
Darren Lines
fca5a0eac7
Add PINIO 3 & 4
...
There are plenty of flight controllers around now that use PINIO 1 and 2 internally for camera switching and switchable VTx power. This left no scope for user definable PINIO. A friend wanted to control a Caddx Peanut on such an FC. So I have implemented USER 3 and USER 4 PINIO options. Also in the PR is the target that was created for my friend.
2022-09-17 08:41:39 +01:00
Paweł Spychalski
a38bce9b1a
Merge pull request #8186 from iNavFlight/release_5.1.0
...
INAV 5.1.0 Release branch
2022-08-22 21:23:52 +02:00
Pawel Spychalski (DzikuVx)
509f00debc
Merge branch 'master' into release_5.1.0
2022-08-22 20:59:25 +02:00
Paweł Spychalski
cdaf835822
Merge pull request #8330 from JulioCesarMatias/RenameASFunction
...
Rename pitotCalculateAirSpeed()
2022-08-22 13:56:54 +02:00
JuliooCesarMDM
9b5106aafe
Rename pitotCalculateAirSpeed
2022-08-16 21:11:53 -03:00
Michel Pastor
da521b0fde
Add USER3 mode ( #8276 )
2022-08-01 17:56:14 +02:00
Darren Lines
d1fc69486f
Rethink of issue and solution
2022-07-30 09:17:28 +01:00
Pawel Spychalski (DzikuVx)
adf15efeca
Bump PG versions
2022-07-01 21:16:34 +02:00
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