
branch:  refactoredBeeperCode_181_1

Port of refactored beeper code 181_1 #730
https://github.com/cleanflight/cleanflight/pull/730

This the "Port of refactored beeper code #669" modification applied to version 1.8.1 (4/4/2015) of the code.  See the previous PR for info:  http://github.com/cleanflight/cleanflight/pull/669

--ET

-------------------------------------------------------

I've posted an updated PR applied to version 1.8.1 (4/4/2015) of the code:  https://github.com/cleanflight/cleanflight/pull/730

--ET

-------------------------------------------------------

branch:  refactoredBeeperCode

Port of refactored beeper code #669
http://github.com/cleanflight/cleanflight/pull/669

Ported beeper code from upstream and made some improvements (issue #648).  See "beeper.h" for list of beeper tones.  The 'queueConfirmationBeep()' function can be called to beep out the specified number of short tones.  There are still instances of 'blinkLedAndSoundBeeper()' in the code -- these are tricky to replace because they synchronize LED blinks with beeps.  There are also still instances of BEEP_ON and BEEP_OFF -- might be better to have a new function like 'beeperOnOffState()' in "beeper.c".

There are now arm and disarm tones.  While the copter is armed and not flying, the beeper chirps to warn the operator.  If the arm/disarm is via the control stick, holding the stick in the disarm position will make the disarm tone repeat.  This can be used as a lost-model locator.  These changes should address issue #317 ("Beep to sound on arm/disarm").

There is now a special arming tone used if a GPS fix has been attained, and there's a "ready" tone sounded after a GPS fix has been attained (only happens once).  The tone sounded via the TX-AUX-switch will count out the number of satellites (if GPS fix).  I did some "bench" testing of these tones, but I don't have a GPS on my copter.

I don't have a blackbox logger setup, so I can't test how the blackbox-arm beep works with the new beeper code.  Seems like it should be OK, but someone should test it.

Other indicator beeps (like up/down adjustments and rate profile changes via transmitter switch) should operate same as before.  The critical-battery tone is now more of a longer beep, which I'd say is an improvement.

--ET

-------------------------------------------------------


Update to port of refactored beeper code

Added delay to initial armed warning tone.  Made disarm tone different if copter was armed (two beeps) vs. holding disarm stick when copter not armed (periodic tones, only if copter wasn't armed).  Made it compatible with blackbox.

---------------

Update 2 to port of refactored beeper code

Additional tweaks to improve battery-low tones and make TX_SET not delayed when ARMED tone in progress.

---------------

Update 3 to port of refactored beeper code

Added beeps when changing flight modes (issue #647).  Added stubs in unit tests to resolve references to new functions.

---------------

Doc update for port of refactored beeper code

Revised buzzer documentation.


---------------

Update 4 to port of refactored beeper code

Couple of tweaks to suppress compilation warnings on some platforms.


-------------------------------------------------------


Port refactored beeper code from Baseflight #648
https://github.com/cleanflight/cleanflight/issues/648


https://github.com/ethomas997/cleanflight/tree/refactoredBeeperCode

https://github.com/cleanflight/cleanflight
