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

21 commits

Author SHA1 Message Date
Sami Korhonen
00692145ef Fix F4 ledstip 2016-08-11 08:25:42 +03:00
Martin Budden
1c997abaaf Moved function declarations out of main. Tidied drivers. 2016-08-02 15:11:35 +01:00
Evgeny Sychov
575662f3ea Merge remote-tracking branch 'origin/development' into osd-improvement 2016-07-02 16:08:40 -07:00
blckmn
924c891bf1 Update to LED STRIP to use new IO 2016-07-02 14:38:04 +10:00
Evgeny Sychov
2d070a3507 Re-design DMA driver 2016-07-01 01:53:45 -07:00
blckmn
78da0fad65 Moved USB detection to IO
Fixed CHEBUZZF3, SPRACINGF3 (EVO, MINI) and F3Discovery targets
2016-06-04 09:41:00 +10:00
borisbstyle
3a156f98ab Fix LED_STRIP feature // Add DMA drivers // UART fixes 2016-02-10 22:36:05 +01:00
Petr Ledvina
8d22a85222 Fixed some whitespace around operators
one compiller warning about possible uninitialized variable supressed
2014-11-06 17:36:40 +01:00
Dominic Clifton
e847a6347d Improve speed of LED STRIP code.
Shaved about 150us each strip update.

This commit leaves in some timing trace code for the CC3D target, the
results of which can be seen in the debug variables for the sections
being timed.

A later commit will remove/disable the timing code.
2014-09-20 01:00:13 +01:00
Dominic Clifton
d904741f43 Update LED throttle mode to use rcData instead of rcThrottle, avoid
having to reference min/maxThrottle.

Range was not being calculated correctly.

Throttle color now blends with the current color of the LED so that at
mid throttle any orientation color is still correct when mixing Throttle
and Flight Mode on an LED.

Fix tabs.  Reduce nesting level.
2014-09-19 01:46:41 +01:00
Dominic Clifton
0b4f5804bc Update led strip code to use HSV instead of RGB. 2014-09-18 20:53:28 +01:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
5086b46f1f Add simple LED animation when disarmed. Fixed led grid size
calculation.
2014-07-26 18:21:58 +01:00
Dominic Clifton
36990951df Adding code to change led colors based on mode and armed state. 2014-07-02 21:53:50 +01:00
Dominic Clifton
5a010c6b21 Remove unnecessary includes. 2014-06-08 15:43:00 +01:00
Dominic Clifton
578585db74 Extract STM32F10x specific WS2811 code into separate file, ready for
STM32F30x port.
2014-06-08 15:42:49 +01:00
Dominic Clifton
0861310537 Improve cycle times by avoiding an led strip update while one is still
in progress.
2014-06-08 12:58:21 +01:00
Dominic Clifton
bad872377b Quickly hack up implementation of turn indicators.
With an LED strip length of 10, arrange the leds clockwise from 1 to 10
starting with led 1 at the north west (10:30hrs) with led 5 north east
(01:30hrs), led 6 south east and led 10 south west.

When armed or not, moving the roll stick to the left will make the leds
on the left flash, and same for right and also for pitch forwards and
backwards too.
2014-06-08 12:58:19 +01:00
Dominic Clifton
651a433718 Cleanup WS2811 code and sanitize API.
Removed many magic numbers.
Deduplicated code.
Removed unnecessary local variable usage.

The LED Strip is initialised to WHITE briefly on power up so that it's
possible to visually check that all LEDs are functioning correctly -
white uses each individual RGB diode and draws maximum power.

Introduced an API to allow any code to change any or all LED colors
individually.  This takes a little ram since an additional buffer is
needed - 3 bytes per LED, in addition to the DMA buffer.
2014-06-08 12:58:19 +01:00
Dominic Clifton
c82754f5dc Fix WS2811 RAM usage by using the correct types. 2014-06-08 12:58:18 +01:00
Dominic Clifton
da52b2d67c Hack WS2811 led strip. Proof-of-concept. 2014-06-08 12:58:18 +01:00