Commit Graph

457 Commits

Author SHA1 Message Date
Patrick José Pereira 3df3d002ff AP_Notify: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Andrew Tridgell 73e53369e8 AP_Notify: added notify events for temperature calibration 2021-01-21 13:09:21 +11:00
Andrew Tridgell 8728148db6 AP_Notify: don't do startup tone on AP_Periph devices 2021-01-13 15:18:40 +11:00
Tom Pittenger 7dde981de6 AP_Notify: add public accessor and param defaults 2021-01-03 16:24:12 -08:00
Iampete1 0f2c06d798 AP_Notify: RGBLed: rename OFF define 2020-11-02 17:40:21 -07:00
Iampete1 2e4b61d96e AP_Notify: add scripting LED type 2020-11-02 17:40:21 -07:00
Iampete1 cf599952f5 AP_Notify: RGB LED remove unused varables 2020-11-02 17:40:21 -07:00
Peter Barker b024ff8ea4 AP_Notify: remove unused variables 2020-10-01 21:13:20 +10:00
Siddharth Purohit 81c7099848 AP_Notify: move to using CANManager library 2020-08-19 17:31:09 +10:00
Alexey Bulatov 7baafcd63d AP_Notify: set led_off instead 0
Led off value can be differ from 0 if indication is
inverted.
2020-08-09 13:58:27 +10:00
Peter Barker 46a014b399 AP_Notify: remove recursive call to play in next_action
Infinite recursion is bad.

