Commit Graph

16 Commits

Author SHA1 Message Date
Andrew Tridgell a241b13f45 AP_Filesystem: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Andrew Tridgell 0b7353bb89 AP_Filesystem: detect inconsistent parameter count
on incorrect param count invalidate it so a 2nd param ftp will get the
right count
2023-01-04 21:50:24 +11:00
Friedrich Beckmann 744a741b99 AP_Filesystem: Better estimation of filesize for parameter file
The actual filesize of the parameter downloadfile is around
15200 bytes. The indicated filesize is used in QGC for the
progressbar. This patch does not try to compute the exact filesize
but I try a better estimate. Only the full download off all
parameters is considered to avoid more complexity.
2022-09-27 09:38:25 +10:00
Peter Barker b5165b6d7f AP_FileSystem: add AP_FILESYSTEM_*_ENABLED 2022-09-15 10:53:02 +10:00
Iampete1 88d9550214 AP_Filesystem: support including defualts in packed param format 2022-07-20 17:59:59 +10:00
Peter Barker 6eaf2c545a AP_Filesystem: correct run-length encoding in param download
If a parameter's name was a prefix of the previous name we would
suffer an integer-wrap problem and incorrectly encode the parameter name
2022-05-03 07:49:36 +10:00
Willian Galvani 0e62d561d9 AP_Filesystem: add allow_absolute_paths to open(), implement it for posix backend 2022-03-22 10:19:21 +11:00
Andrew Tridgell b449e45ed6 AP_Filesystem: fixed a param ftp bug
if param count changes we need to zero the file size
2022-01-11 13:04:53 +11:00
Andy Piper d71fb2cb34 AP_Filesystem: fix ftp burst read with credit to deanharken 2021-10-15 19:02:41 +11:00
Andrew Tridgell b941b8c93a AP_Filesystem: allow for parameter upload via ftp 2021-04-21 07:12:55 +10:00
Andrew Tridgell 3e138aa98a AP_Filesystem: fixed a read past EOF bug in @PARAM
this could cause mavproxy FTP param download to fail
2021-04-14 17:05:49 +10:00
Andrew Tridgell b519ebf512 AP_Filesystem: check for valid range for start and count 2020-04-29 07:36:55 +10:00
Andrew Tridgell f6d83069d3 AP_Filesystem: guarantee padding and added URI options 2020-04-29 07:36:55 +10:00
Andrew Tridgell 3608bfe272 AP_Filesystem: added magic header for param.pck 2020-04-29 07:36:55 +10:00
Andrew Tridgell 9b14fa7ed9 AP_Filesystem: enable @PARAM, @ROMFS and @SYS with no microSD 2020-04-29 07:36:55 +10:00
Andrew Tridgell 67fc23d01b AP_Filesystem: support downloading parameters via ftp
adds @PARAM/param.pck as a packed file of all parameters
2020-04-29 07:36:55 +10:00