RELAY12_ parameters

4 parameters in the RELAY12_ family. ArduCopter 4.7 only — other vehicles share many of these names but not always the same ranges or meanings.

RELAY12_DEFAULT

Relay default state

Should the relay default to on or off, this only applies to RELAYx_FUNC “Relay” (1). All other uses will pick the appropriate default output state from within the controlling function’s parameters. Note that if INVERTED is set then the default is inverted.

User level

Standard

Values

Value

Meaning

0

Off

1

On

2

NoChange

RELAY12_FUNCTION

Relay function

The function the relay channel is mapped to.

Values

Value

Meaning

0

None

1

Relay

3

Parachute

4

Camera

RELAY12_INVERTED

Relay invert output signal

Should the relay output signal be inverted. If enabled, relay on would be pin low and relay off would be pin high. NOTE: this impact’s DEFAULT.

User level

Standard

Values

Value

Meaning

0

Normal

1

Inverted

RELAY12_PIN

Relay pin

Digital pin number for relay control. Some common values are given, but see the Wiki’s “GPIOs” page for how to determine the pin number for a given autopilot.

Range

-1 to 1015

User level

Standard

Values

Value

Meaning

-1

Disabled

49

BB Blue GP0 pin 4

50

AUXOUT1

51

AUXOUT2

52

AUXOUT3

53

AUXOUT4

54

AUXOUT5

55

AUXOUT6

57

BB Blue GP0 pin 3

62

BBBMini Pin P8.13

101

MainOut1

102

MainOut2

103

MainOut3

104

MainOut4

105

MainOut5

106

MainOut6

107

MainOut7

108

MainOut8

113

BB Blue GP0 pin 6

116

BB Blue GP0 pin 5

1000

DroneCAN Hardpoint ID 0

1001

DroneCAN Hardpoint ID 1

1002

DroneCAN Hardpoint ID 2

1003

DroneCAN Hardpoint ID 3

1004

DroneCAN Hardpoint ID 4

1005

DroneCAN Hardpoint ID 5

1006

DroneCAN Hardpoint ID 6

1007

DroneCAN Hardpoint ID 7

1008

DroneCAN Hardpoint ID 8

1009

DroneCAN Hardpoint ID 9

1010

DroneCAN Hardpoint ID 10

1011

DroneCAN Hardpoint ID 11

1012

DroneCAN Hardpoint ID 12

1013

DroneCAN Hardpoint ID 13

1014

DroneCAN Hardpoint ID 14

1015

DroneCAN Hardpoint ID 15