Commit Graph

116 Commits

Author SHA1 Message Date
Peter Barker 8ac9a7561c AP_Notify: add driver for LP5562 LED 2023-05-11 11:08:50 +10:00
Henry Wurzburg d6e696e085 AP_Notify: fix incorrect buzzer pin type to stop always instantiating 2023-04-25 10:29:10 +10:00
Andrew Tridgell 05d5b56bfa AP_Notify: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Henry Wurzburg ec1d29d806 AP_Notify: add buzzer noises 2023-04-05 09:05:14 +10:00
Peter Barker d9aa0c9cf0 AP_Notify: add defines for some AP_Notify LED libraries
allow ProfiLEDs (serial and SPI) and NeoPixel to be compiled out
2023-03-07 10:30:13 +11:00
Peter Barker f7bc68bcbf AP_Notify: add and use AP_NOTIFY_TOSHIBALED_ENABLED 2022-11-15 11:03:51 +11:00
Peter Barker c136257a3a AP_Notify: gate mavlink access on HAL_GCS_ENABLED
via AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED
2022-10-26 21:22:39 +11:00
Peter Barker f846f703e4 AP_Notify: process mavlink play_tune in frontend 2022-10-26 21:22:39 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Siddharth Purohit e22ca19640 AP_Notify: add support for ProfiLED over SPI 2021-07-02 08:50:16 +10:00
bugobliterator b7de9feb56 AP_Notify: ensure ToneAlarm is not disabled when UAVCAN is available 2021-05-31 07:34:02 +10:00
Andy Piper e710799b12 AP_Notify: add support for dshot command beeps
add support for ESC LEDs triggered by dshot commands
don't send DShot LED commands when armed
make enablement of dshot buzzer and LEDs configurable
2021-05-05 17:41:24 +10:00
Tatsuya Yamaguchi e134d12e32 AP_Notify: add EKF failsafe notify tones 2021-03-17 20:29:32 +09:00
Andrew Tridgell 73e53369e8 AP_Notify: added notify events for temperature calibration 2021-01-21 13:09:21 +11:00
Tom Pittenger 7dde981de6 AP_Notify: add public accessor and param defaults 2021-01-03 16:24:12 -08:00
Iampete1 2e4b61d96e AP_Notify: add scripting LED type 2020-11-02 17:40:21 -07:00
Peter Hall e1c2977adc AP_Notify: support ProfiLEDs 2020-03-10 10:37:26 +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 3af99115fb AP_Notify: Add GCS failsafe notify tones and lights 2020-01-21 13:48:54 +09:00
Peter Hall a45041ce5d AP_Notify: add handle rgb 2019-12-12 21:35:23 -07: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
Tom Pittenger aa602b5e1b AP_Notify: add NeoPixel driver 2019-09-10 13:03:28 +10:00
Pierre Kancir ad4563df2d AP_Notify: pass mavlink_message_t by const reference 2019-07-16 20:51:42 +10:00
Peter Barker b123abbe90 AP_Notify: add SITL Notify display 2019-07-08 10:56:54 +10:00
Peter Barker 02e34c95c9 AP_Notify: add mutex against maniplating sf windows from different threads 2019-05-21 09:21:56 +10:00
Michael du Breuil 200870e7a0 AP_Notify: Add singleton, expose string message player 2019-04-11 23:03:20 -07:00
Peter Barker a36d2dd5b8 AP_Notify: add flag for flying 2019-03-19 14:39:14 +11:00
Peter Barker f8ac5a5419 AP_Notify: add parameter for logic level buzzer sounds at 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
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
Michael du Breuil 961e16dca9 AP_Notify: Use a bitfield to load LED drivers 2018-07-20 14:53:23 +10:00
Michael du Breuil abda44e886 AP_Notify: Move driver deletion to backend creation macro
Creates a dense array of drivers we want to update, reduces runtime
overhead, allows us to try detecting more backends then are present
2018-06-27 15:25:44 +10:00
Alexander Malishev 568e5a24b4 AP_Notify: initial OSD support 2018-06-27 14:55:00 +10:00
priseborough d600a96809 AP_Notify: Clarify definition for gps_glitching flag 2018-03-27 20:28:56 +09:00
night-ghost 64c2e691f8 full system status on 2 LEDs + buzzer pin as parameter 2018-03-23 09:36:31 +11:00
Andrew Tridgell 14dcee75f1 AP_Notify: added video recording flag 2018-02-08 17:36:33 +11:00
Andrew Tridgell b622fe143e AP_Notify: added have_pos_abs flag
used to notify of high-quality GPS lock
2018-02-08 17:36:33 +11:00
Andrew Tridgell cd51c71857 AP_Notify: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Lucas De Marchi 9463dbb408 AP_Notify: add static create method 2017-09-26 03:01:21 +01:00
Andrew Tridgell 697131e94a AP_Notify: support dual I2c toshiba LEDs
This restructures AP_Notify to allow for multiple backends of the same type.
2017-09-11 10:39:39 -07:00
Randy Mackay 0d5c98ad45 AP_Notify: add gps glitch notification 2017-07-27 14:16:23 +09:00
Peter Barker eb1f22fc67 AP_Notify: add singleton 2017-07-09 17:17:29 -04:00
Matt 34d305083d AP_Notify: Complete rework of notify device selection
Jaime did the hard work on this one.  He reworked notify device
selection to take place on init rather than on compile like before.  The
notify decivces are mostly set on compile using preprocessor directives
based on board type.  I created NTF_OREO_THEME.  This will allow the
user to enable/disable the OreoLED driver. And it also allows you to
select between aircraft and rover lighting themes. This allows the Solo
to use the OreoLEDs, and doesn't waste the memory on vehicles not
equipped with Oreo LEDs. The OreoLED driver is restricted to Pixhawk 2
FCs by proprocessor directive due to memory constraints. So it will
never work by accident on another board.

There is also a new notify flag for GPS Fusion.  This flag is true when
the EKF is happy with the GPS, actively using it for position
information.
2017-06-06 12:58:28 +09:00
Peter Barker d170396acf Notify: Display: blank text line after 10s 2017-02-27 09:02:09 +09:00
Jacob Walser f3fa8403f8 AP_Notify: Add tone and light pattern for leak detection 2017-02-21 11:26:14 +11:00
Randy Mackay cb1d1df03a AP_Notify: reorder flags
This tiny improvement allows the flags above battery voltage to be squeezed into the same byte
2017-01-23 15:07:20 -08:00
Randy Mackay e085ae1ec8 AP_Notify: add set_flight_mode_str method
This allows the vehicle code to set a short string for the flight mode
2017-01-23 15:07:20 -08:00
Randy Mackay 682fc759f1 AP_Notify: minor formatting and comment changes
No functional change
2017-01-23 15:07:20 -08:00
Randy Mackay d12e0d6a82 AP_Notify: Display send_text made not static 2017-01-23 15:07:20 -08:00