See https://github.com/ArduPilot/ardupilot/issues/13868
2020-03-31 11:06:30 +11:00
Peter Hall e1c2977adc AP_Notify: support ProfiLEDs 2020-03-10 10:37:26 +11:00
Peter Barker d1f74faed7 AP_Notify: remove bad HIGH/LOW defines
These are just terrible defines to have in a header which can be
included into random files.  These symbols can confuse construction of
enumerations, for example.
2020-03-03 10:46:06 +11:00
Peter Barker c917cd4dbb AP_HAL_Linux: make a static-const hal references references to external symbol 2020-03-03 10:12:14 +11:00
Andrew Tridgell fbbba887e5 AP_Notify: implement SIM_LED_LAYOUT
added support for luminousbee layout
2020-02-27 13:12:26 +11:00
Andrew Tridgell dbba89a024 AP_Notify: allow up to 64 LEDs on a pin 2020-02-27 13:12:26 +11:00
Henry Wurzburg bf1b48b940 AP_Notify: add mah consumed to BAT line in OLED displays 2020-02-18 15:15:52 +11:00
Michael Dornisch 455bd86f1a AP_Notify: Created NTF_NEO_LEN to change length of Neopixel strings 2020-02-04 11:48:52 +11:00
Matt Lawrence 5d3ed74a37 AP_Notify: Remove pixhawk from Oreo LED comments
Removes specific reference to pixhawk from comments since not all flight controllers are pixhawks.
2020-01-21 13:48:54 +09:00
Matt Lawrence 3af99115fb AP_Notify: Add GCS failsafe notify tones and lights 2020-01-21 13:48:54 +09:00
Andrew Tridgell 17a762fd36 AP_Notify: make all semaphores recursive
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
2020-01-19 20:19:30 +11:00
Andrew Tridgell 0d44d666d0 AP_Notify: use take_blocking instead of HAL_SEMAPHORE_BLOCK_FOREVER
this makes for cleaner and smaller code as the failure case is not
needed
2020-01-19 20:19:30 +11:00
Patrick José Pereira d806081d40 AP_Notify: Add navigator board
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-01-16 08:01:54 +11:00
Peter Hall a45041ce5d AP_Notify: add handle rgb 2019-12-12 21:35:23 -07:00
Andrew Tridgell f1cfae1b23 AP_Notify: fixed http url 2019-12-08 07:43:52 +11:00
Andrew Tridgell fbfe11f9ed AP_Notify: implement SITL serial LEDs 2019-11-04 13:01:59 +11:00
Peter Barker d6f10a12eb AP_Notify: add a simulated buzzer for SITL 2019-10-16 16:00:35 +11:00
Andrew Tridgell 82a98ef95d AP_Notify: added NTZ_BUZZ_VOLUME parameter
it is fairly non-linear, but does work
2019-09-10 16:22:33 +10:00
Andrew Tridgell 7c57546eb1 AP_Notify: support UAVCAN buzzers 2019-09-10 16:22:33 +10:00
Andrew Tridgell a4924e1c0b AP_Notify: allow setting of LED count in hwdef.dat 2019-09-10 13:03:28 +10:00
Andrew Tridgell 28b5f2b021 AP_Notify: simplify NeoPixel driver
use new API to avoid complexities
2019-09-10 13:03:28 +10:00
Tom Pittenger aa602b5e1b AP_Notify: add NeoPixel driver 2019-09-10 13:03:28 +10:00
Michael du Breuil 8adc6ba3ad AP_Notify: Add an alternate LED scheme 2019-09-03 11:50:52 +10:00
Andrew Tridgell fb50ec2a1d AP_Notify: convert to use AP_Filesystem 2019-08-27 15:40:43 +10:00
Peter Barker 5010de9560 AP_Notify: add static asserts for array size
We index into these arrays so ensuring their size is worthwhile
2019-08-27 09:29:11 +10:00
Pierre Kancir ad4563df2d AP_Notify: pass mavlink_message_t by const reference 2019-07-16 20:51:42 +10:00
Andrew Tridgell 289678cfc5 AP_Notify: play error tone if we have no microSD at boot 2019-07-16 09:32:41 +10:00
Peter Barker b123abbe90 AP_Notify: add SITL Notify display 2019-07-08 10:56:54 +10:00
Peter Barker 08b2676a8f AP_Notify: add comments explaining tonealarm tone format 2019-07-03 17:05:06 +10:00
Peter Barker 02e34c95c9 AP_Notify: add mutex against maniplating sf windows from different threads 2019-05-21 09:21:56 +10:00
Peter Barker 2fa1f041e3 AP_Notify: add SITL RGBLed 2019-05-21 09:21:56 +10:00
Andrew Tridgell 2fc95f88ae AP_Notify: fixed handling of mavlink LED override 2019-05-16 15:17:37 +10:00
Andrew Tridgell 0de65ca734 AP_Notify: removed unusued AP_Common/Semaphore.h 2019-05-15 15:33:48 +10:00
Andrew Tridgell 0e28f66761 AP_Notify: don't use pinMode for pixracer LEDs
this is needed for LEDs that are driven by 5V, which means they need
to use OPENDRAIN.
2019-05-03 16:32:00 +10:00
Michael du Breuil 200870e7a0 AP_Notify: Add singleton, expose string message player 2019-04-11 23:03:20 -07:00
Peter Barker 22bf7817e1 AP_Notify: include AP_ToneAlarm for SITL 2019-03-23 07:10:50 +11:00
Peter Barker a36d2dd5b8 AP_Notify: add flag for flying 2019-03-19 14:39:14 +11:00
Peter Barker 2006ecf109 AP_Notify: add OBC colour scheme 2019-03-05 13:44:16 +11:00
Peter Barker f8ac5a5419 AP_Notify: add parameter for logic level buzzer sounds at 2019-03-05 13:27:01 +11:00
Peter Barker a97c9bdd5b AP_Notify: enable buzzer under ChibiOS regardless of HAL_BUZZER_PIN
We have a parameter which can supply a pin number
2019-03-05 13:27:01 +11:00
Peter Barker d9e876bfb2 AP_Notify: simplify buzzer playing 2019-03-05 13:27:01 +11:00
Tom Pittenger 4ece7fd4f0 AP_Notify: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
LukeMike e15d2c0f89 HAL_ChibiOS: added ChibiOS configuration of VR Brain 5.4 2019-01-24 18:41:38 +11:00
LukeMike 33f7f5b7b6 HAL_ChibiOS: added ChibiOS configuration for VR Core 1.0 2019-01-24 18:41:38 +11:00
LukeMike f615ab9a0a HAL_ChibiOS: added ChibiOS configuration for VR Brain 5.1 2019-01-24 18:41:38 +11:00
Andrew Tridgell 696d7a0218 AP_Notify: removed F4Light 2019-01-21 21:57:21 +11:00
Peter Barker 0492635cbd AP_Notify: remove code protected by PX4 defines, correct comments 2019-01-20 08:52:51 +11:00
Peter Barker 002070ae9e AP_Notify: remove HAL-VRBRAIN-specific code 2019-01-20 08:52:51 +11:00
LukeMike 0bbcbc8624 AP_Notify: added ExternalLED and VRBoard_LED for ChibiOS VR Brain boards 2019-01-18 11:49:19 +11:00
Peter Barker 1dde70007a AC_Notify: remove use of never-set AP_HAL_PX4 and AP_HAL_VRBRAIN 2019-01-18 09:53:44 +11:00
Peter Barker 91a082c29f AP_Notify: remove px4 oreloed driver 2019-01-17 12:30:56 +11:00
Andrew Tridgell 1755f5b6c7 AP_Notify: fixed NTF_BUZZ_ENABLE default
it shouldn't be based on the polarity of the buzzer
2019-01-05 12:08:29 +09:00
Andrew Tridgell 891447d798 AP_Notify: fixed LED sync for OreoLED
the NuttX driver tries to send a sync every 4s, but actually ends up
sending at around 4.1s due to poor scheduling. Rather strangely, the
oreoled firmware seems to rely on this inaccuracy, and doesn't work
with exactly 4s under ChibiOS
2018-11-26 13:29:40 +11:00
Andrew Tridgell 78dc575258 AP_Notify: added OreoLED_I2C driver
this is for Solo on ChibiOS, but is usable with any board
2018-11-26 13:29:40 +11:00
Peter Barker 344d6b938c AP_Notify: add override keyword where required 2018-11-08 11:30:12 +11:00
Andrew Tridgell bf829cd792 AP_Notify: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Andrew Tridgell 38616e6bee AP_Notify: ensure we can't skip a step in RGBLed timing 2018-10-09 20:25:49 +09:00
Andrew Tridgell 6489166996 AP_Notify: fixed PixracerLED on NuttX
led_dim must be a positive number, and is not related to the led off
value
2018-10-09 20:25:49 +09:00
Andrew Tridgell 927105cd25 AP_Notify: init gpio state for LEDs 2018-10-09 20:25:49 +09:00
Andrew Tridgell 36aa666786 AP_Notify: fixed px4-v4 to use pixracer LED driver 2018-10-09 20:25:49 +09:00
Peter Barker 5ae3c60e8b AP_Notify: fix nullptr in ToshibaLED example 2018-09-19 22:40:20 -07:00
Michael du Breuil e41b2de5ea AP_Notify: Catch bad board LED combos 2018-09-19 22:58:46 +01:00
Andrew Tridgell ebcdf4c9c6 AP_Notify: fixed oled probe on first bus
Thanks to Erwin Quilloy for helping to track this down
2018-09-03 18:15:05 +01:00
Andrew Tridgell c79650a8d8 AP_Notify: fixed remote play tune 2018-08-29 13:47:20 +10:00
Andrew Tridgell 1762a2708c AP_Notify: removed unused hal variable 2018-08-26 07:57:05 +10:00
Peter Barker df836ec70c AP_Notify: tidy and remove code duplications
Saves 60 bytes, too
2018-08-21 10:59:33 +10:00
Francisco Ferreira 3b61a31bb4
AP_Notify: adapt to changes in AP_BoardConfig_CAN 2018-08-12 13:35:03 +01:00
Francisco Ferreira f468602baf
AP_Notify: revert wrong commit 228058e089
Also change the order of logical OR so that led_write in UAVCAN_RGB_LED is called for all UAVCAN instances and not only first one
2018-08-12 13:35:03 +01:00
Peter Barker 5ad1dee284 AP_Notify: make LED blink at constant rate in Rover 2018-08-09 11:57:05 +10:00
Andrew Tridgell c9a830bf3f AP_Notify: support both NCP5623 addresses 2018-08-08 07:11:50 +10:00
Andrew Tridgell 935165a8f8 AP_Notify: tidy up NCP5623 driver 2018-08-08 07:11:50 +10:00
caijie a98d892dec AP_Notify: Add RGB LED driver for NCP5623 2018-08-08 07:11:50 +10:00
Michael du Breuil a5e974c227 AP_Notify: Reduce flash consumption, fix some drivers, always allow
buzzer
2018-08-01 09:22:09 +10:00
Andrew Tridgell 397ba488db AP_Notify: use NTF_BUZZ_ENABLE to disable tonealarm 2018-07-30 15:42:58 +10:00
Andrew Tridgell 1eb010fbf1 AP_Notify: reduced tone buffer size
100 is plenty
2018-07-30 14:02:12 +10:00
Andrew Tridgell b11bd33b0e AP_Notify: removed extra call to play_string 2018-07-30 14:02:12 +10:00
Andrew Tridgell d28c8f0214 AP_Notify: added duration to toneAlarm_set_buzzer_tone 2018-07-30 14:02:12 +10:00
Jonathan Challinger 0dd151c0f3 AP_Notify: changes needed for PX4 tonealarm 2018-07-30 14:02:12 +10:00
Jonathan Challinger f4fc9249f7 AP_Notify: support extended PLAY_TUNE message 2018-07-30 14:02:12 +10:00
Jonathan Challinger cba85eee7b AP_Notify: MMLPlayer constrain note frequency 2018-07-30 14:02:12 +10:00
Jonathan Challinger 98d962ffa2 AP_Notify: MMLPlayer note_tab static const 2018-07-30 14:02:12 +10:00
Jonathan Challinger 720676b28c AP_Notify: run astyle on ToneAlarm and MMLPlayer 2018-07-30 14:02:12 +10:00
Jonathan Challinger b31ddedfef AP_Notify: merge ToneAlarm files, use new AP_HAL tonealarm interface 2018-07-30 14:02:12 +10:00
Michael du Breuil c5a69d8ec2 AP_Notify: Fix bad loop count on notify LED's 2018-07-23 10:11:29 +09:00
Michael du Breuil bff985a9f4 AP_Notify: Configure the PCA9685 every boot 2018-07-20 14:53:23 +10:00
Michael du Breuil 961e16dca9 AP_Notify: Use a bitfield to load LED drivers 2018-07-20 14:53:23 +10:00
Andrew Tridgell d93964b319 AP_Notify: support playing tunes by string on ChibiOS 2018-07-20 14:37:16 +10:00
Andrew Tridgell 6bf3dea5e7 AP_Notify: use I2C bus masks 2018-07-10 15:39:47 +10:00
Andrew Tridgell 8b337bfc4c AP_Notify: fixed shadowed variable warning 2018-07-09 19:41:18 +10:00
Michael du Breuil 72439a053b AP_Notify: Handle LED pins being undefined, select appropriate drivers 2018-06-27 15:25:44 +10:00