Alberto García Hierro [Sun, 5 May 2019 12:33:02 +0000 (5 13:33 +0100)]
Message Bus: Initial implementation
Basic message bus which accepts messages with a topic and id
(either timed or manually cleared) and allows clearing messages
either by (topic, id) or just by topic.
Message senders need to provide a const char* format, which is
formatted by the OSD at drawing time.
Alberto García Hierro [Sun, 5 May 2019 12:26:46 +0000 (5 13:26 +0100)]
Merge pull request #4683 from iNavFlight/agh_printf_variants
Printf: Implement size checked and va_list variants
Konstantin Sharlaimov [Sun, 5 May 2019 07:59:25 +0000 (5 09:59 +0200)]
Merge pull request #4680 from iNavFlight/de_fix_debug_typo
[FLOW] Fix incorrect axis order in DEBUG_FLOW
stronnag [Sun, 5 May 2019 06:52:50 +0000 (5 07:52 +0100)]
Merge pull request #4679 from iNavFlight/jh-gcc9-warning-fixes
gcc9 warning fix
Alberto García Hierro [Sat, 4 May 2019 23:32:43 +0000 (5 00:32 +0100)]
All: Fix warnings reported by -Wformat
Since the tfp_printf() functions now have format attributes, the
format of the string has to match the arguments.
Alberto García Hierro [Sat, 4 May 2019 23:14:48 +0000 (5 00:14 +0100)]
Printf: Implement size checked and va_list variants
tfp_snprintf(), tfp_vsprintf() and tfp_vsnprintf
Mark all the functions as accepting a format string.
Also, drop the #define's for printf() and snprintf() and call
them explicitely, since #defining printf messes up with
__attribute__ ((format (printf, X, Y)))
giacomo892 [Sat, 4 May 2019 20:27:34 +0000 (4 22:27 +0200)]
Merge pull request #4676 from giacomo892/acc_pt1_giacomo892
Implement PT1 filter option for accelerometer
Jonathan Hudson [Sat, 4 May 2019 19:32:10 +0000 (4 20:32 +0100)]
revert individual file GCC9 warning exceptions and instead add a global exception to platform.h
Konstantin Sharlaimov [Sat, 4 May 2019 19:26:14 +0000 (4 21:26 +0200)]
Merge pull request #4603 from iNavFlight/de_yg_surface_mode_experimental
Add accelerometer weight to position estimation
Konstantin Sharlaimov (DigitalEntity) [Sat, 4 May 2019 19:21:56 +0000 (4 21:21 +0200)]
[FLOW] Fix incorrect axis order in DEBUG_FLOW
Konstantin Sharlaimov [Sat, 4 May 2019 19:11:13 +0000 (4 21:11 +0200)]
Merge pull request #4677 from iNavFlight/jh-gcc-9-atomic-update
update atomic.h gcc version for gcc 9
Jonathan Hudson [Sat, 4 May 2019 17:22:18 +0000 (4 18:22 +0100)]
address gcc9 warnings
Jonathan Hudson [Sat, 4 May 2019 15:58:38 +0000 (4 16:58 +0100)]
update atomic.h gcc version for gcc 9
giacomo892 [Sat, 4 May 2019 13:33:42 +0000 (4 15:33 +0200)]
implement PT1 filter option for accelerometer
giacomo892 [Fri, 3 May 2019 20:02:16 +0000 (3 22:02 +0200)]
Merge pull request #4671 from giacomo892/pt1_gyro_bugfix_giacomo892
gyro filters fixes
giacomo892 [Fri, 3 May 2019 15:31:22 +0000 (3 17:31 +0200)]
code improvement and bugfix
Alberto García Hierro [Thu, 2 May 2019 19:12:06 +0000 (2 20:12 +0100)]
Merge pull request #4648 from iNavFlight/agh_hott_textmode
CMS for HoTT textmode; CMS improvements according to BF
Konstantin Sharlaimov [Thu, 2 May 2019 11:13:31 +0000 (2 13:13 +0200)]
Merge pull request #3795 from iNavFlight/de_opflow_fixes
Optic flow & surface improvements
Konstantin Sharlaimov (DigitalEntity) [Wed, 1 May 2019 20:52:27 +0000 (1 22:52 +0200)]
[OPFLOW] Fix compilation errors when USE_OPFLOW is not defined
Konstantin Sharlaimov (DigitalEntity) [Wed, 1 May 2019 19:43:48 +0000 (1 21:43 +0200)]
[OPFLOW] Refactor USE_* to make sure opflow is enabled for all targets; Implement opflow calibration
Michel Pastor [Tue, 30 Apr 2019 22:11:13 +0000 (1 00:11 +0200)]
Add SPRACINGF7DUAL to release list (#4662)
Fixes #4660
Konstantin Sharlaimov (DigitalEntity) [Wed, 29 Aug 2018 19:35:40 +0000 (29 21:35 +0200)]
Experimental opflow calibration; Add opflow calibration value to MSP [ci skip]
Konstantin Sharlaimov (DigitalEntity) [Sat, 25 Aug 2018 09:44:33 +0000 (25 11:44 +0200)]
Fix debug FLOW_RAW; Change default opflow scale for PWM3901 compatibility
Konstantin Sharlaimov [Tue, 30 Apr 2019 13:40:41 +0000 (30 15:40 +0200)]
Merge pull request #4649 from iNavFlight/de_mc_motor_stop
[FC] Add back MOTOR_STOP for multirotors
Paweł Spychalski [Mon, 29 Apr 2019 20:25:14 +0000 (29 22:25 +0200)]
Merge pull request #4657 from ted-rcnet/development
Update Target YUPIF7 Add Oled - Pitot
Paweł Spychalski [Mon, 29 Apr 2019 20:23:29 +0000 (29 22:23 +0200)]
On MR allow airmode to be sticky and activated by throttle threshold (#4634)
* on MR allow airmode to be sticky and activated by throttle threshold
* fix bug
* make airmode activation threshold configurable
* Keep arimore activation flag as state
* Review changes
ted [Mon, 29 Apr 2019 11:41:51 +0000 (29 13:41 +0200)]
Update Target YUPIF7 Add Oled - Pitot
Alberto García Hierro [Fri, 26 Apr 2019 21:00:50 +0000 (26 22:00 +0100)]
Properly align YES/NO and settings with value names
Alberto García Hierro [Fri, 26 Apr 2019 19:53:35 +0000 (26 21:53 +0200)]
Merge pull request #4537 from shellixyz/ignore_set_get_spaces
CLI: ignore spaces between cmd and setting name for get/set
Alberto García Hierro [Fri, 26 Apr 2019 19:38:51 +0000 (26 21:38 +0200)]
Merge pull request #4647 from iNavFlight/agh_strict_prototypes
Enable -Wstrict-prototypes
Konstantin Sharlaimov (DigitalEntity) [Fri, 26 Apr 2019 18:33:24 +0000 (26 20:33 +0200)]
[FC] Add back MOTOR_STOP for multirotors
Alberto García Hierro [Fri, 26 Apr 2019 16:32:27 +0000 (26 18:32 +0200)]
Merge pull request #4623 from iNavFlight/agh_nav_extra_arming_safety_bypass
Add support for bypassing extra arming safety
Alberto García Hierro [Fri, 26 Apr 2019 14:44:55 +0000 (26 15:44 +0100)]
Fix prototypes for functions with no arguments
Alberto García Hierro [Fri, 26 Apr 2019 14:36:24 +0000 (26 15:36 +0100)]
Add cmsDisplayPortGetCurrent()
Returns the current display port used by CMS without relying on
an extern variable.
Alberto García Hierro [Fri, 26 Apr 2019 14:32:38 +0000 (26 15:32 +0100)]
Remove duplicate entries from source.mk
Introduced accidentaly while rebasing
Alberto García Hierro [Fri, 26 Apr 2019 14:31:31 +0000 (26 15:31 +0100)]
Fix handling of readonly items, cmsMenuChange() and formatting
Andi Kanzler [Tue, 19 Mar 2019 10:42:39 +0000 (19 11:42 +0100)]
CMS for Hott-Textmode
Code embellishment
source.mk sorted correctly ;)
Last changes
Alberto García Hierro [Fri, 26 Apr 2019 15:33:00 +0000 (26 17:33 +0200)]
Merge pull request #4606 from iNavFlight/agh_cliserial
Add +n and -n syntax to serial CLI command
Alberto García Hierro [Fri, 26 Apr 2019 14:57:49 +0000 (26 15:57 +0100)]
Enable -Wstrict-prototypes
Also, fix all warnings shown when it's enabled
Konstantin Sharlaimov [Thu, 25 Apr 2019 19:18:28 +0000 (25 21:18 +0200)]
Merge pull request #4621 from CapnBry/master
Port receiver-driven telemetry frame rate for F.PORT from betaflight
Konstantin Sharlaimov [Thu, 25 Apr 2019 19:11:58 +0000 (25 21:11 +0200)]
Merge pull request #4644 from iNavFlight/de_fix_f7_dma
Fix timer DMA on F7
Konstantin Sharlaimov (DigitalEntity) [Thu, 25 Apr 2019 18:59:53 +0000 (25 20:59 +0200)]
[TIM] Fix timer DMA on F7
Alberto García Hierro [Thu, 25 Apr 2019 12:59:20 +0000 (25 13:59 +0100)]
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.
Alberto García Hierro [Thu, 18 Apr 2019 16:47:11 +0000 (18 17:47 +0100)]
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.
Paweł Spychalski [Wed, 24 Apr 2019 22:14:30 +0000 (25 00:14 +0200)]
Merge pull request #4640 from iNavFlight/dzikuvx-remove-sticks-arming
Remove sticks arming
Pawel Spychalski (DzikuVx) [Wed, 24 Apr 2019 19:00:54 +0000 (24 21:00 +0200)]
Remove unused variable
Pawel Spychalski (DzikuVx) [Wed, 24 Apr 2019 12:27:38 +0000 (24 14:27 +0200)]
Remove sticks arming
Konstantin Sharlaimov [Wed, 24 Apr 2019 18:54:22 +0000 (24 20:54 +0200)]
Merge pull request #4639 from iNavFlight/dzikuvx-remove-mc-motor-stop
MOTOR_STOP removed from Multirotors
Pawel Spychalski (DzikuVx) [Wed, 24 Apr 2019 12:11:20 +0000 (24 14:11 +0200)]
MOTOR_STOP removed from Multirotors
Paweł Spychalski [Tue, 23 Apr 2019 16:09:27 +0000 (23 18:09 +0200)]
Merge pull request #4630 from iNavFlight/dzikuvx-port-iterm-relax
Direct port of BF Iterm relax
Pawel Spychalski (DzikuVx) [Tue, 23 Apr 2019 09:42:08 +0000 (23 11:42 +0200)]
Review changes
Pawel Spychalski (DzikuVx) [Mon, 22 Apr 2019 21:31:09 +0000 (22 23:31 +0200)]
Simplify implementation to have only RP and RPY Iterm relax modes
Pawel Spychalski (DzikuVx) [Mon, 22 Apr 2019 21:06:47 +0000 (22 23:06 +0200)]
Direct port of BF Iterm relax
Michel Pastor [Mon, 22 Apr 2019 17:27:51 +0000 (22 19:27 +0200)]
Add OMNIBUSF4V3_SFTSRL2 to release targets (#4629)
Paweł Spychalski [Sun, 21 Apr 2019 15:42:38 +0000 (21 17:42 +0200)]
Merge pull request #4624 from iNavFlight/dzikuvx-nav-pids-to-pidff
Convert all NAV P-controllers to PIDFF
Konstantin Sharlaimov [Sat, 20 Apr 2019 20:57:52 +0000 (20 22:57 +0200)]
Merge pull request #4626 from shellixyz/omnibusf4v3_sftsrl2
Add target with two softserial ports for OMNIBUSF4V3
Pawel Spychalski (DzikuVx) [Sat, 20 Apr 2019 16:44:43 +0000 (20 18:44 +0200)]
Review changes
Michel Pastor [Sat, 20 Apr 2019 14:12:27 +0000 (20 16:12 +0200)]
Add target with two softserial ports for OMNIBUSF4V3
- One on S5
- One on S6
Requested on Telegram
Pawel Spychalski (DzikuVx) [Fri, 19 Apr 2019 09:10:07 +0000 (19 11:10 +0200)]
Convert all NAV P-controllers to PIDFF without the possibility to change settings
Pawel Spychalski (DzikuVx) [Fri, 19 Apr 2019 08:36:05 +0000 (19 10:36 +0200)]
Remove unused settings
Bryan Mayland [Thu, 18 Apr 2019 19:54:58 +0000 (18 15:54 -0400)]
Merge branch 'master' of github.com:CapnBry/inav
Bryan Mayland [Thu, 18 Apr 2019 19:54:37 +0000 (18 15:54 -0400)]
Fix fport build error when USE_TELEMETRY_SMARTPORT not defined
Bryan Mayland [Thu, 18 Apr 2019 18:51:06 +0000 (18 14:51 -0400)]
Merge branch 'master' into master
Bryan Mayland [Thu, 18 Apr 2019 14:37:08 +0000 (18 10:37 -0400)]
Merge remote-tracking branch 'upstream/master'
Bryan Mayland [Thu, 18 Apr 2019 14:10:38 +0000 (18 10:10 -0400)]
Port receiver-driven telemetry frame rate for F.PORT from betaflight
Konstantin Sharlaimov [Wed, 17 Apr 2019 17:41:57 +0000 (17 19:41 +0200)]
Merge pull request #4612 from iNavFlight/de_dma_element_size
Allow configurable DMA memory buffer element sizes
giacomo892 [Wed, 17 Apr 2019 07:47:18 +0000 (17 09:47 +0200)]
Merge pull request #4617 from giacomo892/32bit_max_distance_giacomo892
Change GPS distance from home to 32bit
giacomo892 [Tue, 16 Apr 2019 17:48:53 +0000 (16 19:48 +0200)]
fix travis...
giacomo892 [Tue, 16 Apr 2019 16:01:46 +0000 (16 18:01 +0200)]
max distance from 16bit to 32bit
Alberto García Hierro [Sat, 13 Apr 2019 17:56:31 +0000 (13 18:56 +0100)]
Add +n and -n syntax to serial CLI command
Allows individually enabling and functions without having to
mentally add 6 digit numbers.
serial ID +n enables function (1 << n)
serial ID -n disables function (1 << n)
Additionally, documentation for the serial command has been added
to Cli.md
Konstantin Sharlaimov (DigitalEntity) [Sun, 14 Apr 2019 16:46:27 +0000 (14 18:46 +0200)]
Set both memory and periph transfer size when setting up DMA transfer
Alberto García Hierro [Wed, 20 Mar 2019 22:43:44 +0000 (20 22:43 +0000)]
Allow configurable DMA memory buffer element sizes
This allows LEDSTRIP and DSHOT to use uint8_t buffers instead of
uint32_t, saving ~2.7K on F4 and F7 and ~2.4K on F3.
Kudos to @hydra for noticing this in BF
Konstantin Sharlaimov [Sun, 14 Apr 2019 16:12:03 +0000 (14 18:12 +0200)]
Merge pull request #4592 from iNavFlight/de_spi_lazy_init
Lazy SPI bus init
Konstantin Sharlaimov [Sun, 14 Apr 2019 12:19:57 +0000 (14 14:19 +0200)]
Merge pull request #4607 from iNavFlight/de_dshot_fix
Align INAV's DSHOT timer divisor rounding with Betaflight's way
Konstantin Sharlaimov [Sun, 14 Apr 2019 10:15:25 +0000 (14 12:15 +0200)]
Merge pull request #4596 from iNavFlight/de_sa_21
Handle SA2.1 GET SETTINGS
Konstantin Sharlaimov (DigitalEntity) [Sun, 14 Apr 2019 10:05:48 +0000 (14 12:05 +0200)]
Disable SPRACINGF3NEO target
Konstantin Sharlaimov (DigitalEntity) [Sat, 13 Apr 2019 21:02:18 +0000 (13 23:02 +0200)]
[DSHOT] Align INAV's DSHOT timer divisor rounding with Betaflight's one. Align DSHOT bit period with Betaflight
Konstantin Sharlaimov [Sat, 13 Apr 2019 20:38:11 +0000 (13 22:38 +0200)]
Merge pull request #4562 from iNavFlight/revert-4529-agh_dmabuffer_memsize
Revert "Allow configurable DMA memory buffer element sizes"
Konstantin Sharlaimov (DigitalEntity) [Sat, 13 Apr 2019 20:19:27 +0000 (13 22:19 +0200)]
Add terrain follow to navFlags
Konstantin Sharlaimov (DigitalEntity) [Sat, 13 Apr 2019 19:46:38 +0000 (13 21:46 +0200)]
[NAV] Increase ranges for navigation weights
Konstantin Sharlaimov (DigitalEntity) [Sat, 13 Apr 2019 11:03:20 +0000 (13 13:03 +0200)]
[SPI] Avoid defining divisor table if interface is unused
Paweł Spychalski [Sat, 13 Apr 2019 10:24:15 +0000 (13 12:24 +0200)]
Merge pull request #4602 from iNavFlight/dzikuvx-kakutef7-servos-in-mr-mode
Enable servos in MR mode on Kakute F7
Konstantin Sharlaimov [Sat, 13 Apr 2019 09:08:48 +0000 (13 11:08 +0200)]
[NAV] Add accelerometer weight so it could be disabled for the estimator if necessary
Pawel Spychalski (DzikuVx) [Sat, 13 Apr 2019 08:40:24 +0000 (13 10:40 +0200)]
Enable servos in MR mode on Kakute F7
Konstantin Sharlaimov (DigitalEntity) [Thu, 11 Apr 2019 20:04:04 +0000 (11 22:04 +0200)]
[VTX] Port SA 2.1 support from Betaflight (thanks to @fujin for his commit)
Konstantin Sharlaimov (DigitalEntity) [Wed, 10 Apr 2019 21:24:08 +0000 (10 23:24 +0200)]
[SDCARD/FLASH] Make sure we only init what's needed for blackbox. This allows SPI bus sharing between SPI and FLASH
Konstantin Sharlaimov (DigitalEntity) [Wed, 10 Apr 2019 21:08:58 +0000 (10 23:08 +0200)]
[SPI] Lazy SPI init; Per-device SPI settings; Allow SDCARD/SPIFLASH bus sharing (init time)
Konstantin Sharlaimov [Sun, 7 Apr 2019 15:39:28 +0000 (7 17:39 +0200)]
Merge pull request #4582 from iNavFlight/de_switch_to_emerg_fix
Fix emergency landing not engaging from initial RTH climb
Konstantin Sharlaimov (DigitalEntity) [Sat, 6 Apr 2019 14:28:00 +0000 (6 16:28 +0200)]
Fix emergency landing not engaging from initial RTH climb
Paweł Spychalski [Thu, 4 Apr 2019 18:21:10 +0000 (4 20:21 +0200)]
Merge pull request #4577 from parchedpacha/patch-1
Add smartport telemetry tip in the FAQ section
parchedpacha [Thu, 4 Apr 2019 16:30:23 +0000 (4 09:30 -0700)]
Add smartport telemetry tip in the FAQ section
This page could use a tip on getting SmartPort telemetry working on F4 boards.
Paweł Spychalski [Tue, 2 Apr 2019 10:20:58 +0000 (2 12:20 +0200)]
Merge pull request #4570 from iNavFlight/dzikuvx-fix-logic-condition-msp-frame-length
Correct length of MSP SET frame for logic conditions
Paweł Spychalski [Mon, 1 Apr 2019 19:25:49 +0000 (1 21:25 +0200)]
Merge pull request #4557 from shellixyz/update_cli_docs
CLI docs: remove old inav_gps_delay setting
Pawel Spychalski (DzikuVx) [Mon, 1 Apr 2019 19:06:46 +0000 (1 21:06 +0200)]
Correct length of MSP SET frame for logic conditions
hali9 [Sun, 31 Mar 2019 01:47:17 +0000 (31 03:47 +0200)]
Remove duplicated code (#4566)
Paweł Spychalski [Sat, 30 Mar 2019 18:03:14 +0000 (30 19:03 +0100)]
Merge pull request #4561 from iNavFlight/dzikuvx-logic-conditions-improvements
New logic conditions operators
Alberto García Hierro [Fri, 29 Mar 2019 15:29:03 +0000 (29 15:29 +0000)]
Revert "Allow configurable DMA memory buffer element sizes"
Pawel Spychalski (DzikuVx) [Fri, 29 Mar 2019 13:56:17 +0000 (29 14:56 +0100)]
NOT operator
Pawel Spychalski (DzikuVx) [Fri, 29 Mar 2019 13:53:12 +0000 (29 14:53 +0100)]
Additional logical operators
Pawel Spychalski (DzikuVx) [Fri, 29 Mar 2019 10:42:36 +0000 (29 11:42 +0100)]
Increase the number of logic conditions to 16