BrainFPV / TauLabs

http://www.brainfpv.com
Other
27 stars 9 forks source link

basic audible alarms support added to onscreendisplay #42

Open droney opened 8 years ago

droney commented 8 years ago

One would think the blinking alarm in the bottom left corner of the OSD would be sufficient, but alas I don't always see those events and wind up running my battery too low. Attached is some very basic audio support for brain. It provides a different pulsed tone for each of the three alarms severities (WARNING, ERROR, CRITICAL).

Martin... not sure what your long term plans are for audio, so this may be way off base for what you envision. This would not be hard to add wav support, but I am not sure how much flash you want to dedicate towards elaborate sounds. I also assume access to some of the audio settings in gcs would be desirable, but that is not covered in this code.

onscreendisplay.zip