Commit Graph

12901 Commits

Author SHA1 Message Date
Bruce Luckcuck b5cb1bf65a Add osd_ah_invert to allow reversing the direction of the OSD artificial horizon 2018-11-10 15:28:10 -05:00
Mark Hale 2b2b6e8c53 Support for enabling individual ESC telemetry sensors.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-10 19:53:19 +00:00
Bruce Luckcuck 003e89d747 Limit aux channel servo forwarding by max_aux_channels setting
No reason process forwarding for channels that aren't going to be active from the RX.
2018-11-10 13:54:46 -05:00
jflyper 635f8fc18a Add debug mode for adc internal sensor calibration 2018-11-11 03:33:41 +09:00
mikeller abcdb0a90c Added guard against repetitive task resetting to hott text mode. 2018-11-11 00:30:22 +13:00
mikeller da52d827d4 Omit task names if task statistics are not collected. 2018-11-11 00:12:24 +13:00
mikeller 0d5b2c417c Added '=' after defines in test Makefile to avoid conflicts because gcc defaults to '1' for command line defines. 2018-11-10 20:10:55 +13:00
Michael Keller b58e8f827f
Merge pull request #7056 from etracer65/fix_osd_warning_blinking
Improve behavior of OSD warnings element blinking
2018-11-10 20:00:10 +13:00
Michael Keller 3cbf8ae02f
Merge pull request #7062 from etracer65/add_tpa_d_only_mode
Make TPA configurable to affect P/D or D only
2018-11-10 19:54:29 +13:00
Michael Keller 4367a66778
Merge pull request #7043 from TonyBlit/gps_total_distance
Total distance flown added to OSD and Stats
2018-11-10 13:32:17 +13:00
Michael Keller b776bf3a9e
Merge pull request #7058 from jflyper/bfdev-configurable-internal-ADC-sensor-calibration-values
[ADC] Configurable ADC internal sensor calibration values
2018-11-10 13:28:53 +13:00
Michael Keller 051baf5d39
Merge pull request #7059 from pulquero/remove_esc_telm_from_f3
Added USE_ESC_SENSOR_TELEMETRY and removed from F3 targets.
2018-11-10 13:11:53 +13:00
Michael Keller 2c77ccd65e
Merge pull request #7060 from etracer65/dual_gyro_debugging_optimize
Dual gyro debugging optimize
2018-11-10 13:10:49 +13:00
Mark Hale 0ace402ea3 Support for setting uint32 vars.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-09 18:10:27 +00:00
Bruce Luckcuck 357d19aa05 Move parameter from PID profile to rate profile 2018-11-09 08:05:40 -05:00
Michael Keller 57f5912c74
Merge pull request #7053 from loopur/target_hakrcf405
Add target HAKRCF405
2018-11-09 21:45:36 +13:00
Michael Keller 974610ee98
Merge pull request #7051 from joelucid/smartport_timeout
Fix smartport timeout issue
2018-11-09 21:10:07 +13:00
loopur 78655745ac Add board description and delect GPS defined 2018-11-09 10:52:45 +08:00
Bruce Luckcuck fc189e5850 Make TPA configurable to affect P/D or D only
Adds a new `tpa_mode` parameter that accepts `PD` (default) and `D`. Allows the user to configer to affect P/D as it always has, or switch to D-only mode.

Note: the `tpa_mode` parameter was added to the PID Profile instead of rate profiles with the other TPA parameters. This can be discussed, but I didn't think it made sense to have this be part of rate profiles as it affects PID tuning (the same argument could be made for the other TPA parameters).

Code is wrapped in `USE_TPA_MODE` so it can be disabled if needed.
2018-11-08 19:22:29 -05:00
mikeller c0c426f589 Fixes from review. 2018-11-09 09:55:32 +13:00
Mark Hale 013a45e24b Added USE_ESC_SENSOR_TELEMETRY and removed from F3 targets
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-08 20:22:57 +00:00
Bruce Luckcuck afc1591956 Dual gyro debugging optimize
Bypass the numerous dual-gyro DEBUG_SET statements unless a related debug_mode is set. The dual-gyro debugging is rarely used so in most cases all of the statements can be bypassed. Saves 1-2% CPU load on SPRACINGF7DUAL running in `gyro_to_use = BOTH` and at 32K.
2018-11-08 14:54:16 -05:00
jflyper 37bee1dcbc Configurable ADC internal sensor calibration values
There are MCUs without calibration values for VREFINT and temperature sensors.
Also changed adcTSSlopeK to signed, to handle negative slope case.
2018-11-09 01:26:43 +09:00
Tony Cabello 7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01:00
Michael Keller 49e2c4d312
Merge pull request #7040 from TonyBlit/gps_rescue_fly_away
GPS Rescue: added fly away check to sanity checks
2018-11-09 02:31:45 +13:00
Michael Keller 11c0979a0b
Merge pull request #7041 from etracer65/suppress_osd_stats_turtle_launch
Suppress OSD stats if disarming from crash-flip or untriggered launch control
2018-11-09 02:29:45 +13:00
Michael Keller 714db23dea
Merge pull request #7047 from Zarkopafilis/master
Swap magic number for constant in ibus.c
2018-11-09 02:20:37 +13:00
Michael Keller 7f7f58b193
Merge pull request #7050 from mikeller/fix_battery_parameter_group_declaration
Fixed parameter group declaration for 'batteryConfig'.
2018-11-09 00:17:08 +13:00
borisbstyle 7566f81d38
Merge pull request #6911 from jflyper/bfdev-move-USE_ITERM_RELAX-to-include-USE_ABSOLUTE_CONTROL
Move USE_ITERM_RELAX up to prevent unused warning of applyAbsoluteControl
2018-11-08 11:50:13 +01:00
Bruce Luckcuck 38c940c11e Improve behavior of OSD warnings element blinking
Previously the logic to blink the warnings element was based on whether batteryState was either BATTERY_WARNING or BATTERY_CRITICAL. The problem is that the warning element might be displaying a higher priority message that shouldn't blink.

Changes the logic to have the blinking based on the actual warning message displayed.

In addition to the battery warning/critical cases, added blinking for some other critical warnings like failsafe, CPU core temp warning, ESC sensor warnings, HEADFREE mode active, and RC smoothing not initialized.
2018-11-07 18:35:32 -05:00
Tony Cabello 3ce0ac0116 GPS Rescue: added fly away check to sanity checks 2018-11-07 16:05:28 +01:00
loopur 747714f218 Modify time complier error 2018-11-07 12:27:07 +08:00
loopur 016679f446 Add target HAKRCF405 2018-11-07 10:33:20 +08:00
Michael Keller 0ad3fbb5fc
Merge pull request #7026 from mikeller/fix_3d_crash_flip
Fixed crash flip with 3D enabled.
2018-11-07 13:04:49 +13:00
Thorsten Laux b2b0b60ba3 Fix smartport timeout issue 2018-11-06 15:22:20 +01:00
mikeller 850a4996b7 Fixed parameter group declaration for 'batteryConfig'. 2018-11-07 03:04:27 +13:00
mikeller ff8b2aa451 Fixed '3d_switched_mode' case. 2018-11-07 02:58:25 +13:00
mikeller ea99f7785b Fixed crash flip with 3D enabled. 2018-11-07 02:55:29 +13:00
Michael Keller f729f3fc6d
Merge pull request #7046 from mikeller/change_rc_rate_minimum
Changed RC rate minimum to be 0.01.
2018-11-07 02:00:53 +13:00
Michael Keller 83cc94ec9d
Merge pull request #7048 from dthakur/patch-1
Minor comment fix
2018-11-06 07:47:41 +13:00
Divya Thakur 852cfe59fb
Minor comment fix
1.5 -> 150% not 120%
2018-11-05 08:21:25 -08:00
Theodoros Zarkopafilis Ntakouris d639175a09 Swap magic number for constant in ibus.c 2018-11-05 16:10:06 +02:00
Michael Keller c2ec0caf4a
Merge pull request #7045 from mikeller/fix_stm32f3discovery_flash_overflow
Fixed flash overflow on STM32F3DISCOVERY.
2018-11-06 01:26:19 +13:00
mikeller 570a0f7882 Changed RC rate minimum to be 0.01. 2018-11-05 23:27:42 +13:00
mikeller 8fecd1422b Fixed flash overflow on STM32F3DISCOVERY. 2018-11-05 23:08:07 +13:00
Michael Keller 56b1c08561
Merge pull request #7039 from TonyBlit/gps_rescue_positive_seconds
GPS Rescue: sanity check counters are now always in positive seconds
2018-11-05 22:37:48 +13:00
Tony Cabello 35f6c30289 GPS Rescue: sanity check counters are now always in positive seconds 2018-11-04 21:28:50 +01:00
Michael Keller a9cef3e244
Merge pull request #7038 from mikeller/reduce_spracingf3_flash_size
Removed features from SPRACINGF3 to make the firmware fit into flash.
2018-11-05 08:13:02 +13:00
Bruce Luckcuck 98641cde75 Suppress OSD stats if disarming from crash-flip or untriggered launch control
The OSD stats provide no meaningful information and are just an annoyance when exiting these special states.

For Launch Control the stats will be displayed if the launch is triggered and normal flight occurrred.
2018-11-04 09:57:02 -05:00
mikeller ea06ec7962 Removed features from SPRACINGF3 to make the firmware fit into flash. 2018-11-04 15:54:02 +13:00