Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAVROS FTP read from PX4 1.14.1 always return 0 length data. #1928

Open
oldshuren opened this issue Jan 7, 2024 · 0 comments
Open

MAVROS FTP read from PX4 1.14.1 always return 0 length data. #1928

oldshuren opened this issue Jan 7, 2024 · 0 comments

Comments

@oldshuren
Copy link

This is only bug and feature tracker, please use it
to report bugs or request features.


Issue details

mavros ftp READ always read 0 length

MAVROS version and platform

Mavros: latest
ROS: noetic
Ubuntu: 20.4

Autopilot type and version

[ ] ArduPilot
[ X ] PX4

Version: 1.14.1

Node logs


Diagnostics

In mavros/src/plugins/ftp.cpp send_read_command() it has,
req.header()->size = 0 /* FTPRequest::DATA_MAXSZ */;

But the px4 mavlink_ftp.cpp changed from

int bytes_read = ::read(_session_info.fd, &payload->data[0], kMaxDataLength);

to

int bytes_read = ::read(_session_info.fd, &payload->data[0], payload->size);

So FTP read always return 0 length on px4 1.14.1

Check ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants