Commit Graph

13274 Commits

Author SHA1 Message Date
Bruce Luckcuck 9fd82882e0 Reduce airmode activation percent to 25
In recognition of a more appropriate value based on the average hardware in use today.
2019-02-02 11:20:15 -05:00
Michael Keller fd297b6b2c
Merge pull request #6924 from smoriarty21/pilot_name
Pilot Name
2019-02-02 21:20:08 +13:00
Michael Keller b3b2517fab
Merge pull request #7489 from etracer65/ledstrip_beacon_improvements
Enhance ledstrip BEACON profile
2019-02-02 15:27:15 +13:00
Michael Keller d208cd0f8f
Merge pull request #7482 from mikeller/add_motor_output_limit
Added motor output limiting per profile.
2019-02-02 15:25:54 +13:00
Michael Keller 85ac92f42a
Merge pull request #7502 from mikeller/remove_deprecated_align
Removed leftover references to 'gyro_align', 'acc_align'.
2019-02-02 15:17:08 +13:00
mikeller f7134580f8 Fixed missing conditional, incremented parameter group version, added
config reset.
2019-02-01 07:53:09 +13:00
Michael Keller 5a510ce859
Merge pull request #7501 from betaflight/fix_flash_overflow
Fixed flash overflow on CHEBUZZF3, FURYF3, FURYF3OSD, LUX_RACE, RACEBASE, SIRINFPV, and SPRACINGF3MINI.
2019-02-01 07:44:48 +13:00
mikeller 21edada68b Removed leftover references to 'gyro_align', 'acc_align'. 2019-02-01 01:50:40 +13:00
Sean M 09fce7f1fa Adding display name to OSD and CLI 2019-02-01 01:11:40 +13:00
mikeller 183275beb4 Fixed flash overflow on CHEBUZZF3, FURYF3, FURYF3OSD, LUX_RACE, RACEBASE, SIRINFPV, and SPRACINGF3MINI. 2019-02-01 00:58:03 +13:00
Michael Keller ae194f2eb3
Merge pull request #7491 from etracer65/ledstrip_profile_msp
Update ledstrip MSP to add support for advanced flag and profile
2019-01-30 10:36:45 +13:00
Bruce Luckcuck 12a29eb7a9 Enhance ledstrip BEACON profile
Added features to the BEACON ledstrip profile:

Added a `ledstrip_beacon_color` to allow color selection rather than forcing to white.

Added `ledstrip_beacon_period_ms` to configure the blink period in milliseconds. Smaller time periods mean faster blinking.

Added `ledstrip_beacon_percent` to configure the "ON" time duty cycle. User can set to 100% to have the beacon display a solid color. 0% can be used to turn the becaon completely off.

Added `ledstrip_beacon_armed_only` to allow the user to configure whether the beacon is only on when armed.

Added `ledstrip_visual_beeper_color` to allow configuration of the visual beeper color.

Added the new parameters to the CMS menu.

Simplified the code and combined the RACE and BEACON profile processing.

Added support for auutomatically displaying a beacon that indicates RX_SET or failsafe regardless of the other RACE or BEACON settings.
2019-01-29 15:26:13 -05:00
Bruce Luckcuck d8c54460a9 Update ledstrip MSP to add support for advanced flag and profile
Added a flag indicating the level of ledstrip support (to allow improved Configurator behavior) along with support for reading/setting the current `ledstrip_profile`.

