Lucas De Marchi
0332cde374
AP_Relay: replace header guard with pragma once
9 years ago
Andrew Tridgell
ea38448372
AP_Relay: don't default to using two PWMs as relays on FMUv4
9 years ago
Lucas De Marchi
8d9dfcab27
AP_Relay: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
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.
9 years ago
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.
10 years ago
Andrew Tridgell
c80a631813
AP_Relay: fix for HAL_SITL rename
10 years ago
Randy Mackay
d9d238cc3c
Relay: param descr match labels for Pixhawk
...
Renamed Pixhawk FMU AUX1 to Pixhawk AUXOUT1 to match labels on case to
make it easier for users to know what value to choose
10 years ago
Randy Mackay
0d3e1131a7
Relay: Pixhawk AUXOUT2 enabled by default
10 years ago
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
11 years ago
Emile Castelnuovo
4a5c31fe74
AP_relay: added default relay pin for VRBRAIN
11 years ago
Andrew Tridgell
732cd0e130
AP_Relay: fix for HAL_GPIO_*
11 years ago
Randy Mackay
4ebde25a26
AP_Relay: add -1:Disabled to list of param values
11 years ago
Emile Castelnuovo
69d2633465
AP_Relay: added #defines for VRBRAIN board
11 years ago
Andrew Tridgell
8202cf437b
AP_Relay: fixed Pixhawk relay pin numbers
...
thanks to Craig for spotting this!
11 years ago
Andrew Tridgell
4aa901f203
AP_Relay: added enabled() API
11 years ago
Andrew Tridgell
e42ba853ec
AP_Relay: enable up to 4 relay pins
11 years ago
Andrew Tridgell
8d08f6d669
AP_Relay: document new relay pin numbers
12 years ago
Andrew Tridgell
131aa53e42
AP_Relay: update for new PX4 relay pin
12 years ago
Marco Bauer
72d0721721
AP_Relay: setup pin for PX4 relay support
12 years ago
Andrew Tridgell
7902d57877
AP_Relay: added RELAY_PIN parameter
...
makes it easier to choose a pin
12 years ago
Pat Hickey
1b7b096b05
AP_Relay: fix pin used on APM2/SITL per Sando on drones-discuss
...
* My bad, thanks for the fix Sandro
12 years ago
Andrew Tridgell
5923808526
AP_Relay: allow for no relay pin
12 years ago
Andrew Tridgell
f7939ad179
AP_Relay: allow relay object in SITL
12 years ago
Andrew Tridgell
0b2960e504
fixup relay merge
12 years ago
Sandro Benigno
cc7f26a99b
New Relay class and the subclasses for APM1 and APM2.
...
Updated AP_Camera class.
12 years ago
Pat Hickey
4d0b1e6571
AP_Relay: add init method
12 years ago
Pat Hickey
f4f3062df1
AP_Relay: rewritten for AP_HAL
12 years ago
uncrustify
dd3201e050
uncrustify libraries/AP_Relay/AP_Relay.h
13 years ago
uncrustify
06021825c8
uncrustify libraries/AP_Relay/AP_Relay.cpp
13 years ago
Randy Mackay
ed19c25a97
Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
...
Modified FastSerial's write function to return size_t (number of bytes written).
13 years ago
Amilcar Lucas
9dca9816f8
Implement relay get()
14 years ago
Amilcar Lucas
7b4ccffa53
Moved relay control functions to it's own library
14 years ago