-
Notifications
You must be signed in to change notification settings - Fork 17.2k
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
AP_Filesystem: allow transfer of mission/fence/rally/param with mavftp #17102
Conversation
9f0b283
to
fcb8a5a
Compare
9c7fd6d
to
c314060
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I breezed through it, looks straight-forward. I look forward to this getting merged!
b8a7c51
to
1998e2d
Compare
I've had a look through this, like @magicrub , and it looks pretty clean to me. I'd be more comfortable with all the low-level filesystem functionality being correct if it had auto-tests that exercised all the upload/download and compared the before-upload and the after-download, etc, but that's just me, i know auto-tests aren't really considered 'essential' at this point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't see anything obviously wrong! Two comments:
- Lots of string manipulation, best to run through valgrind if you haven't already
- Its quite a lot of code - conditional compile for 1Mb boards?
this allows for the @mission filesystem to download data in the current mavlink format
not all HALs zero memory on realloc
thanks Andy!
1998e2d
to
1de5337
Compare
what I'd like to do is make the whole mavlink ftp support conditional, and allow disable of it in the custom fw server |
good call btw, there was a socket write of uninitialised memory, fixed now |
overflowing by 1k
This exposes a @mission filesystem for upload and download of mission/fence/rally and extends @param filesystem for parameter upload with ftp
mavproxy implementation: ArduPilot/MAVProxy#880
working: