1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

39 commits

Author SHA1 Message Date
Martin Budden
9eeb6bb2e7 Removed #includes from header files 2016-08-04 19:45:43 +01:00
Martin Budden
3a0f8388ee Changed tabs to spaces in io/ 2016-07-09 13:29:01 +01:00
sblakemore
2df7e3cefa Add RTC6705 SPI VTX support 2016-05-31 07:15:37 +10:00
mikeller
94d9df4cc1 Fixed failure to disable beeping on FC init. Also, fixed spelling. 2016-05-25 23:52:40 +12:00
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
Moto Moto
b75b01b4c5 Fixed ON_USB beeper inhibit 2016-03-03 23:06:04 -06:00
borisbstyle
be038743b2 Add Beeper disable ON_USB 2016-03-03 21:05:21 +01:00
Pierre-A
5b2e79525c add BEEPER_SYSTEM_INIT condition 2016-03-03 17:04:21 +01:00
Pierre-A
6b1e3fc2c4 including suggestions by ledvinap 2016-03-03 16:59:09 +01:00
Pierre-A
b4fb558dd4 new "beeper" CLI command 2016-03-03 16:58:01 +01:00
borisbstyle
8129f47c69 Disable Beep on USB via beeper_off_flags 2015-11-05 15:17:47 +01:00
borisbstyle
3d9c177126 Revert "Inhibit the %^0$ buzzer on USB power / Bugfix for no VBAT connected"
This reverts commit bbf70c6370.
2015-10-29 21:44:42 +01:00
Moto Moto
bbf70c6370 Inhibit the %^0$ buzzer on USB power 2015-10-19 22:19:38 -05:00
Pierre-A
09e7a01b2c Selectively turning on/off the beeper through CLI 2015-09-15 15:41:30 +02: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
e6733b4dfc Cleanup status indicator code.
This primarily is to avaoid stalling the main loop when beeping and
flashing.

This is needed because oneshot ESCs do not receive updates when the main
loop is stalled.

Additionally the beeper code for sticks held in disarm position is
changed since it also clashed with profile selection.  Now profile
selections can be seen and heard clearly.

Other subsections of the system that changed the LED0 state while the
main loop is running have been updated to use the status indicator API
instead of blindly hitting the hardware which previously caused lots of
odd LED flashing behaviour - now it is consistent.
2015-05-29 23:37:33 +01:00
Dominic Clifton
e57c814e2a CJMCU - Disable cli playsound to save flash space. 2015-05-17 22:21:01 +01:00
E Thomas
96de824f61 Add 'play_sound' CLI command
Added 'play_sound' CLI command; improved ACC_CALIBRATION_FAIL sound (to
make it less like ACC_CALIBRATION sound).
2015-04-27 03:46:57 -04:00
Dominic Clifton
f05a12863c Update beeper code to allow targets that don't support GPS to be built. 2015-04-25 10:55:59 +02:00
Dominic Clifton
3974b02b3a Remove BEEPER_CONFIRM_BEEP. Simplifies logic, reduces code size, and
ensures that the durations of one or more confirmation beeps can never
get out of sync when the code is changed.  Renamed queueConfirmationBeep
to beeperConfirmationBeeps - nothing was actually queued.
2015-04-25 10:53:07 +02:00
Dominic Clifton
064de090a0 Even more cleanups to the new beeper code. Seperate beeper mode and
priority via simpler static declaration - removes giant switch
statement.  Use a new method when beeping out GPS status.  Lower memory
usage. Smaller code size.  Beeper priority now only handled in a single
place.
2015-04-25 10:39:14 +02:00
Dominic Clifton
3b557d5f42 Further cleanups to the new beeper code. 2015-04-24 23:55:11 +02:00
Dominic Clifton
6360aa0dca Cleanup new beeper code. Decreases code-size, removes unneeded state BEEPER_STOP, reduces needs for some comments, removes some magic numbers, simplifies logic and improves maintainability. 2015-04-24 23:10:35 +02:00
Dominic Clifton
7266d42466 Cleanup failsafe beeper code and update failsafe unit tests. 2015-04-23 15:55:04 +02:00
Dominic Clifton
519586a5ce Merge branch 'refactoredBeeperCode_181_1' of
git://github.com/ethomas997/cleanflight into
ethomas997-refactoredBeeperCode_181_1

Conflicts:
	src/main/flight/failsafe.c
	src/main/io/beeper.c
	src/main/mw.c
2015-04-23 01:21:27 +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
E Thomas
f02d7403af Port of refactored beeper code 181_1
This the "Port of refactored beeper code #669" modification applied to
version 1.8.1 (4/4/2015) of the code.
2015-04-04 17:54:44 -04:00
Dominic Clifton
e40a3663d2 Remove failsafe vtable usage. 2015-03-09 23:19:21 +01: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
b2db6b3b80 Beep when adjustments are made. (very short = adjust downwards, short =
adjust upwards).
2014-10-24 18:48:55 +01:00
Dominic Clifton
50391f2c8e Use Naze hardware revision when initialising beeper. Cleanup inverted
beeper configuration.
2014-10-16 00:44:56 +01:00
Dominic Clifton
c0fd0c1f33 Replace profile.activate and rcOptions with
profile.modeActivationCondition and rcModeActivationMask.

Implementation of using and setting modeActivationConditions is missing.
2014-10-12 10:40:38 +01:00
Dominic Clifton
d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton
1c6ea1d397 Fix ANGLE mode and HORIZON mode resetting the errorAngle when they are
both attempted to be enabled at the same time.  Angle mode now takes
precedence over horizon mode.

Fix using aux settings that are not applicable to in-use aux channels -
prior to this it was possible to configure aux4 and then switch to
RX_SERIAL using a 7 channel system (3 aux channels) and aux4 would still
have been processed.
2014-08-26 21:28:23 +01:00
Dominic Clifton
3f0754d295 Replace global flags with stateFlags, flightModeFlags and armingFlags.
Each flag was previously a whole byte, now all of the flags only take up
4 bytes as they are represented by bit masks.

This is cleaner because the different kind of flags are now separated.

Additionally this changes the behaviour of arming slightly.  When using
a switch to arm the aircraft will not arm unless the switch has been in
the off state once.  This prevents arming if you power the aircraft with
a low throttle and the switch in the on position.
2014-08-24 12:11:30 +01:00
Dominic Clifton
3b629d58a0 GPS can now be conditionally compiled in. 2014-07-30 23:35:33 +01:00
Dominic Clifton
9afcb20b7e Cleanup mismatch of buzzer/beeper terminology. Beep and Beeper should
be used from now on.
2014-06-21 23:32:58 +01:00
Renamed from src/main/io/buzzer.c (Browse further)