Commit Graph

509 Commits

Author SHA1 Message Date
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
murata
a38c1b1d76 AP_Notify: Match value types 2023-01-31 17:59:55 +11:00
Peter Barker
6ea352b087 AP_Notify: rename HAL_OREO_LED_ENABLED to AP_NOTIFY_OREOLED_ENABLED 2022-11-22 10:23:35 +11:00
Peter Barker
f7bc68bcbf AP_Notify: add and use AP_NOTIFY_TOSHIBALED_ENABLED 2022-11-15 11:03:51 +11:00
Peter Barker
d99e5b91d8 AP_Notify: allow pca9685 to be compiled out of code 2022-11-09 18:45:25 +11:00
Peter Barker
6bb84e5da0 AP_Notify: make explicit define for notify's NCP5623 2022-11-08 10:56:12 +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
Peter Barker
56c4794700 AP_Notify: use existing method for setting rgb and rate 2022-10-25 12:11:38 +11:00
Peter Barker
917878de76 AP_Notify: correct NTF_BUZZ_PIN documentation
The default is -1 - disabled - but we don't have that in the documentation...
2022-10-13 19:26:49 +11:00
jackhong12
4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Peter Barker
2e8939222d AP_Notify: move defaulting of HAL_DSHOT_ALARM into hwdef 2022-09-15 09:18:04 +10:00
Peter Barker
db590f65f1 AP_Notify: tidy includes 2022-05-03 09:14:58 +10:00
Andrew Tridgell
12f348398a Revert "AP_Notify: fixed DroneCAN LEDs on AP_Periph"
This reverts commit 1858969697.

This was an incorrect change that actually broke LEDs on CAN GPS modules
2022-04-27 17:13:40 +10:00
Henry Wurzburg
a8ff5ca2b9 AP_Notify: add note to desc's on how to determine GPIO pin numbers 2022-04-24 08:21:01 +09:00
Andrew Tridgell
1858969697 AP_Notify: fixed DroneCAN LEDs on AP_Periph
override needs to be 0 for LEDs to work on peripherals from DroneCAN
notification packets
2022-03-09 07:51:35 +11:00
Andrew Tridgell
8723ec3b2a AP_Notify: fixed builds
broken by combination of alarm changes and header changes
2022-02-23 21:48:58 +11:00
Andy Piper
9cec88818e AP_Notify: add support for alternate alarm function
enable alarm based on pwm
2022-02-23 18:35:43 +11:00
Hwurzburg
7ec7a9c444 AP_Notify: change UAVCAN to DroneCAN in param metadata 2021-12-15 09:53:21 +11:00
Andrew Tridgell
bee44b03b0 AP_Notify: make the buzzer pin configurable on all boards
this allows any board to setup a buzzer pin on any available
GPIO. Previously the pin if set in hwdef.dat was not configurable
2021-11-18 15:22:03 +11:00
Peter Barker
65b335ae0c AP_Notify: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED 2021-11-15 20:27:40 +11:00
Peter Barker
4eaba21e15 AP_Notify: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00
Mohammad Hefny
61a7387dd9 AP_Notify: link to notify module 2021-09-10 08:17:37 +10:00
Willian Galvani
b9452c83be AP_Notify: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
bugobliterator
a3c301f689 AP_Notify: change class name from SITL::SITL to SITL::SIM 2021-08-05 07:25:31 +10:00
Andrew Tridgell
31a31963c9 AP_Notify: disable DShot buzzer by default 2021-07-05 07:36:28 +10:00
Andy Piper
a6eaa77ff8 AP_Notify: re-enable display on 1Mb boards 2021-07-04 08:21:47 +10:00
Siddharth Purohit
e22ca19640 AP_Notify: add support for ProfiLED over SPI 2021-07-02 08:50:16 +10:00
Siddharth Purohit
895039cdce AP_Notify: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS 2021-06-24 09:02:42 +10:00
Andy Piper
144bbd6acd AP_Notify: allow display and oreo leds to be disabled 2021-06-16 20:25:58 +10:00
Andrew Tridgell
14dca255a4 AP_Notify: fixed probe on all internal NCP5623 LEDs 2021-06-01 09:19:51 +10:00
bugobliterator
b7de9feb56 AP_Notify: ensure ToneAlarm is not disabled when UAVCAN is available 2021-05-31 07:34:02 +10:00
Andrew Tridgell
5a7e870cfb AP_Notify: scale NCP5623 for for data range
we were overflowing the RGB max of 0x1f, leading to LED being off at
high power
2021-05-09 06:44:19 +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
Peter Barker
4a9ee19599 AP_Notify: correct parameter documentation 2021-04-30 13:50:47 +10:00
Michael du Breuil
bde695d11f AP_Notify: UAVCAN_RGB_LED: don't init if no UAVCAN backends
This allows us to consider enabling UAVCAN_RGB_LED as a more general
default, as it won't consume one of our limited backend slots if UAVCAN
is not enabled.
2021-04-06 10:45:09 +10:00
Jacob Walser
d91fd8b006 AP_Notify: add driver for LED on Blue Robotics Navigator board 2021-04-06 09:11:53 +10:00
Michael du Breuil
c0017abb63 AP_Notify: Remove indirection on RGBLed of init()->hw_init()
Saves a bit of flash, and just makes the code a bit more obvious
2021-03-30 11:18:45 +11:00
Tatsuya Yamaguchi
e134d12e32 AP_Notify: add EKF failsafe notify tones 2021-03-17 20:29:32 +09:00
Hwurzburg
e1bab7374b AP_Notify: Add calibration indications for EKF temp and compass cal to RGB LED 2021-03-15 09:49:59 +09:00
murata
dee040b14a AP_Notify: Change division to multiplication 2021-02-24 11:06:54 +09:00
Andy Piper
3371c272fb AP_Notify: make LED_NTF_LEN changes require a reboot
don't dynamically update LED length
2021-02-17 18:36:36 +11:00
Tatsuya Yamaguchi
83417c1df7 AP_Notify: modify NTF_BUZZ_VOLUME description 2021-02-04 17:27:00 +09:00
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