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

Configurations of pin as input/output

$
0
0

@Andre wrote:

I need to use 2 the auxiliary pins of Pixhawk as digital output, and 2 as digital input, so I would like to know how configure it.

The parameters I set are:

BRD_PWM_COUNT = 0

RELAY_PIN = 50
RELAY_PIN2 = 51
RELAY_PIN3 = -1
RELAY_PIN4 = -1

BTN_Enable = 1

BTN_PIN1 = -1
BTN_PIN2 = -1
BTN_PIN3 = 52
BTN_PIN4 = 53

BTN_REPORT_SEND = 1

Are correct the parameters I set to configure pins 1 and 2 as output and pins 3 and 4 as input?

Another question: Is it possible to use the 2 digital inputs to stop the rover without changing the firmware?

Mission Planner version: 1.3.44
Firmware version: Rover 3.1.0

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 45660

Trending Articles



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