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

180 commits

Author SHA1 Message Date
Konstantin Sharlaimov (DigitalEntity)
19faf75e75 [RTH] Refactor RTH code to respect initial/final/hover RTH altitudes 2019-06-03 21:41:23 +02:00
Konstantin Sharlaimov (DigitalEntity)
58a51c28b0 [RTH] Linear descent further refactoring [ci skip] 2019-06-02 22:52:45 +02:00
Konstantin Sharlaimov (DigitalEntity)
76ecb84bd4 [RTH] Refactor linear RTH descent; Fix initial altitude bug 2019-06-01 19:42:06 +02:00
Michel Pastor
2fe116d2cb
Clean/improve GSM SMS telemetry code (#4739) 2019-05-25 21:55:01 +02:00
Olivier C
468a040801 OSD Hud + LoRa radar (nearby aircrafts) (#4558) 2019-05-24 15:37:54 +02:00
Michel Pastor
644259f936
Add the AT_LEAST_LINEAR_DESCENT RTH altitude mode (#4188) 2019-05-09 14:50:15 +02:00
Konstantin Sharlaimov
ff7ca472ca
Merge pull request #4603 from iNavFlight/de_yg_surface_mode_experimental
Add accelerometer weight to position estimation
2019-05-04 21:26:14 +02:00
Alberto García Hierro
20fac46ee0 Use an STATE() flag instead of an static variable in navigation.c
Also, make the check for setting the STATE() flag clearer. Previous
implementation was a bit confusing.
2019-04-25 13:59:20 +01:00
Alberto García Hierro
dc6d002bdc Add support for bypassing extra arming safety
In order to bypass the checks, users must set the new
nav_extra_arming_safety value ALLOW_BYPASS and arm with a switch
while holding yaw high. If this is used to arm the craft, the checks
are skipped until the next power cycle in order to allow rearming
quickly in case of an accidental mid air disarm.

Also, the "NAVIGATION IS UNSAFE" OSD message has been replaced
with more specific messages which tell the user the exact reason
why the navigation system is blocking arming.
2019-04-25 13:14:08 +01:00
Pawel Spychalski (DzikuVx)
b8ba10b860 Review changes 2019-04-20 18:44:43 +02:00
Pawel Spychalski (DzikuVx)
32eeefad1b Convert all NAV P-controllers to PIDFF without the possibility to change settings 2019-04-19 11:10:07 +02:00
giacomo892
8fb7930522
Merge pull request #4617 from giacomo892/32bit_max_distance_giacomo892
Change GPS distance from home to 32bit
2019-04-17 09:47:18 +02:00
giacomo892
ef03ffe55a max distance from 16bit to 32bit 2019-04-16 18:01:46 +02:00
Konstantin Sharlaimov (DigitalEntity)
0c45b3a8ae Add terrain follow to navFlags 2019-04-13 22:19:27 +02:00
Konstantin Sharlaimov (DigitalEntity)
926219c632 Fix emergency landing not engaging from initial RTH climb 2019-04-06 16:28:00 +02:00
Pawel Spychalski (DzikuVx)
e01d16a81d Correctly reset Dterm filter 2019-03-16 11:07:13 +01:00
Pawel Spychalski (DzikuVx)
ddff19f399 Make VelXY Dterm LPF user configurable 2019-03-16 10:58:57 +01:00
hali9
5b25cfc583 CLI the wp CLI command to manage waypoints (#4473) 2019-03-15 16:12:18 +01:00
Paweł Spychalski
a86dde56ae
Merge pull request #4483 from iNavFlight/dzikuvx-f7-speedup-iteration-2
Second iteration of making F7 fast
2019-03-15 13:49:59 +01:00
Pawel Spychalski (DzikuVx)
15cdc109f9 Remove PosHold support settings from PID bank 2019-03-09 19:06:51 +01:00
Pawel Spychalski (DzikuVx)
7faeb47532 Second iteration of makinf F7 fast 2019-03-09 14:39:00 +01:00
Paweł Spychalski
c64a63b504
Convert XY VEL TO ACC controller to use feed forward component (#4326)
* modify navPidApply3 to use linear FF component

* store FF component in BB log

* Make VEL_XY FF component configurable

* change scaling for PID_VEL_XY FF component

* MSP2_PID frame to setup FF component

* Set default VEL XY FF to 40
2019-03-09 09:22:50 +01:00
Krzysztof Matula
03f1ab91bf Don't use POS and YAW controller when landed. 2019-02-21 18:16:56 +01:00
Krzysztof Matula
3701c67a4b Prevent unexpected takeoff in RTH LANDED state. 2019-02-17 22:54:27 +01:00
Konstantin Sharlaimov (DigitalEntity)
72f6c0acda Move braking mode code to multicopter-specific code; Fix issue with incorrect boostFactor calculation; Make sure braking mode is correctly reset when we switch out of navitation modes or reset position controller 2019-02-09 18:19:20 +01:00
Alberto García Hierro
0f4e74cd04 Replace ABS(float) with fabsf(float)
Disregarding loads and stores, fabfs() compiles to a single vabs.f32
instruction, which completes in 1 cycle. ABS(float), however, compiles
to vcmpe.f32, a branch and vneg.f32, which needs 2 cycles + branching.
The compiler is not able to perform this transformation because
(f < 0 ? -f : f) doesn't always yield the absolute value for
floats (e.g. ABS(-0) will yield -0).
2019-01-19 17:33:33 +00:00
Konstantin Sharlaimov (DigitalEntity)
176a80f242 [NAV] Fix failsafe RTH getting stuck if RTH->other_NAV_mode transition is not handled 2019-01-07 20:55:45 +01:00
Alberto García Hierro
3cf574f043
Merge pull request #4116 from iNavFlight/agh_calculate_path_to_destination
Add navCalculatePathToDestination() function
2019-01-06 22:08:38 +00:00
Michel Pastor
2ea3f50e5e Fix fly time bug
Closes #4141
2019-01-06 00:15:30 +01:00
Alberto García Hierro
4df6e9aca9 Add navCalculatePathToDestination() function
Calculates distance and bearing to the given location in local
coordinate space.

Added navDestinationPath_t, which encapsulates distance and
bearing.

Refactor calculateDistanceToDestination() and
calculateBearingToDestination() a bit to move the calculations to
static functions that can be reused by navCalculatePathTo()
2018-12-26 12:03:33 +00:00
Alberto García Hierro
c750b5dfd2 Cleanup geo* functions
- Rename gpsOrigin_s type to gpsOrigin_t
- Make geo* conversion functions return wether they succeeded or not
- Reorder geo* functions arguments to follow the (output, inputs)
convention
- Document all the geo* functions
2018-12-26 11:56:37 +00:00
Michel Pastor
f732d3a90a Fix build warnings 2018-12-05 00:56:30 +01:00
Pawel Spychalski (DzikuVx)
b803ae6391 small refactoring of braking entry-leave conditions 2018-10-05 14:28:07 +02:00
Pawel Spychalski (DzikuVx)
507b832263 Merge remote-tracking branch 'origin/development' into dzikuvx-mr-cruise-experiments 2018-09-16 09:34:20 +02:00
Konstantin Sharlaimov (DigitalEntity)
0bf51debd4 Fix failsafe RTH not activating from CRUISE mode if sticks were not centered 2018-08-17 22:29:38 +02:00
Pawel Spychalski (DzikuVx)
bf626e2ec1 Braking disabled on Omnibus target 2018-08-07 14:13:12 +02:00
Pawel Spychalski (DzikuVx)
9212209d96 Merge branch 'development' into dzikuvx-mr-cruise-experiments 2018-08-07 09:46:58 +02:00
Michel Pastor
c949d19725 Remove all trailing whitespaces in .c and .h files 2018-08-06 15:54:20 +02:00
Konstantin Sharlaimov
468502539a
Merge pull request #3654 from shellixyz/limit_descent_to_home_altitude_to_max_auto_climb_rate
Limit the climb/descent rate from RTH alt. to desired home alt.
2018-07-26 21:36:10 +02:00
Michel Pastor
606155da27 Limit the climb/descent rate from RTH alt. to desired home alt. to the max auto climb rate setting 2018-07-26 18:21:53 +02:00
Konstantin Sharlaimov
4cfe65e46e
Merge pull request #3648 from shellixyz/fix_emergency_landing_message
Fix the OSD emergency landing warning message
2018-07-25 20:44:35 +02:00
Michel Pastor
49873acc9a Fix the OSD emergency landing warning message 2018-07-25 18:00:57 +02:00
giacomo892
664da6f104 increase navConfig PG version 2018-07-24 13:46:03 +02:00
giacomo892
440514087b make navTargetPos int32_t to allow logging of altitudes higher than 327m 2018-07-16 21:26:53 +02:00
Konstantin Sharlaimov
6cc3d2900d
Merge pull request #3349 from iNavFlight/de_nav_motor_stop
New setting for disabling motor_stop in NAV modes
2018-07-15 18:20:13 +02:00
Alberto García Hierro
878a2aab51
Merge pull request #3533 from shellixyz/improve_readability
Improve readability
2018-07-11 20:43:37 +01:00
Michel Pastor
726a51ecd2 Improve readability 2018-07-11 20:24:01 +02:00
Alberto García Hierro
c1bcd75d20
Merge pull request #3513 from giacomo892/BBPosZ_fix
Remove posZ constrain to int16 for BB
2018-07-07 21:07:18 +01:00
Pawel Spychalski (DzikuVx)
1231df9654 Merge branch 'development' into dzikuvx-mr-cruise-experiments 2018-07-04 17:08:56 +02:00
giacomo892
c1fc5480d0 Remove posZ constrain 2018-07-04 15:34:08 +02:00