Michael du Breuil
f9fdd152ee
AP_Relay: allow hwdef to provide more then 6 relays
2024-01-03 22:44:42 +00:00
Iampete1
c917480cde
AP_Relay: capitalize function enum
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
Andrew Tridgell
afd18cf13a
AP_Relay: make set() method public
...
this neatens up some calling code
2023-11-17 13:09:02 +11: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
Andrew Tridgell
e7aa868669
AP_Relay: added get() method for scripting
2022-10-11 11:47:04 +11:00
jackhong12
4a4f361a17
all: use CLASS_NO_COPY() macro
2022-10-04 11:23:04 +11:00
Henry Wurzburg
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
Andrew Tridgell
09ad43dea3
AP_Relay: added arming_checks
2021-07-22 07:48:12 +10: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
ChrisBird
fad02bf55a
AP_Relay: Adding a 5th and 6th Relay as per issue #8979
2019-01-16 13:26:25 +00:00
Andrew Tridgell
16cd31b63a
AP_Relay: 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
87d2bf22f2
AP_Relay: add static create method
2017-09-26 03:01:21 +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
Lucas De Marchi
0332cde374
AP_Relay: replace header guard with pragma once
2016-03-16 18:40:43 +11:00
Gustavo Jose de Sousa
5893c48582
AP_Relay: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:38:23 +10:00
Andrew Tridgell
d3347e528d
AP_Relay: added RELAY_DEFAULT parameter
...
this is useful when using a Pixhawk with an external relay, as it
allows you to cope with the pullup on the PWM pins
2014-09-04 16:48:33 +10:00
Andrew Tridgell
4aa901f203
AP_Relay: added enabled() API
2014-01-20 17:06:29 +11:00
Andrew Tridgell
e42ba853ec
AP_Relay: enable up to 4 relay pins
2014-01-20 17:06:29 +11:00
Andrew Tridgell
7902d57877
AP_Relay: added RELAY_PIN parameter
...
makes it easier to choose a pin
2013-06-24 22:39:18 +10:00
Sandro Benigno
cc7f26a99b
New Relay class and the subclasses for APM1 and APM2.
...
Updated AP_Camera class.
2013-01-02 09:31:32 +11:00
Pat Hickey
4d0b1e6571
AP_Relay: add init method
2012-12-20 14:51:35 +11:00
Pat Hickey
f4f3062df1
AP_Relay: rewritten for AP_HAL
2012-12-20 14:51:31 +11:00
uncrustify
dd3201e050
uncrustify libraries/AP_Relay/AP_Relay.h
2012-08-21 19:04:10 -07:00
Amilcar Lucas
7b4ccffa53
Moved relay control functions to it's own library
2011-10-02 01:00:27 +02:00