Eric Katzfey
7ca76b21f3
AP_Relay: add message to array size static_assert
2026-09-07 11:37:23 +10:00
Henry Wurzburg and Claude Sonnet 5
9895756d87
AP_Relay: add hwdef-level RELAYn_DEFAULT compiled default for boot state
...
RELAYn_PIN_DEFAULT already lets a board's hwdef.dat set the relay pin
at compile time, but the relay's ON/OFF boot state had no equivalent -
it was hardcoded to DefaultState::OFF, with the only override being a
RELAYn_DEFAULT parm line in defaults.parm. Several board hwdefs (and
open board-support PRs) assumed a hwdef-level default already existed
and either documented a boot state defaults.parm never delivered, or
carried an already-written but silently dead RELAYn_DEFAULT hwdef
define.
Add optional RELAY1_DEFAULT..RELAY6_DEFAULT macros, following the same
pattern as the existing pin defaults, applied in set_defaults() before
init() configures the GPIO. Verified in SITL with --define=RELAY2_DEFAULT=1
that the compiled default reaches the live parameter (RELAY2_DEFAULT
reads back as 1 with a fresh eeprom, RELAY1_DEFAULT remains the
hardcoded 0 fallback when unspecified).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-08-03 16:59:03 +01:00
ES-Alexander
e3fea678ce
AP_Relay: clarify internal function names
2026-01-05 19:02:55 +11:00
Willian Galvani
4f8bac587f
AP_Relay: create get_gpio_pin()
2025-12-17 00:14:58 +11:00
Peter Barker
25635173e6
AP_Relay: document the RELY log message
2025-05-14 11:39:04 +10:00
Peter Barker
64633197cf
AP_Relay: move defaulting of relay pin params to linux hwdefs
2025-02-19 15:42:52 +11:00
Peter Barker
c7b0ba04ef
AP_Relay: adjust for new type-safety for AP_Enum
2025-01-29 19:21:59 +11:00
Tom Pittenger
2115ad9c97
AP_Rely: allow RELAYn_DEFAULT values for DroneCAN Periphs
2024-11-15 10:57:31 -08:00
Lanea Lucy S
01b0e0c27c
AP_Relay: added relay output invert function
2024-04-06 10:58:43 +11:00
Iampete1
ad7b8b001b
AP_Relay: send relay status for all relays with valid functions
2024-01-23 10:42:02 +11:00
Iampete1
92ea15f9c3
AP_Relay: fix missing math include
2024-01-23 10:42:02 +11:00
Iampete1
2bc5078c7a
AP_Relay: Check for pin conflicts between relays
2024-01-18 09:22:54 +09:00
Peter Barker
6ecb8ce023
AP_Relay: add missing SITL include
...
was being satisfied transitively
2024-01-15 20:41:58 +11:00
Peter Barker
4f56691f05
AP_Relay: correct compilation when many features removed
2024-01-15 09:39:41 +11:00
Iampete1
7eac47b06c
AP_Relay: allow to build on periph
2024-01-10 18:29:24 +11:00
Iampete1
f6ed18f3f6
AP_Relay: support virtual DroneCAN pins using hardpoint msg
2024-01-10 18:29:24 +11:00
Iampete1
3b99a3ac26
AP_Relay: add function_valid helper and only pre-arm enabled relays
2024-01-10 18:29:24 +11:00
Michael du Breuil
f9fdd152ee
AP_Relay: allow hwdef to provide more then 6 relays
2024-01-03 22:44:42 +00:00
Iampete1
a77faaf125
AP_Relay: move from using AP_RELAY_NUM_RELAYS to ARRAY_SIZE(_params)
2023-12-19 10:01:01 +11:00
Iampete1
c917480cde
AP_Relay: capitalize function enum
2023-12-19 10:01:01 +11:00
Iampete1
f907694c6e
AP_Relay: add rover motor reverse functions
2023-12-19 10:01:01 +11:00
Iampete1
abcbc66c5c
AP_Relay: param conversion from ICE, chute and camera
2023-12-19 10:01:01 +11:00
Iampete1
8ab6f01942
AP_Relay: add enabled method by function
2023-12-19 10:01:01 +11:00
Michael du Breuil
368ec28ab6
AP_Relay: Refactor to support RELAYx_FUNCTION
2023-12-19 10:01:01 +11:00
James O'Shannessy
768e2409df
AP_Relay: check enabled relay mask for passing relay outputs to hardware
2023-09-11 12:21:13 +10:00
Peter Barker
1e18ca595f
AP_Relay: enable sending of RELAY_STATUS message
2023-08-09 07:44:07 +10:00
Peter Barker
72a2962367
AP_Relay: add option to disable relay and servorelay libraries
2023-06-20 09:36:39 +10:00
Henry Wurzburg and Iampete1
c6fbdc0cb8
AP_Relay:Prevent operation for sim-on-hardware,add logs
...
Co-authored-by: Iampete1 <iampete@hotmail.co.uk >
2022-05-02 10:54:02 +10:00
Randy Mackay
d8219c2200
AP_Relay: pre-arm displays gpio vs servo_ch conflict
2022-04-26 15:19:28 +09:00
Henry Wurzburg
93bdae50ab
AP_Relay: add note to desc's on how to determine GPIO pin numbers
2022-04-24 08:21:01 +09:00
Iampete1
3ae8dfead4
AP_Relay: update param description to inclde IOMCU
2021-09-28 09:40:25 +10:00
Andrew Tridgell
3712d7eca5
AP_Relay: fixed printf format errors
2021-08-05 09:43:35 +10:00
Andrew Tridgell
a56db06efb
AP_Relay: fixed formatting of pin arming check
2021-08-05 09:43:35 +10:00
Andrew Tridgell
09ad43dea3
AP_Relay: added arming_checks
2021-07-22 07:48:12 +10:00
juvinski
fad8ee8384
AP_Relay: Added support to Relay pins on BBBMini
...
This request add support for Relay Pins on BBBMini:
Pin:
P8_17: Relay Pin 1
P8_18: Relay Pin 2
P8_19: Relay Pin 3
P8_34: Relay Pin 4
P8_13: Relay Pin 5
P8_14: Relay Pin 6
2020-07-06 17:35:27 -07:00
Peter Barker
06df44c184
AP_Relay: change parameter name from relay to instance
2019-09-27 12:02:38 +10:00
Peter Barker
1c3b2f9699
AP_Relay: tidy, reduce flash usage
2019-09-27 12:02:38 +10:00
Peter Barker
8e5ec84317
AP_Relay: add AP::relay() to get relay singleton
2019-07-03 23:59:24 -07:00
Michael du Breuil
062bca6361
AP_Relay: Add singleton
2019-04-26 08:07:19 +10:00
Andrew Tridgell
47d8435cd6
AP_Relay: removed unused pin 115 from docs
2019-02-27 20:32:37 +11:00
Andrew Tridgell
5b23cb014a
AP_Relay: remove more px4 remnants
2019-02-27 20:32:37 +11:00
Peter Barker
b83f317681
AP_Relay: remove use of never-set AP_HAL_PX4 and AP_HAL_VRBRAIN
2019-01-18 09:53:44 +11:00
ChrisBird
fad02bf55a
AP_Relay: Adding a 5th and 6th Relay as per issue #8979
2019-01-16 13:26:25 +00:00
Michael du Breuil
8357b31e57
AP_Relay: Remove APM doc references
2018-08-01 09:24:26 +10:00
Francisco Ferreira
483048398e
AP_Relay: document BB Blue pin options
2018-05-03 15:35:28 +01:00
Chris Gaddis
35dddbd35a
AP_Relay: Enables relays 1-4 for Beaglebone Blue
...
Enables relays 1-4 on Beaglebone Blue GP0 connector pins 3-6
2018-04-27 00:13:33 +01:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
ea38448372
AP_Relay: don't default to using two PWMs as relays on FMUv4
2015-11-27 18:54:31 +11:00
Lucas De Marchi
8d9dfcab27
AP_Relay: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
2015-11-04 12:14:13 +11:00
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00