ledstrip support flag is as follows:
0 = basic ledstrip available
1 = advanced ledstrip available
2019-01-29 09:43:19 -05:00
Michael Keller aa020c8970
Merge pull request #7471 from jflyper/bfdev-4.0-compatible-acc-alignment
Set acc alignment to that of active gyro
2019-01-30 02:44:32 +13:00
Michael Keller 436892424c
Merge pull request #7492 from jflyper/bfdev-fix-pinio-initialization
[PINIO] Fix inverted pin initialization problem
2019-01-30 02:39:44 +13:00
Michael Keller b36acf5576
Merge pull request #7490 from mikeller/add_makefile_test_invocations
Added 'test_help' and 'test_<testname>' targets to Makefile.
2019-01-30 00:54:00 +13:00
Michael Keller 2a31d3c3d7
Merge pull request #7488 from AlienWiiBF/Generic_update
Update DMAOPT settings for generic targets
2019-01-30 00:17:31 +13:00
mikeller 73d18ede66 Halved motor_output_limit for 3D modes. 2019-01-30 00:05:41 +13:00
Michael Keller 0b7fbdf3bd
Merge pull request #7486 from mikeller/add_exemplary_tests
Added 'test-representative' make target to run a representative subset of the unit tests.
2019-01-29 16:28:13 +13:00
jflyper 5b40bb4b24 Set acc alignment to that of active gyro 2019-01-29 11:33:01 +09:00
Michael Keller fc289e95b7
Merge pull request #7485 from mikeller/add_led_strip_to_f3
Re-added minimal LED_STRIP support to F3.
2019-01-29 07:27:36 +13:00
jflyper 06e7a73661 Pin state is a pin voltage level, not a logic (active-high/low) level 2019-01-28 19:34:10 +09:00
mikeller 4bd9605d2a Added 'test_help' and 'test_<testname>' targets to Makefile. 2019-01-28 20:39:05 +13:00
Michael Keller 6c8b3a7193
Merge pull request #7473 from AlienWiiBF/DMAOPT_fix
Preinitialallize all SPI DMA option value defaults
2019-01-28 20:19:46 +13:00
Michael Keller bbedb60fe2
Merge pull request #7476 from mikeller/add_stick_overlay_symbols
Changed OSD stick overlay to use custom symbols.
2019-01-28 20:17:10 +13:00
Michael Keller 933fb0b6b4
Merge pull request #7475 from mikeller/fix_debug_names
Aligned debug mode names with debug enum value names for more fun when debugging.
2019-01-28 20:16:11 +13:00
Michael Keller 28de73ab13
Merge pull request #7470 from jflyper/bfdev-protect-flashInit-from-NULL-SPI-instance
[FLASH] Protect flashInit from NULL SPI instance
2019-01-28 20:14:40 +13:00
mikeller 53b03e6c3c Re-added minimal LED_STRIP support to F3. 2019-01-28 11:21:20 +13:00
MJ666 033920ccb6 Update DMAOPT settings for generic targets 2019-01-27 18:42:32 +01:00
MJ666 f47936c92f Preinitialallize all SPI DMA option value defaults 2019-01-27 13:31:34 +01:00
mikeller 95eb87b678 Changed OSD stick overlay to use custom symbols. 2019-01-28 00:53:02 +13:00
mikeller a3cf7e0cf7 Added motor output limiting per profile. 2019-01-28 00:37:00 +13:00
Michael Keller 4bff464b92
Merge pull request #7467 from mikeller/reorganise_interfaces
Reorganised interfaces, putting them where they are used.
2019-01-28 00:14:14 +13:00
mikeller 8c2a896025 Added 'test-representative' make target to run a representative subset of the unit tests. 2019-01-28 00:08:01 +13:00
mikeller 38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Michael Keller fe83d052da
Merge pull request #7465 from etracer65/fix_blackbox_throttle_value
Fix blackbox rcCommand[THROTTLE] logging
2019-01-27 12:05:02 +13:00
mikeller 118e92c8b2 Aligned debug mode names with debug enum value names for more fun when debugging. 2019-01-27 12:04:38 +13:00
Michael Keller 06f89603bc
Merge pull request #7463 from etracer65/mixer_throttle_fix
Fix mixer throttle calculation
2019-01-27 11:38:15 +13:00
Michael Keller 90d801c5d8
Merge pull request #7457 from SteveCEvans/cpu_load
Modify CPU load calculations to not assume constant task duration
2019-01-27 11:37:33 +13:00
Bruce Luckcuck 55dc91d6f7 Fix blackbox rcCommand[THROTTLE] logging
The blackbox "P" frame is incorrectly offsetting the rcCommand[THROTTLE] value by `min_throttle`. The rcCommand value already ranges from 1000-2000 and is an input so it shouldn't be offset by a motor output value. Also this is clearly incorrect in the case of DSHOT which doesn't use `min_throttle`.
2019-01-26 16:55:28 -05:00
jflyper 4ab7ab03ef Protect flashInit from NULL SPI instance 2019-01-27 00:37:19 +09:00
Michael Keller 9e7e263abb
Merge pull request #7450 from mikeller/improve_osd_stick_overlay_height
Change OSD stick overlays to be more square.
2019-01-26 22:11:36 +13:00
SteveCEvans faf33d1130 Use averageDeltaTime when calculating CPU load 2019-01-26 03:34:35 +00:00
Michael Keller 78406157c2
Merge pull request #7458 from etracer65/blackbox_add_setpoint
Add setpoint to blackbox logging
2019-01-26 16:26:09 +13:00
Michael Keller c25901883c
Merge pull request #7460 from etracer65/fix_ledstrip_battery_rssi_color_range
Fix color range for ledstrip battery and rssi layers
2019-01-26 16:16:22 +13:00
Bruce Luckcuck 8f7cb7184e Fix mixer throttle calculation
The calculation used to transform the rcCommand[THROTTLE] value to a throttle value used in the mixer was incorrectly applying the `min_check` range a second time. This leads to the mixer throttle value scaling incorrectly and adds an additional deadzone at the low range that basically doubles the `min_check` range.
2019-01-25 16:51:30 -05:00
Bruce Luckcuck 99685c21c6 Add setpoint to blackbox logging
Currently only rcCommand values are included in the log data and the configurator calculates the actual setpoint values based on rates values added to the blackbox header. The problem with this is that the rates information is only written at arming so if the rates change during the log (rateprofile change, in-flight adjustments, etc.) then the calculated setpoints will be incorrect. There's no way to tell from the log that this happened. This often causes confusion because it will suddenly make it appear in the log that the PID controller is not acheiving the requested rates when it's just a presentation error. Also the rates will be incorrectly calculated when the user selects Raceflight style rates as the rates type is not supplied in the log header (and the viewer doesn't have the forumla for them anyway).

This change adds the actual setpoint values for each axis as used by the PID controller, removing the necessity for the viewer to perform any calculations. In addition to showing any rate changes, it will also show any cases where other flight features have modified the setpoints from the user's input. These were invisible previously (examples include level modes, Acro Trainer, GPS Rescue, yaw spin recovery, etc.).

Also the throttle value used in the mixer is included in the throttle axis. This allow visualization of things that affect the commanded throttle like throttle boost, throttle limit, GPS Rescue, angle level strength, etc.
2019-01-25 09:01:55 -05:00
Bruce Luckcuck f6dc0ce516 Fix color range for ledstrip battery and rssi layers
The range was underflowing the calculated hue value causing it to loop back to other colors. For example when battery ranged from below 20% the color would shift from red (the correct color for minimum battery) to shades of magenta. RSSI had the same problem.

Now the logic reserves the base color (red in these cases) for the minimum 20% of the range. From 20-100% the color will scale from red through to green.
2019-01-24 18:50:53 -05:00
mikeller d8ade76fbe Simplify 'PWM_RANGE_MAX' handling. 2019-01-24 17:23:11 +13:00
mikeller 4503dffab0 Changed to smooth transitions everywhere. 2019-01-24 02:16:03 +13:00