inav/snaewe.git
3 years agoMerge pull request #3715 from iNavFlight/de_update_travis_gcc2.0.0-RC6
Konstantin Sharlaimov [Wed, 8 Aug 2018 16:29:35 +0000 (8 18:29 +0200)]
Merge pull request #3715 from iNavFlight/de_update_travis_gcc

Update Travis CI gcc version

3 years agoMerge pull request #3714 from iNavFlight/de_update_release_targets
Konstantin Sharlaimov [Wed, 8 Aug 2018 16:29:20 +0000 (8 18:29 +0200)]
Merge pull request #3714 from iNavFlight/de_update_release_targets

Add SPEEDYBEEF4 to release targets

3 years ago Make FrSky telem use smartport_fuel_unit (#3713)
Tim Eckel [Wed, 8 Aug 2018 16:29:07 +0000 (8 12:29 -0400)]
 Make FrSky telem use smartport_fuel_unit (#3713)

Make FrSky telem use smartport_fuel_unit

3 years agoMerge pull request #3708 from giacomo892/fix_vtx_settings
Konstantin Sharlaimov [Wed, 8 Aug 2018 16:28:36 +0000 (8 18:28 +0200)]
Merge pull request #3708 from giacomo892/fix_vtx_settings

Fix missing vtx settings from CLI

3 years agoTelemetry documentation changes/clarification for 2.0 (#3712)
Tim Eckel [Tue, 7 Aug 2018 20:23:30 +0000 (7 16:23 -0400)]
Telemetry documentation changes/clarification for 2.0 (#3712)

Documentation clarification for telemetry

3 years agoUpdate Travis CI gcc version
Konstantin Sharlaimov (DigitalEntity) [Tue, 7 Aug 2018 20:12:01 +0000 (7 22:12 +0200)]
Update Travis CI gcc version

3 years agofix missing vtx settings from CLI
giacomo892 [Tue, 7 Aug 2018 08:32:55 +0000 (7 10:32 +0200)]
fix missing vtx settings from CLI

3 years agoAdd SPEEDYBEEF4 to release targets
Konstantin Sharlaimov (DigitalEntity) [Tue, 7 Aug 2018 19:42:35 +0000 (7 21:42 +0200)]
Add SPEEDYBEEF4 to release targets

3 years agoMerge pull request #3710 from giacomo892/remove_ancient_gps_protocol
Konstantin Sharlaimov [Tue, 7 Aug 2018 19:39:00 +0000 (7 21:39 +0200)]
Merge pull request #3710 from giacomo892/remove_ancient_gps_protocol

Drop multiwii I2C gps board support for OMNIBUS

3 years agoMerge pull request #3704 from iNavFlight/de_update_contrib
Konstantin Sharlaimov [Tue, 7 Aug 2018 19:35:46 +0000 (7 21:35 +0200)]
Merge pull request #3704 from iNavFlight/de_update_contrib

Update AUTHORS list. Add Contributor Code of Conduct

3 years agodrop multiwii I2C gps board support for OMNIBUS
giacomo892 [Tue, 7 Aug 2018 16:22:30 +0000 (7 18:22 +0200)]
drop multiwii I2C gps board support for OMNIBUS

3 years agoMerge pull request #3705 from iNavFlight/de_update_release_targets
Konstantin Sharlaimov [Tue, 7 Aug 2018 05:41:17 +0000 (7 07:41 +0200)]
Merge pull request #3705 from iNavFlight/de_update_release_targets

Add MATEKF411 to 'make release' targets

3 years agoAdd MATEKF411 to 'make release' targets
Konstantin Sharlaimov (DigitalEntity) [Mon, 6 Aug 2018 19:03:46 +0000 (6 21:03 +0200)]
Add MATEKF411 to 'make release' targets

3 years agoMerge pull request #3703 from iNavFlight/de_fix_rx_time_overflow
Konstantin Sharlaimov [Mon, 6 Aug 2018 19:00:49 +0000 (6 21:00 +0200)]
Merge pull request #3703 from iNavFlight/de_fix_rx_time_overflow

Fix RX timekeeping overflow

3 years agoUpdate AUTHORS list. Add Contributor Code of Conduct
Konstantin Sharlaimov (DigitalEntity) [Mon, 6 Aug 2018 18:35:54 +0000 (6 20:35 +0200)]
Update AUTHORS list. Add Contributor Code of Conduct

3 years agoCLI switch to send pitch/roll instead of accelerometer FrSky telemetry (#3701)
Tim Eckel [Mon, 6 Aug 2018 18:22:32 +0000 (6 14:22 -0400)]
CLI switch to send pitch/roll instead of accelerometer FrSky telemetry (#3701)

Option to send pitch/roll instead of accelerometer FrSky telemetry

3 years agoMerge pull request #3702 from shellixyz/clean_targets
Konstantin Sharlaimov [Mon, 6 Aug 2018 18:20:49 +0000 (6 20:20 +0200)]
Merge pull request #3702 from shellixyz/clean_targets

Clean the CLRACINGF4AIR and SPEEDYBEEF4 targets

3 years agoMerge pull request #3299 from shellixyz/remove_trailing_whitespaces
Konstantin Sharlaimov [Mon, 6 Aug 2018 18:19:22 +0000 (6 20:19 +0200)]
Merge pull request #3299 from shellixyz/remove_trailing_whitespaces

Remove all trailing whitespaces in .c and .h files

3 years agoFix RX timekeeping overflow
Konstantin Sharlaimov (DigitalEntity) [Mon, 6 Aug 2018 18:16:23 +0000 (6 20:16 +0200)]
Fix RX timekeeping overflow

3 years agoClean the SPEEDYBEEF4 target
Michel Pastor [Mon, 6 Aug 2018 14:02:34 +0000 (6 16:02 +0200)]
Clean the SPEEDYBEEF4 target

3 years agoClean the CLRACINGF4AIR target
Michel Pastor [Mon, 6 Aug 2018 14:02:23 +0000 (6 16:02 +0200)]
Clean the CLRACINGF4AIR target

3 years agoRemove all trailing whitespaces in .c and .h files
Michel Pastor [Mon, 6 Aug 2018 13:54:20 +0000 (6 15:54 +0200)]
Remove all trailing whitespaces in .c and .h files

3 years agoMerge pull request #3696 from iNavFlight/de_rssi_channel_fix2.0.0-RC5
Konstantin Sharlaimov [Sun, 5 Aug 2018 15:53:21 +0000 (5 17:53 +0200)]
Merge pull request #3696 from iNavFlight/de_rssi_channel_fix

Fix RSSI channel freeze when receiver is in failsafe

3 years agoFix RSSI channel freeze when receiver is in failsafe
Konstantin Sharlaimov (DigitalEntity) [Sat, 4 Aug 2018 19:57:08 +0000 (4 21:57 +0200)]
Fix RSSI channel freeze when receiver is in failsafe

3 years agoMerge pull request #3694 from iNavFlight/jh_update_ubuntu_build_document
Konstantin Sharlaimov [Sat, 4 Aug 2018 16:05:10 +0000 (4 18:05 +0200)]
Merge pull request #3694 from iNavFlight/jh_update_ubuntu_build_document

update Ubuntu dev document to use the PPA compiler for all instances

3 years agoupdate Ubuntu dev document to use the PPA compiler for all instances
Jonathan Hudson [Sat, 4 Aug 2018 11:29:53 +0000 (4 12:29 +0100)]
update Ubuntu dev document to use the PPA compiler for all instances

3 years agoMerge pull request #3347 from AlienFlightINAV/AFNGF7_OSD
Konstantin Sharlaimov [Thu, 2 Aug 2018 20:42:02 +0000 (2 22:42 +0200)]
Merge pull request #3347 from AlienFlightINAV/AFNGF7_OSD

Add OSD support for AFNG F7 Horus30 boards

3 years agoMerge branch 'development' into AFNGF7_OSD
Konstantin Sharlaimov [Thu, 2 Aug 2018 18:46:58 +0000 (2 20:46 +0200)]
Merge branch 'development' into AFNGF7_OSD

3 years agoMerge pull request #3683 from bforbort/MAG_LIS3MDL
Konstantin Sharlaimov [Thu, 2 Aug 2018 18:38:42 +0000 (2 20:38 +0200)]
Merge pull request #3683 from bforbort/MAG_LIS3MDL

Add support for ST LIS3MDL MEMS sensor

3 years agoAdd OSD support for AFNG F7 Horus30 boards
MJ666 [Wed, 30 May 2018 19:55:05 +0000 (30 21:55 +0200)]
Add OSD support for AFNG F7 Horus30 boards
Enable SPI Flash for AFNG F7 Osiris20 boards

3 years agoCleanup
Blaine [Wed, 1 Aug 2018 23:42:20 +0000 (1 16:42 -0700)]
Cleanup

Removed unused includes
Reduced detection retry attempts
Removed delays from init

Bench tested, detected and all init messages where acknoloadged

3 years agoAdd comment about second I2C address
Blaine [Wed, 1 Aug 2018 22:00:17 +0000 (1 15:00 -0700)]
Add comment about second I2C address

3 years agoMerge pull request #3673 from iNavFlight/de_timer_fixes
Konstantin Sharlaimov [Wed, 1 Aug 2018 17:52:19 +0000 (1 19:52 +0200)]
Merge pull request #3673 from iNavFlight/de_timer_fixes

Initialize timer pins in a backward-compatible way.

3 years agoRevert "Detect LIS3MDL in either address configuration"
Blaine [Wed, 1 Aug 2018 03:09:30 +0000 (31 20:09 -0700)]
Revert "Detect LIS3MDL in either address configuration"

This reverts commit d7addd5cc03a75667d65ada250c06f06492f9783.

3 years agoDetect LIS3MDL in either address configuration
Blaine [Wed, 1 Aug 2018 01:38:55 +0000 (31 18:38 -0700)]
Detect LIS3MDL in either address configuration

3 years agoAdd support for ST LIS3MDL 3-axis MEMS magnetic field sensor
Blaine [Mon, 21 May 2018 04:16:17 +0000 (20 21:16 -0700)]
Add support for ST LIS3MDL 3-axis MEMS magnetic field sensor

This sensor is coming equipped on some newer GPS receivers.

Testing with mRo uGPS ublox SAM M8Q on a Theer wing.
https://store.mrobotics.io/product-p/mro-ugps-samm8q-01.htm

3 years agoMerge pull request #3675 from shellixyz/fix_rth_estimator
Konstantin Sharlaimov [Mon, 30 Jul 2018 18:29:01 +0000 (30 20:29 +0200)]
Merge pull request #3675 from shellixyz/fix_rth_estimator

Fix for the RTH estimator

3 years agoFix for the RTH estimator
Michel Pastor [Sun, 29 Jul 2018 23:05:41 +0000 (30 01:05 +0200)]
Fix for the RTH estimator

3 years agoMerge pull request #3674 from iNavFlight/de_readme_update
Konstantin Sharlaimov [Sun, 29 Jul 2018 19:54:32 +0000 (29 21:54 +0200)]
Merge pull request #3674 from iNavFlight/de_readme_update

Update readme

3 years agoReadme update
Konstantin Sharlaimov (DigitalEntity) [Sun, 29 Jul 2018 18:18:40 +0000 (29 20:18 +0200)]
Readme update

3 years agoInitialize all timer pins as IN_PD. Disable some unused peripheral clocks
Konstantin Sharlaimov (DigitalEntity) [Sun, 29 Jul 2018 18:08:43 +0000 (29 20:08 +0200)]
Initialize all timer pins as IN_PD. Disable some unused peripheral clocks

3 years agoMerge branch 'development' into patch-1
Konstantin Sharlaimov [Sun, 29 Jul 2018 17:39:59 +0000 (29 19:39 +0200)]
Merge branch 'development' into patch-1

3 years agoMerge pull request #3661 from iNavFlight/agh_fix_coordinate_display
Konstantin Sharlaimov [Sat, 28 Jul 2018 07:43:35 +0000 (28 09:43 +0200)]
Merge pull request #3661 from iNavFlight/agh_fix_coordinate_display

Fix missing leading zeroes in when formatting coordinates

3 years agoMerge pull request #3665 from iNavFlight/gcc_8.2_trivia
Konstantin Sharlaimov [Sat, 28 Jul 2018 07:42:38 +0000 (28 09:42 +0200)]
Merge pull request #3665 from iNavFlight/gcc_8.2_trivia

cleanup a pointless use of __packed (gcc 8.2 warning)

3 years agoAdd missing IRC channel information
Joe Hermaszewski [Fri, 27 Jul 2018 21:18:13 +0000 (27 22:18 +0100)]
Add missing IRC channel information

Seems to have been removed in c507aa2d0f651f0506bac6e66993ada0b008f92e

3 years agocleanup a pointless use of __packed (gcc 8.2 warning)
Jonathan Hudson [Fri, 27 Jul 2018 16:54:32 +0000 (27 17:54 +0100)]
cleanup a pointless use of __packed (gcc 8.2 warning)

3 years agoMerge pull request #3033 from David-VG/development
Alberto García Hierro [Fri, 27 Jul 2018 07:16:19 +0000 (27 08:16 +0100)]
Merge pull request #3033 from David-VG/development

Add SOFTSERIAL support on TX2 for MATEKF405 target

3 years agoFix missing leading zeroes in when formatting coordinates
Alberto García Hierro [Thu, 26 Jul 2018 21:35:32 +0000 (26 22:35 +0100)]
Fix missing leading zeroes in when formatting coordinates

Only trailing zeroes were being added, causing incorrect formatting
when the decimal part was less than 0.1deg.

3 years agoMerge pull request #3660 from iNavFlight/de_rx_code_cleanups
Konstantin Sharlaimov [Thu, 26 Jul 2018 19:43:39 +0000 (26 21:43 +0200)]
Merge pull request #3660 from iNavFlight/de_rx_code_cleanups

Remove dead PWM/PPM-related code

3 years agoMerge pull request #3654 from shellixyz/limit_descent_to_home_altitude_to_max_auto_cl...
Konstantin Sharlaimov [Thu, 26 Jul 2018 19:36:10 +0000 (26 21:36 +0200)]
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.

3 years agoMerge pull request #3631 from giacomo892/doc-fixes
Konstantin Sharlaimov [Thu, 26 Jul 2018 19:33:47 +0000 (26 21:33 +0200)]
Merge pull request #3631 from giacomo892/doc-fixes

Gyro documentation updates

3 years agoLimit the climb/descent rate from RTH alt. to desired home alt. to the max auto climb...
Michel Pastor [Tue, 24 Jul 2018 15:55:36 +0000 (24 17:55 +0200)]
Limit the climb/descent rate from RTH alt. to desired home alt. to the max auto climb rate setting

3 years agoRemove dead PWM/PPM-related code
Konstantin Sharlaimov (DigitalEntity) [Wed, 25 Jul 2018 20:20:23 +0000 (25 22:20 +0200)]
Remove dead PWM/PPM-related code

3 years agoMerge pull request #3647 from teckel12/te_nav_cruise_mode_frsky_telemetry
Konstantin Sharlaimov [Wed, 25 Jul 2018 18:58:28 +0000 (25 20:58 +0200)]
Merge pull request #3647 from teckel12/te_nav_cruise_mode_frsky_telemetry

Add `NAV_CRUISE_MODE` to FrSky/S.Port Telemetry

3 years agoMerge pull request #3653 from dbasch/development
Konstantin Sharlaimov [Wed, 25 Jul 2018 18:58:16 +0000 (25 20:58 +0200)]
Merge pull request #3653 from dbasch/development

Added support for SPEEDYBEEF4 board

3 years agoMerge pull request #3656 from shellixyz/fix_building_with_disabled_features
Konstantin Sharlaimov [Wed, 25 Jul 2018 18:58:06 +0000 (25 20:58 +0200)]
Merge pull request #3656 from shellixyz/fix_building_with_disabled_features

Fix building with disabled features

3 years agoMerge pull request #3657 from shellixyz/fix_pmw_pwm_typo
Konstantin Sharlaimov [Wed, 25 Jul 2018 18:57:51 +0000 (25 20:57 +0200)]
Merge pull request #3657 from shellixyz/fix_pmw_pwm_typo

Fix typo USE_PMW_SERVO_DRIVER -> USE_PWM_SERVO_DRIVER

3 years agoMerge pull request #3648 from shellixyz/fix_emergency_landing_message
Konstantin Sharlaimov [Wed, 25 Jul 2018 18:44:35 +0000 (25 20:44 +0200)]
Merge pull request #3648 from shellixyz/fix_emergency_landing_message

Fix the OSD emergency landing warning message

3 years agoFix the OSD emergency landing warning message
Michel Pastor [Wed, 25 Jul 2018 16:00:57 +0000 (25 18:00 +0200)]
Fix the OSD emergency landing warning message

3 years agoFix typo USE_PMW_SERVO_DRIVER -> USE_PWM_SERVO_DRIVER
Michel Pastor [Wed, 25 Jul 2018 15:46:30 +0000 (25 17:46 +0200)]
Fix typo USE_PMW_SERVO_DRIVER -> USE_PWM_SERVO_DRIVER

3 years agoremoved debug lines
Diego Basch [Wed, 25 Jul 2018 15:10:51 +0000 (25 08:10 -0700)]
removed debug lines

3 years agoAdd USE_ prefix to AUTOTUNE_FIXED_WING
Michel Pastor [Wed, 25 Jul 2018 15:03:23 +0000 (25 17:03 +0200)]
Add USE_ prefix to AUTOTUNE_FIXED_WING

3 years agoadded SPEEDYBEEF4 target
Diego Basch [Wed, 25 Jul 2018 14:59:05 +0000 (25 07:59 -0700)]
added SPEEDYBEEF4 target

3 years agoFix building without USE_VTX_*
Michel Pastor [Wed, 25 Jul 2018 14:57:59 +0000 (25 16:57 +0200)]
Fix building without USE_VTX_*

3 years agoFix building with USE_TELEMETRY_CRSF but without USE_SERIALRX_CRSF
Michel Pastor [Wed, 25 Jul 2018 14:38:28 +0000 (25 16:38 +0200)]
Fix building with USE_TELEMETRY_CRSF but without USE_SERIALRX_CRSF

3 years agoFix warnings when building without USE_TELEMETRY_SMARTPORT
Michel Pastor [Wed, 25 Jul 2018 14:33:29 +0000 (25 16:33 +0200)]
Fix warnings when building without USE_TELEMETRY_SMARTPORT

3 years agoFix building without USE_CMS
Michel Pastor [Wed, 25 Jul 2018 14:26:47 +0000 (25 16:26 +0200)]
Fix building without USE_CMS

3 years agoFix building without USE_WIND_ESTIMATOR
Michel Pastor [Wed, 25 Jul 2018 14:23:59 +0000 (25 16:23 +0200)]
Fix building without USE_WIND_ESTIMATOR

3 years agoAdded cruise mode to frsky/s.port telemetry
Tim Eckel [Tue, 24 Jul 2018 20:14:40 +0000 (24 16:14 -0400)]
Added cruise mode to frsky/s.port telemetry

3 years agoMerge pull request #3645 from iNavFlight/de_unify_reboot
Konstantin Sharlaimov [Tue, 24 Jul 2018 18:41:06 +0000 (24 20:41 +0200)]
Merge pull request #3645 from iNavFlight/de_unify_reboot

Unify reboot sequence across all use-cases

3 years agoMerge pull request #3646 from giacomo892/navConfig-broken-config-fix
Konstantin Sharlaimov [Tue, 24 Jul 2018 17:32:23 +0000 (24 19:32 +0200)]
Merge pull request #3646 from giacomo892/navConfig-broken-config-fix

increase navConfig PG version

3 years agoMerge pull request #3649 from shellixyz/take_into_account_climb_first_setting_for_rth...
Konstantin Sharlaimov [Tue, 24 Jul 2018 17:24:15 +0000 (24 19:24 +0200)]
Merge pull request #3649 from shellixyz/take_into_account_climb_first_setting_for_rth_estimations

Take into account the climb_first setting in RTH estimations

3 years agoFix compile-time issue
Konstantin Sharlaimov (DigitalEntity) [Tue, 24 Jul 2018 17:23:46 +0000 (24 19:23 +0200)]
Fix compile-time issue

3 years agoTake into account the climb_first setting in RTH estimations
Michel Pastor [Tue, 24 Jul 2018 15:01:29 +0000 (24 17:01 +0200)]
Take into account the climb_first setting in RTH estimations

3 years agoMerge pull request #4 from iNavFlight/development
Tim Eckel [Tue, 24 Jul 2018 12:52:10 +0000 (24 08:52 -0400)]
Merge pull request #4 from iNavFlight/development

Sync with INAV development

3 years agoincrease navConfig PG version
giacomo892 [Tue, 24 Jul 2018 11:46:03 +0000 (24 13:46 +0200)]
increase navConfig PG version

3 years agoUnify reboot sequence across all use-cases
Konstantin Sharlaimov (DigitalEntity) [Mon, 23 Jul 2018 19:31:46 +0000 (23 21:31 +0200)]
Unify reboot sequence across all use-cases

4 years agoMerge pull request #3635 from iNavFlight/de_crsf_fix
Konstantin Sharlaimov [Sat, 21 Jul 2018 21:06:05 +0000 (21 23:06 +0200)]
Merge pull request #3635 from iNavFlight/de_crsf_fix

Updated CRSF frame format to use the sync byte instead of the frame address

4 years agoFix CRSF telemetry address byte
Konstantin Sharlaimov (DigitalEntity) [Sat, 21 Jul 2018 20:26:14 +0000 (21 22:26 +0200)]
Fix CRSF telemetry address byte

4 years agoMerge pull request #3634 from iNavFlight/agh_fix_pixracer_mag_orientation
Konstantin Sharlaimov [Sat, 21 Jul 2018 19:31:50 +0000 (21 21:31 +0200)]
Merge pull request #3634 from iNavFlight/agh_fix_pixracer_mag_orientation

Fix default mag orientation in PIXRACER target

4 years agoFix default mag orientation in PIXRACER target
Alberto García Hierro [Sat, 21 Jul 2018 17:44:00 +0000 (21 18:44 +0100)]
Fix default mag orientation in PIXRACER target

Orientation was not defined, so it used the default one
(non-flipped, non-rotated) while the MAG in this board is actually
rotated 90º CW.

Thanks to Jivitesh Debata for testing the fix.

4 years agoMerge pull request #3633 from iNavFlight/agh_akk_smartaudio_bug_workaround
Alberto García Hierro [Fri, 20 Jul 2018 22:23:51 +0000 (20 23:23 +0100)]
Merge pull request #3633 from iNavFlight/agh_akk_smartaudio_bug_workaround

Add workaround for AKK VTX with S.Audio bug

4 years agoAdd workaround for AKK VTX with S.Audio bug
Alberto García Hierro [Fri, 20 Jul 2018 20:21:04 +0000 (20 21:21 +0100)]
Add workaround for AKK VTX with S.Audio bug

It shouldn't affect VTX properly implementing SmartAudio, since
the workaround only requires sending an extra zero byte. Tested
with AKK X2 Ultimate.

Actual fix by @codecae and @mikeller from BF.

Fixes #3625

4 years agoDocumentation updates
giacomo892 [Fri, 20 Jul 2018 07:58:18 +0000 (20 09:58 +0200)]
Documentation updates

4 years agoMerge pull request #3617 from shellixyz/rename_bb_vbat_and_amperage
Konstantin Sharlaimov [Wed, 18 Jul 2018 19:26:58 +0000 (18 21:26 +0200)]
Merge pull request #3617 from shellixyz/rename_bb_vbat_and_amperage

Rename BB vbat and amperage fields to match recent changes

4 years agoMerge pull request #3609 from giacomo892/navTgtPosition_int32
Konstantin Sharlaimov [Wed, 18 Jul 2018 19:26:08 +0000 (18 21:26 +0200)]
Merge pull request #3609 from giacomo892/navTgtPosition_int32

Switch navTgtPos BB to int32_t

4 years agoMerge pull request #3613 from iNavFlight/agh_new_rssi_min_max
Konstantin Sharlaimov [Wed, 18 Jul 2018 19:12:53 +0000 (18 21:12 +0200)]
Merge pull request #3613 from iNavFlight/agh_new_rssi_min_max

Replace rssi_scale and rssi_invert with rssi_min and rssi_max

4 years agoMerge pull request #3619 from iNavFlight/agh_validate_settings
Konstantin Sharlaimov [Wed, 18 Jul 2018 19:12:10 +0000 (18 21:12 +0200)]
Merge pull request #3619 from iNavFlight/agh_validate_settings

 Validate all settings at startup

4 years agoFix valid ranges for 3d_deadband_throttle and fw_ff_to_i_time_constant
Alberto García Hierro [Wed, 18 Jul 2018 10:32:31 +0000 (18 11:32 +0100)]
Fix valid ranges for 3d_deadband_throttle and fw_ff_to_i_time_constant

Their default values were outside their valid ranges

4 years agoValidate all settings in startup
Alberto García Hierro [Wed, 18 Jul 2018 10:22:57 +0000 (18 11:22 +0100)]
Validate all settings in startup

When reading the EEPROM, perform a full setting validation to ensure
all have values in their allowed ranges. This will prevent arming
in case of an improperly performed upgrade changes any setting to
an invalid value.

4 years agoMerge pull request #3616 from iNavFlight/agh_remove_sport_sensor_wait
Konstantin Sharlaimov [Tue, 17 Jul 2018 17:30:29 +0000 (17 19:30 +0200)]
Merge pull request #3616 from iNavFlight/agh_remove_sport_sensor_wait

Eliminate 500us Smarport response delay

4 years agoEliminate 500us Smarport response delay
Alberto García Hierro [Mon, 16 Jul 2018 09:10:49 +0000 (16 10:10 +0100)]
Eliminate 500us Smarport response delay

In 1.9.1, we didn't have any delays due to a bug which
wasn't updating the time of the last received S.Port request
but no problems were reported besides the lost of all sensors
after 35 minutes (caused by the overflow of the time
comparison).

However, enforcing the delay seems to cause issues with MSP
over SmartPort, see the following BF issues which has
already included the fixed delay in a release:

https://github.com/betaflight/betaflight/issues/6313
https://github.com/betaflight/betaflight/issues/6360
https://github.com/betaflight/betaflight/issues/6369

Tracing back the origin of the delay, it looks like it was added
as a cautionary measure at some point because FPort does need it,
but everything indicates S.Port works fine without it.

Inspired by @mikeller's fix in BF, the static variables have
been made non-static.

4 years agoRename BB vbat and amperage fields to match recent changes
Michel Pastor [Tue, 17 Jul 2018 13:23:52 +0000 (17 15:23 +0200)]
Rename BB vbat and amperage fields to match recent changes

4 years agoReplace rssi_scale and rssi_invert with rssi_min and rssi_max
Alberto García Hierro [Mon, 16 Jul 2018 15:43:56 +0000 (16 16:43 +0100)]
Replace rssi_scale and rssi_invert with rssi_min and rssi_max

rssi_min and rssi_max allow users to specify their RSSI range by
simply introducing the smaller and bigger values they see in the
configurator or OSD, similarly to how rxrange works.

4 years agoswitching navTgtPos to using real PREDICT(PREVIOUS)
giacomo892 [Mon, 16 Jul 2018 09:07:29 +0000 (16 11:07 +0200)]
switching navTgtPos to using real PREDICT(PREVIOUS)

4 years agomake navTargetPos int32_t to allow logging of altitudes higher than 327m
giacomo892 [Mon, 16 Jul 2018 09:01:03 +0000 (16 11:01 +0200)]
make navTargetPos int32_t to allow logging of altitudes higher than 327m

4 years agoMerge pull request #3482 from iNavFlight/de_rcdata_ignore_failsafe
Konstantin Sharlaimov [Mon, 16 Jul 2018 19:05:16 +0000 (16 21:05 +0200)]
Merge pull request #3482 from iNavFlight/de_rcdata_ignore_failsafe

Ignore RC channel values sent by receiver in failsafe

4 years agoMerge pull request #3612 from iNavFlight/agh_fix_f3evo_compass_direction
Konstantin Sharlaimov [Mon, 16 Jul 2018 18:40:43 +0000 (16 20:40 +0200)]
Merge pull request #3612 from iNavFlight/agh_fix_f3evo_compass_direction

Fix default compass direction for SPRACINGF3EVO

4 years agoFix default compass direction for SPRACINGF3EVO
Alberto García Hierro [Mon, 16 Jul 2018 16:09:03 +0000 (16 17:09 +0100)]
Fix default compass direction for SPRACINGF3EVO

Fixes #3438

4 years agoMerge pull request #3608 from iNavFlight/agh_settings_validate_minmax
Alberto García Hierro [Mon, 16 Jul 2018 16:06:45 +0000 (16 17:06 +0100)]
Merge pull request #3608 from iNavFlight/agh_settings_validate_minmax

When encoding settings, validate that min <= max for all settings