Commit Graph

499 Commits

Author SHA1 Message Date
Peter Barker 501d0d8759 AP_Notify: stop using linux board subtype in Notify LED setup
... instead have the board definitions define things like we do for ChibiOS
2024-07-16 10:11:40 +10:00
Peter Barker f4f79905cc AP_Notify: example: do not instantiate AP_BoardLED unless the board supports it 2024-07-11 09:34:00 +10:00
Peter Barker ab43668c45 AP_Notify: adjust hwdef files for define renames 2024-07-11 09:34:00 +10:00
Peter Barker 8370e0b08b AP_Notify: create sanity in GPIO-based LED defines 2024-07-11 09:34:00 +10:00
Peter Barker 2425023331 AP_Notify: flash green lights based off location not GPS
Your Copter in stabilize mode can flash rapid-green indicating a good DGPS lock or better, and yet your vehicle still doesn't have a good idea of where it is.

That means that your vehicle may end up RTL'ing onto a point somewhere along your flight path, when you were given an all-green indication by teh vehicle before you armed in stabilize.

Past this PR, we require the same GPS as before, but in addition we must have been happy enough with our location to set the navigation origin, *and* currently be able to get a location.

A user will receive slow-flashing blue lights if they can't currently get a location, or the navigation origin isn't set, even if they've got a "good" fix.

