1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00
Commit graph

10585 commits

Author SHA1 Message Date
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
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
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
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
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
mikeller
c74e1f0df1 Change OSD stick overlays to be more square. 2019-01-24 01:51:07 +13:00
Michael Keller
a4ce8b5600
Merge pull request #7447 from mikeller/make_battery_filtering_configurable
Make battery voltage / current filter cutoffs configurable.
2019-01-24 01:45:56 +13:00
Michael Keller
24bcf1ed30
Merge pull request #7445 from mikeller/remove_osd_disarming_flag
Remove the OSD_MENU arming disabled flag, as it is redundant to the CMS_MENU flag.
2019-01-24 01:45:34 +13:00
Michael Keller
3c6d0a1008
Merge pull request #7444 from etracer65/fix_osd_32bit_warnings
Fix OSD warnings settings to use UINT32 type
2019-01-24 01:45:14 +13:00
Michael Keller
6272f45851
Merge pull request #7161 from TonyBlit/gps_total_distance_stats_pos
Reordered Max Altitude and Total Distance in stats screen
2019-01-24 01:10:25 +13:00
Michael Keller
2da629b784
Merge pull request #7449 from mikeller/fix_osd_stick_position_scaling
Fixed position calculation for OSD stick position elements.
2019-01-24 00:56:13 +13:00
Tony Cabello
5c32240522 Updated comment regarding stats display order 2019-01-22 17:08:55 +01:00
Tony Cabello
a0604dd1a5 Reordered Max Altitude and Total Distance in stats screen 2019-01-22 17:08:55 +01:00
Bruce Luckcuck
33202b33b0 Fix gyro_filter_debug_axis settings definition
Setting was incorrectly placed in the PROVILE_VALUE but should be in the MASTER_VALUE section.
2019-01-22 09:44:55 -05:00
mikeller
3e37d75645 Fixed position calculation for OSD stick position elements. 2019-01-23 00:49:12 +13:00
mikeller
3e1e467079 Make battery voltage / current filter cutoffs configurable. 2019-01-22 22:45:59 +13:00
mikeller
b1d989ac41 Remove the OSD_MENU arming disabled flag, as it is redundant to the CMS_MENU flag. 2019-01-22 18:21:31 +13:00