1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00
Commit graph

215 commits

Author SHA1 Message Date
blckmn
aad6efdf03 Timer clean up in preparation for configurable timers 2018-05-06 06:55:17 +10:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
SteveCEvans
0430fcb67d Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 … (#5255)
* Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 LED drivers

* Rename setting lookup table to lookupLedStripPackingOrder

* Fix call to ws2811UpdateStrip

* Fix unit test

* Use ledStripFormatRGB_e enumeration for RGB packing format

* Fix unit test

* Whoops. Make ledStripFormatRGB_e match lookupLedStripFormatRGB

* Applied review feedback

* Add documentation of ledstrip_grb_rgb
2018-03-06 09:39:14 +13:00
etracer65
f96f9672d1 Revise ledstrip optimization to use overlay disable bitmask (#5270)
Clean up the logic to use a bitmask indicating which overlays are disabled rather than an array to indicate which are enabled.

Performance remains unchanged from the previous optimization but a few bytes of RAM are saved and the code is cleaner.
2018-03-04 11:43:07 +13:00
Bruce Luckcuck
539cc19c32 Optimize ledstip by disabling unassigned overlays
The current design continuously runs timer loops for all overlays regardless of whether or not any LEDs are actually using the overlay.  Then each overlay function iterates through all configured LED's to apply if needed.

This optimization "looks ahead" and turns off any overlays that are not assigned to any LEDs.  The most optimization is achieved when no overlays are used, and regresses to match the current performance level if every overlay is assigned.
2018-02-21 19:44:37 -05:00
Martin Budden
e2683cd2dc Corrected VTX vtables to not use static device handle 2018-02-01 11:15:07 +00:00
Martin Budden
3747d6742b Whitespace tidy 2018-01-10 16:56:54 +00:00
mikeller
385623bd9d Converted defines for VTX_COMMON, VTX_CONTROL, VTX_RTC6705, VTX_RTC6705SOFTSPI, VTX_TRAMP, VTX_SMARTAUDIO to use USE_ prefix. 2018-01-09 17:34:34 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
Michael Keller
1c5c7476c1
Merge pull request #4541 from mikeller/cleanup_rssi
Cleaned up handling of RSSI, added resetting to 0 for RSSI over MSP.
2017-11-12 10:35:26 +13:00
mikeller
c6b88e5d04 Cleaned up handling of RSSI, added resetting to 0 for RSSI over MSP. 2017-11-12 01:22:12 +13:00
jflyper
b03781c9bb Prevent led strip code from calling vtx api when vtx is absent 2017-11-11 12:28:04 +09:00
mikeller
b78d8ad83e Converted more 'feature' type defines to use the 'USE_<x>' convention: LED_STRIP TARGET_CONFIG BRUSHED_ESC_AUTODETECT SERIAL_RX TELEMETRY TELEMETRY_CRSF TELEMETRY_FRSKY TELEMETRY_HOTT TELEMETRY_IBUS TELEMETRY_JETIEXBUS TELEMETRY_LTM TELEMETRY_MAVLINK TELEMETRY_SMARTPORT TELEMETRY_SRXL TELEMETRY_NRF24_LTM TELEMETRY_LTM SPEKTRUM_BIND NAV BUTTONS 2017-11-07 18:49:12 +13:00
mikeller
a8d34dabb0 Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention. 2017-11-05 10:15:24 +13:00
Jahnkeanater
81705f5dcd Change VTX colors to custom defined colours 2017-10-16 20:34:15 -05:00
Jahnkeanater
6cc664683e Fix frequency lookup table.
frequency = vtx58frequencyTable[band][channel];
returns the wrong frequency. Shifting left and up by 1 row and column should fix it.
2017-10-14 02:29:07 -05:00
Jahnkeanater
c1763bc0cb Update ledstrip.c
Fixed 5828 so it does not fall directly on B6.
2017-10-13 15:22:52 -05:00
Jahnkeanater
09cbe88a38 Update ledstrip.c 2017-10-13 13:22:34 -05:00
Jahnkeanater
bf230e175e Update ledstrip.c
rewrite based on si618's code.
2017-10-13 13:09:54 -05:00
Jahnkeanater
f52e4c23af Update ledstrip.c 2017-10-12 23:31:04 -05:00
Jahnkeanater
be16caa05a VTX color based on frequency
VTX controlled LED color. 8 fixed colors rather than a variable hue. This ensures a perceivable color difference. The channel groups are based on 39Mhz spacing across the full spectrum.
2017-10-12 22:44:43 -05:00
Martin Budden
53f5e87c7a Add void to function declarations/definitions where required 2017-09-24 09:22:48 +01:00
mikeller
7514c4ca26 Restrict LED_STRIP fading to modes where it acutally works. 2017-09-13 13:42:45 +12:00
Dan Nixon
e0ebee168a Remove the ability to disable stage 2 failsafe 2017-07-19 09:47:09 +01:00
Martin Budden
a86ac89448 Whitespace tidy 2017-07-05 09:34:44 +01:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
mikeller
31df82db2d Reworked arming conditions. 2017-06-30 08:43:46 +12:00
Martin Budden
564e0c94b8 Move some GPS variables into struct. Some alignment with iNav 2017-06-25 14:44:04 +01:00
Dominic Clifton
db006b1585 Merge pull request #2856 from ledvinap/improvement-64bit-boxid
array based box masks
2017-06-19 13:31:08 +12:00
sheaivey
e0ed02219d Adding VTX LED strip overlay
Squashed commits:
[6f4441f] Default to values out of range for initial check.
[85c1fa4] updating comments.
[24c004b] cleaning up loose ends
[83e015f] show led for each power level
[8f0d8ee] replacing “blink on landing” with VTX overlay.
[663aea3] Stubbing out the initial VTX overlay functionality.
2017-06-11 22:53:00 -07:00
Michael Keller
e8b9bc3290 Changed beeper warning LED to only activate when no other warnings are shown. 2017-06-02 20:12:19 +12:00
Michael Keller
d393746647 Merge pull request #3138 from mikeller/added_beeper_indication_to_led_warning
Added orange indication when beeper active to 'Warning' beeper mode.
2017-05-28 23:34:33 +12:00
DrClaes
d22b32d969 Fixed whitespace 2017-05-27 10:38:57 +02:00
DrClaes
7566e41550 Fixed modulo math 2017-05-27 08:18:05 +02:00
DrClaes
be91983bb4 Made suggested changes to style and function
Style suggestions adopted.
Use centerPWM (average of max and min PWM) for readability.
No longer resets hOffset, means that other functions (battery and rssi, currently) which use this still add to the hue
2017-05-27 08:05:21 +02:00
DrClaes
1d091c317c Adjusted throttle led behavior 2017-05-27 00:00:20 +02:00
DrClaes
255d781305 Improved Throttle LED functionality
Fades the LED smoothly from the previous color through the chosen color to the next color as throttle is advanced.
2017-05-25 22:36:42 +02:00
Michael Keller
7f348b997e Added orange indication when beeper active to 'Warning' beeper mode. 2017-05-24 13:01:35 +12:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
Martin Budden
0219d6adc7 Updated accgyro locking. Printf tidy 2017-04-10 14:54:25 +01:00
Hydra
067d3c0ac2 CF/BF - First cut of Current/Voltage/Battery cleanup.
many refactorings, bugs squished, concerns separated,
single-responsibility violations fixed and performance optimizations.
2017-03-19 10:40:03 +00:00
Martin Budden
58a8bf3b6c USE_PARAMETER_GROUPS tidy 2 2017-03-10 07:39:09 +00:00
Martin Budden
8a8aae49b9 Merge pull request #2490 from martinbudden/bf_pg_configs5
Added PG config definitions 5
2017-02-27 06:25:28 +00:00
Maxim Strinzha
e0e798a8e4 LED strip issues #2501 2017-02-26 22:26:09 +03:00
Martin Budden
df14abc5c2 Added PG config definitions 5 2017-02-26 08:06:14 +00:00
Martin Budden
ed549b5884 Fix ledstrip merge error 2017-02-21 11:46:38 +00:00
borisbstyle
de3d1d527d Merge branch 'master' into patch_v3.1.6 2017-02-20 14:40:43 +01:00
Martin Budden
df630f1cf4 Preparation for conversion to parameter groups 8 2017-02-16 21:54:16 +00:00
Martin Budden
d2ac5d84b1 Preparation for conversion to parameter groups 7 2017-02-16 21:28:29 +00:00