mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
HAL_Linux: enable DSM power pin
This commit is contained in:
parent
50e5ae6f7a
commit
3e3f87188b
@ -14,6 +14,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "GPIO.h"
|
||||
#include "RCInput.h"
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
@ -31,6 +32,10 @@ void LinuxRCInput_PRU::init(void*)
|
||||
close(mem_fd);
|
||||
ring_buffer->ring_head = 0;
|
||||
_s0_time = 0;
|
||||
|
||||
// enable the spektrum RC input power
|
||||
hal.gpio->pinMode(BBB_P8_17, HAL_GPIO_OUTPUT);
|
||||
hal.gpio->write(BBB_P8_17, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user