mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 22:18:29 -04:00
AP_OpticalFlow: change for new PX4 device paths
This commit is contained in:
parent
9f7e20090c
commit
995311f807
@ -41,7 +41,7 @@ OpticalFlow_backend(_frontend)
|
|||||||
|
|
||||||
void AP_OpticalFlow_PX4::init(void)
|
void AP_OpticalFlow_PX4::init(void)
|
||||||
{
|
{
|
||||||
_fd = open(PX4FLOW_DEVICE_PATH, O_RDONLY);
|
_fd = open(PX4FLOW0_DEVICE_PATH, O_RDONLY);
|
||||||
|
|
||||||
// check for failure to open device
|
// check for failure to open device
|
||||||
if (_fd == -1) {
|
if (_fd == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user