Commit Graph

11 Commits

Author SHA1 Message Date
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