We also require a good location to get a solid green light - you will get a solid blue light if you can't get a location or don't have a navigation origin, even if you have a good GPS lock
2024-06-26 18:39:43 +10:00
Peter Barker f07ac41c65 AP_Notify: rename Notify buzzertype enumeration 2024-06-20 14:47:20 +10:00
muramura dfc04cd53a AP_Notify: Convert the ENUM definition to a class 2024-06-06 15:15:14 -04:00
Andrew Tridgell 530cbf1eca AP_Notify: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker 44477c3b62 AP_Notify: remove VRBrain board sub-types
these were only used to turn choose between AP_Notify LED backends, which can be done much more neatly with specific features defines.
2024-03-26 11:06:13 +11:00
Hayden Donald dea51c9c50 AP_Notify: Add send_text for scripting use
Added a send_test_src method to override the text on the display and display custom text on a given row
2024-02-07 23:52:30 +00:00
Peter Barker 10a815d3a2 AP_Notify: add and use AP_BATTERY_ENABLED 2024-02-06 11:01:02 +11:00
Andy Piper e024f9fc8c AP_Notify: ensure dshot LEDs work with EDT ESCs 2023-12-18 19:02:52 +11:00
Ka Ru d728eef685 AP_Notify: add can-zero board 2023-12-05 07:41:06 -06:00
Peter Barker 044760cfb9 AP_Notify: document IS31FL3195 LED type for LED_TYPES parameter 2023-11-15 10:51:08 +11:00
Peter Barker aac949e227 AP_Notify: add IS31FL3195 to default LED types 2023-11-15 10:51:08 +11:00
Andy Piper 1035ac76b2 AP_Notify: add support for NeoPixelRGB via set_num_neopixel_rgb() 2023-10-04 18:06:17 +11:00
Peter Barker 132b04562d AP_Notify: use AP_GPS_ENABLED to exclude more code when GPS not compiled in 2023-09-27 16:38:15 +10:00
Peter Barker 62950169f7 AP_Notify: tidy use of DiscreteRGB 2023-09-16 08:47:37 +09:00
Michael du Breuil 3243751e0b AP_Notify: Reenable the DiscreteRGB backend 2023-09-14 10:55:26 +10:00
Peter Barker df911e9e76 AP_Notify: remove unused enumeration
this was copied over into the OreoLED driver
2023-09-13 17:34:30 +10:00
Andrew Tridgell 7f177abae8 AP_Notify: fixed DroneCAN LEDs 2023-06-24 20:48:08 +10:00
Peter Barker 60c785de3f AP_Notify: correct gate on inclusion of profiled_spi enum entry 2023-06-20 15:13:39 +10:00
Peter Barker ebdba6b477 AP_Notify: add driver for IS31FL3195 LED 2023-06-15 12:14:26 +10:00
Peter Barker 9eea693679 AP_Notify: tidy defines 2023-06-13 10:18:00 +10:00
Peter Barker 1509cfc2b4 AP_Notify: use minimize_features.inc for more features 2023-06-06 10:14:02 +10:00
bugobliterator 5066d48718 AP_Notify: directly send dronecan beep command from the driver 2023-05-31 17:31:09 +10:00
bugobliterator a1ba65a654 AP_Notify: send dronecan led commands directly from driver 2023-05-31 17:31:09 +10:00
Peter Barker d6f7fddcaf AP_Notify: bump up max number of simulated notify devices 2023-05-19 18:43:49 +10:00
Peter Barker 3d05d8c0dd AP_Notify: use chibios_hwdef to define NOTIFY_LED_OVERRIDE_DEFAULT 2023-05-18 07:53:22 +10:00
Peter Barker 5f2bb83401 AP_Notify: replace HAVE_FILESYSTEM_SUPPORT with backend defines 2023-05-17 09:40:39 +10:00
Peter Barker 8ac9a7561c AP_Notify: add driver for LP5562 LED 2023-05-11 11:08:50 +10:00
Henry Wurzburg d8247d35f5 AP_Notify: change BUILD_DEFAULT_LED_TYPE to new pattern 2023-05-04 07:45:12 +10:00
Henry Wurzburg d6e696e085 AP_Notify: fix incorrect buzzer pin type to stop always instantiating 2023-04-25 10:29:10 +10:00
Peter Barker dfcadfc618 AP_Notify: add and use AP_NOTIFY_TONEALARM_ENABLED 2023-04-23 16:24:02 +10:00
Henry Wurzburg 11def9b958 AP_Notify: rename/remove HAL_BUZZER_ON to DEFAULT_BUZZ_ON_LVL 2023-04-23 11:19:50 +10:00
Henry Wurzburg 3362f752cb AP_Notify: remove unused HAL_BUZZER_OFF defines 2023-04-22 13:51:09 +10:00
Andrew Tridgell 4a2ad02494 AP_Notify: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 05d5b56bfa AP_Notify: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell a6d0738d80 AP_Notify: update header references 2023-04-11 10:31:31 +10:00
Andrew Tridgell edc454fee3 AP_Notify: rename UAVCAN drivers to DroneCAN 2023-04-11 10:31:31 +10:00
Andrew Tridgell 9c6d84ddb1 AP_Notify: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
Henry Wurzburg ec1d29d806 AP_Notify: add buzzer noises 2023-04-05 09:05:14 +10:00
bugobliterator 2ede296486 AP_Notify: replace libuavcan with libcanard based driver 2023-03-29 17:16:39 +11:00
Peter Barker b850c9cb16 AP_Notify: correct config boards include
Important to include AP_HAL_Boards.h directly, rather than relying on someone else having done it or getting it transitively
2023-03-19 09:08:41 +11:00
murata 9836b7c549 AP_Notify: Use the number of arrays 2023-03-13 10:43:15 -07:00
Peter Barker 56d6acf985 AP_Notify: remove pointless zeroing of memory
this is static memory
2023-03-12 08:34:05 +11:00
Peter Barker 74d316f606 AP_Notify: disable ProfiLED SPI by default
this requires a SPI profiled line to function.  Unless that exists in the board's hwdef this driver can do nothing.  So require those drivers to turn the device on with a define, saving bytes in many places
2023-03-07 22:51:43 +11: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 abd7fa11c1 AP_Notify: use simulated toshiba LED for display rather than directly 2023-02-28 10:24:43 +11:00
Peter Barker d56883ac7a AP_Notify: fix SerialLED simulation
Not checking for events makes window managers annoyed
2023-02-28 10:24:43 +11:00