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

6190 commits

Author SHA1 Message Date
Olivier C
633d561427 Adding altitude / sea (MSL) 2018-12-26 14:53:36 +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
Alberto García Hierro
fe4c215886 Add bitarray functions for setting and clearing all the array
- bitArraySetAll() and bitArrayClrAll() set and clear the whole
array, with the size (in bytes) specified by the caller (to make
them work like bitArrayFindFirstSet())
- macros BITARRAY_SET_ALL() and BITARRAY_CLR_ALL() call those two
new functions using sizeof(array) as its size
2018-12-26 11:53:20 +00:00
Alberto García Hierro
9af8bd1236 Fix incorrect return value in bitArrayFindFirstSet() when using non-zero start
When the first bit set is in the same 4-byte group that the start
(with start > 31), the returned index is off by the last multiple
of 32 <= start. This could cause unnecessary updates in the OSD
driver, since a non-dirty char would be actually updated while
it hadn't changed.
2018-12-26 11:50:20 +00:00
Konstantin Sharlaimov (DigitalEntity)
c408736b07 Port Betaflight fpv_mix_degrees setting and camera mix logic for acro mode 2018-12-25 20:45:26 +01:00
Konstantin Sharlaimov (DigitalEntity)
2d36d5ee98 [FOXEER] Enable DSHOT; Remap S5/S6 of F722 board to adopt 6-channel DSHOT 2018-12-25 18:40:21 +01:00
Konstantin Sharlaimov (DigitalEntity)
f5079cf8f1 [FOXEERF722DUAL] Initial cut on target 2018-12-25 17:25:43 +01:00
Konstantin Sharlaimov (DigitalEntity)
fab232ffc9 [FOXEERF405] Add new board, initial cut 2018-12-24 19:00:53 +01:00
Konstantin Sharlaimov
6c9344ba94
Merge pull request #4100 from nyway/development
Add new target DALRCF722DUAL and add DALRCF405 board description
2018-12-24 18:07:34 +01:00
Konstantin Sharlaimov (DigitalEntity)
cb0a3559a6 [MATEKF722SE] Fix beeper; Enable LEDSTRIP 2018-12-23 19:06:31 +01:00
Alberto García Hierro
fb7384e92a Decrement rem_symbols when a symbol slot is used
Spotted by @alexbirkett
2018-12-22 20:50:15 +00:00
ZhengNingwei
57a5942e7d Add new target DALRCF722DUAL and add DALRCF405 board description
Add new target DALRCF722DUAL and add DALRCF405 board description to development branch
2018-12-22 09:35:13 +08:00
Alberto García Hierro
0e3207dd85 Use 5 bits to encode setting words
Saves 1672 bits on F3 without any lost functionality. Retriving a
setting name is significantly slower, but still not slow enough to be
problematic.
2018-12-17 17:13:35 +00:00
Michel Pastor
be103a6208
Improve AHI: support for -180..180° roll angles (#3641)
* Improve AHI: support for -180..180 roll angles

* Improve AHI: configurable max pitch

* Improve AHI: increase horizontal size

* Improve AHI: add possibility to resize it easily
2018-12-17 14:48:59 +01:00
Konstantin Sharlaimov
2b3a010eff
Merge pull request #3966 from rstephan/omnibusf4
Enable AK8975 mag for OMNIBUSF4
2018-12-16 21:38:04 +01:00
Konstantin Sharlaimov
958b49fefb
Merge pull request #4048 from shellixyz/asgard32f7_leds_fix
ASGARD32F7 fix RGB LEDs
2018-12-16 14:51:27 +01:00
giacomo892
9433810b9d
Merge pull request #4082 from giacomo892/fw_launch_idle_spinup
add NAV LAUNCH idle throttle ramp
2018-12-15 18:44:23 +01:00
Konstantin Sharlaimov
83420d0e1e
Merge pull request #4056 from iNavFlight/de_fix_f7nxt_dshot
Fix OMNIBUSF7NXT DSHOT DMA allocation for M6
2018-12-15 17:08:23 +01:00
giacomo892
71581e5b0c Enforce spinup time even for idle throttle 2018-12-13 17:09:54 +01:00
Michel Pastor
3dc3158aca
Merge pull request #4064 from shellixyz/osd_layout_switch_on_fs
Add option to switch to OSD layout #0 during failsafe
2018-12-09 03:36:41 +01:00
Stewart Loving-Gibbard
ff4a6ecdd5 Seems to be working. Not fancy but effective. 2018-12-08 13:58:19 -08:00
Konstantin Sharlaimov
4d718e2009
Merge pull request #4050 from shellixyz/32bits_debug_array
Make the debug array cells int32 and increase cell count to 8
2018-12-07 14:23:21 +01:00
Michel Pastor
f5e3a041ba Add option to switch to layout #0 during failsafe 2018-12-06 22:35:25 +01:00
Michel Pastor
f732d3a90a Fix build warnings 2018-12-05 00:56:30 +01:00
Konstantin Sharlaimov (DigitalEntity)
739c590823 Fix OMNIBUSF7 NXT DSHOT DMA allocation 2018-12-03 20:23:29 +01:00
Michel Pastor
4ee617771c Make the debug array cells int32 and increase cell count to 8 2018-12-03 14:52:48 +01:00
Michel Pastor
a76a2ade33 Fix #4044 2018-12-03 02:12:03 +01:00
giacomo892
5b00eb7b6e
Merge pull request #4045 from giacomo892/debug_mode_ACC
add raw accelerometer values "ACC" debug_mode
2018-12-02 21:34:36 +01:00
Konstantin Sharlaimov
bd2f548fa9
Merge pull request #4044 from giacomo892/velned_BB
Log ublox velNED to BB
2018-12-02 21:15:13 +01:00
Paweł Spychalski
f26bd2416b
Merge pull request #4023 from iNavFlight/dzikuvx-fw-iterm-anit-windup
Limit Iterm on FW depending on stick position
2018-12-02 14:03:45 +01:00
Michel Pastor
769e4f08d7 ASGARD32F7 fix RGB LEDs 2018-12-01 23:19:54 +01:00
Konstantin Sharlaimov
4315383112
Merge pull request #4046 from alexeystn/fix_ppm_initialization
Fix PPM input initialization
2018-11-29 23:04:51 +01:00
Alexey Stankevich
160f240ea0 Fix PPM input initialization 2018-11-29 23:30:52 +03:00
giacomo892
6325e934dd Log ublox velNED to BB 2018-11-29 15:04:35 +01:00
giacomo892
80e7094457 add raw accelerometer debug_mode 2018-11-29 15:03:22 +01:00
Steffen
107cff1cba SPRACINGF7DUAL: refactoring
- Update SDCARD definitions
- remove unused defines
- Add more supported compasses
- declare both gyros manually
2018-11-28 11:03:06 +01:00
Steffen
fe3f29f90e SPRACINGF7DUAL: remove unused code/cleanup 2018-11-28 10:34:09 +01:00
Steffen
7b50aa8fe3 SPRACINGF7DUAL: fix adc 2018-11-28 10:34:09 +01:00
Steffen
b74c6ef553 SPRACINGF7DUAL: fix barometer 2018-11-28 10:34:09 +01:00
Steffen
5f5c51303d SPRACINGF7DUAL: set gyro alignment 2018-11-28 10:34:09 +01:00
Steffen
7fcd462828 SPRACINGF7DUAL: use TIM_USE_MC_MOTOR 2018-11-28 10:34:09 +01:00
Steffen
c8aa688536 SPRACINF7DUAL: initialize gyro
The SPRACINGF7DUAL has to MPU6500 gyros on one spi bus.
To use one of them we have to initialize both cs pins.
2018-11-28 10:34:09 +01:00
Steffen Dirkwinkel
9aefd9ab54 SPRACINGF7DUAL: add changes for inav 2018-11-28 10:34:09 +01:00
Steffen Dirkwinkel
b222c0c430 SPRACINGf7DUAL: port makefile and timers 2018-11-28 10:34:09 +01:00
Steffen
d15b5e7729 SPRACINGF7DUAL: import from bf 2018-11-28 10:34:09 +01:00
Konstantin Sharlaimov
e8a4016134
Merge pull request #4038 from junwoo091400/remove_redundant_isAdjustingPosition
Remove redundant "isadjustingposition" variable assignment
2018-11-27 18:13:21 +01:00
JunwooHWANG
169f349c05
Remove redundant isAdjustingPosition var From nav_fw
Redundant, since line 252 already checks if 'posControl.flags.isAdjustingPosition' is true.
2018-11-27 23:28:03 +09:00
Michel Pastor
184dabd85c Fix OMNIBUSF4PRO and OMNIBUSF4V3 configurator bug 2018-11-27 04:07:37 +01:00
Konstantin Sharlaimov
4927baa0c3
Merge pull request #4037 from MATEKSYS/development
Add softserial definition to MATEKF722SE
2018-11-26 19:47:09 +01:00