borisbstyle
df6d564a9d
Revert "Revert "Added 'ledstrip_visual_beeper' feature.""
...
This reverts commit f8aefc9c6f
.
2016-05-24 14:05:52 +02:00
borisbstyle
f8aefc9c6f
Revert "Added 'ledstrip_visual_beeper' feature."
...
This reverts commit d6e7ed3560
.
2016-05-24 10:46:23 +02:00
Michael Keller
d6e7ed3560
Added 'ledstrip_visual_beeper' feature.
...
Added build condition for LED strip related config option.
Added 'ledstrip_visual_beeper' feature.
Added build condition for LED strip related config option.
2016-05-17 08:46:21 +12:00
Larry (TBS)
1531c07687
- Add defulat LED Strip values for Colibri Race
2016-04-22 16:40:37 +08:00
borisbstyle
3a156f98ab
Fix LED_STRIP feature // Add DMA drivers // UART fixes
2016-02-10 22:36:05 +01:00
DarkVegetableMatter
942c89237e
Battery auto-detect and LPF for battery monitoring
2015-08-04 03:04:12 +01:00
Dominic Clifton
b794e263e8
Fix compiler errors for old led animation code.
2015-07-17 01:05:14 -07:00
Michael Hope
5c6760fd82
various: tidy up various things found when building with a C++ compiler.
...
Remove duplicate consts.
Pull in the include files where functions and variables are declared.
Mark file local but duplicated variables as static.
Mark some variable declarations as extern.
Remove duplicated variable definition.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:32:31 +02:00
Dominic Clifton
c8c0c85656
First-cut of a refactored failsafe system.
...
* fixes issue where indicators would flash when SBus RX entered failsafe
mode.
* fixes bug where turning off a TX for an SBus RX would instantly disarm
when using a switch to arm when the channel went outside the arming
range.
* introduces failsafe phases to make the system more understandable.
* allows the system to ask if rxSignalIsBeing received for all RX
systems: PPM/PWM/SerialRX/MSP. Also works when a serial data signal is
still being received but the data stream indicates a failsafe condition
- e.g. SBus failsafe flags.
* failsafe settings are no-longer per-profile.
Untested: Sumd/Sumh/XBus/MSP (!)
Tested: SBus X8R, Lemon RX Sat, X8R in PWM, Spektrum PPM.
2015-04-16 01:31:12 +01:00
Dominic Clifton
e40a3663d2
Remove failsafe vtable usage.
2015-03-09 23:19:21 +01:00
Dominic Clifton
5512ff08c3
Allow thrust color to be combined with throttle.
2015-02-01 18:34:37 +00:00
Dominic Clifton
55cac2bdeb
Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
...
Relocate more code.
2015-02-01 00:39:38 +01:00
Dominic Clifton
52f082fcd7
LedStrip - Add support for solid colors. Update default LED strip
...
configuration to include a ring.
Also includes documentation updates that were not updated when ring
support was added.
2015-01-25 16:21:38 +01:00
Dominic Clifton
3fc7f32324
Merge branch 'imu-cleanup' of https://github.com/avoid3d/cleanflight into avoid3d-imu-cleanup
2015-01-25 01:00:14 +01:00
Pierre Hugo
be03ed95fa
Renamed min, max and abs macros to MIN MAX and ABS.
2015-01-23 22:40:00 -08:00
Dominic Clifton
793f83c438
Remove commented out old code.
2015-01-23 02:13:36 +01:00
Dominic Clifton
9fb1863d74
Update LED ring code to have the documented behavior.
...
The logic is greatly simplified compared to the code in the original
pull request.
2015-01-23 00:06:20 +01:00
Dominic Clifton
b50c5d9724
Simplify and cleanup led ring code.
...
This changes the behaviour, but since the effect is nice we'll mark it
with a commit.
2015-01-22 23:46:23 +01:00
Dominic Clifton
ae752217c6
Avoid static use. Causes problems when the amount of LEDs in the ring
...
is odd.
2015-01-22 22:56:38 +01:00
St7ven
ddc7a39fa2
Add support for LED thrust ring. (St7ven)
...
This commit includes various fixed not included in the original pull request.
2015-01-22 22:20:00 +01:00
Dominic Clifton
d2536e3792
Ensure LED configuration is re-evaluated after changes to led
...
configuration are made via MSP.
2015-01-22 21:38:09 +01:00
Dominic Clifton
a2628c59d5
Cleanup whitespace.
2015-01-22 21:36:05 +01:00
Chris Penny
a6409a030b
LED on/off changes to ledStripEnabled flag
2015-01-21 09:54:27 +00:00
Chris Penny
bfa79ab010
changed ledStripIsOnFlag to ledStripEnabled and ledStripEnabled fail check
2015-01-20 22:43:32 +00:00
Chris Penny
aede4037cf
LED on/off add via LEDLOW mode
2015-01-20 19:51:07 +00:00
Chris Penny
0da650b5bd
changed rc mode to BOXLEDLOW
2015-01-20 10:45:10 +00:00
chris-penny
48bd7c1e19
I hope this is along the right lines... I have it running on NAZE32 ACRO
...
it is using the BOXLLIGHTS at the moment but I'll update it to use
BOXLEDLOW asap
2015-01-19 22:53:02 +00:00
Dominic Clifton
ad65722f0e
Code size reduction when led animation is disabled.
2015-01-15 16:53:14 +00:00
Dominic Clifton
30b928c0bc
Cleanup unit test compiler flags. Fix compiler warnings in unit test
...
and related code.
2015-01-14 15:09:29 +00:00
Dominic Clifton
10d507ccc6
LedStrip failsafe warning now correctly checks that the feature is
...
enabled.
2014-12-28 00:49:57 +00:00
Dominic Clifton
367eb79bd0
Add battery warning beeper. Update MSP_MISC/MSP_SET_MISC.
...
Note the old beeper was essentially 'battery critical'.
2014-12-19 22:16:47 +00:00
Dominic Clifton
d41e8631ee
Disable and cleanup some debug output.
2014-11-26 00:28:53 +00:00
Dominic Clifton
386c14c9e7
Update LedStrip warnings indication so it's clearer what warnings are
...
active.
This also has better performance, warning colors are only calculated
once per led strip update cycle.
2014-11-22 18:18:50 +00:00
Dominic Clifton
45218357fa
Narrow LED strip indicator deadband so that indicators are displayed for
...
smaller pitch/roll input movements.
2014-10-29 01:05:01 +00:00
Dominic Clifton
7d4abb8a4a
Add parenthesis to expressions to imrove code clarity and remove IDE
...
warning.
2014-09-29 01:11:00 +01:00
Dominic Clifton
10abdd3afa
Update warning mode leds to show when arming is disabled.
...
Idea and initial implementation by viktor80. Closes #96 .
2014-09-27 00:34:02 +01:00
Dominic Clifton
6883a8f2a7
Fix led cli command when led strip feature is not enabled. Fixes #95 .
2014-09-27 00:14:04 +01:00
Dominic Clifton
3ed6afba17
Removing timing instrumentation from CC3D & LEDSTRIP build.
2014-09-20 01:04: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
9723df947e
Merge pull request #83 from goebish/cleanflight-throttle-led
...
Throttle level indicator led mode
2014-09-19 00:18:55 +01:00
Dominic Clifton
0e2b0ccafd
Adding note regarding color index usage.
2014-09-19 00:15:58 +01:00
Goebish
16871c7a91
Merge remote-tracking branch 'cleanflight/master' into cleanflight-throttle-led
2014-09-19 01:10:21 +02:00
Goebish
b83e7b42b7
Add throttle level indicator led mode
2014-09-19 01:09:59 +02:00
Dominic Clifton
72eac8048a
Allow colors to be configurable via the cli.
...
color x h,s,v
x = 0-15
h = 0-359
s = 0-255
v = 0-255
2014-09-19 00:08:40 +01:00
Dominic Clifton
545980c14a
Move colors from ram to master config. Initialise colors only when
...
config is reset to defaults.
2014-09-18 22:53:12 +01:00
Dominic Clifton
79ea1ac088
Store colors in flash, copy to ram and use from ram. Store mode colors
...
as color ids instead of duplicating the color data.
Later, this will allow configurable colors as the colors can be copied
to the master config and used from that without any ram penalty.
2014-09-18 21:59:37 +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
1790e082fe
Ensure led strip is configured in updateLedStrip method to prevent crash
...
when enabling the feature from the cli.
2014-09-16 00:29:41 +01:00
Dominic Clifton
d60183d91d
Normalize all the line endings
2014-09-15 23:40:17 +01:00