Quantcast
Channel: ArduPilot Discourse - Latest topics
Viewing all articles
Browse latest Browse all 45643

PixRacer: Relay Pin for Camera Trigger [solved]

$
0
0

@Thorsten wrote:

Hi all,

I am trying to setup a camera relay trigger with PixRacer.
CH7 is working, BRD_PWM_COUNT = 4, CAM_TRIGG_TYPE = 1

I tried all numbers listed in Mission Planner but without success.
Looking at the code at https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_Relay/AP_Relay.cpp
the relay pins seem to be undefined (-1).

#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
#define RELAY1_PIN_DEFAULT 111
#define RELAY2_PIN_DEFAULT -1
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
#define RELAY1_PIN_DEFAULT -1
#define RELAY2_PIN_DEFAULT -1
#else
#define RELAY1_PIN_DEFAULT 54
#define RELAY2_PIN_DEFAULT 55

Is this correct? How are these numbers determined? Can it be changed to any number like:

#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
#define RELAY1_PIN_DEFAULT 99

?

TIA and best regards,
Thorsten

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 45643

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>