mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Logger: allow for logged files over 32k in size
crash_dump.bin can be large
This commit is contained in:
parent
a8eed76f61
commit
6f34fa7919
@ -558,7 +558,7 @@ private:
|
|||||||
struct {
|
struct {
|
||||||
struct file_list *head, *tail;
|
struct file_list *head, *tail;
|
||||||
int fd;
|
int fd;
|
||||||
uint16_t offset;
|
uint32_t offset;
|
||||||
HAL_Semaphore sem;
|
HAL_Semaphore sem;
|
||||||
} file_content;
|
} file_content;
|
||||||
void file_content_update(void);
|
void file_content_update(void);
|
||||||
|
@ -690,8 +690,8 @@ struct PACKED log_STAK {
|
|||||||
struct PACKED log_File {
|
struct PACKED log_File {
|
||||||
LOG_PACKET_HEADER;
|
LOG_PACKET_HEADER;
|
||||||
char filename[16];
|
char filename[16];
|
||||||
uint16_t offset;
|
uint32_t offset;
|
||||||
uint16_t length;
|
uint8_t length;
|
||||||
char data[64];
|
char data[64];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1344,7 +1344,7 @@ LOG_STRUCTURE_FROM_VISUALODOM \
|
|||||||
{ LOG_STAK_MSG, sizeof(log_STAK), \
|
{ LOG_STAK_MSG, sizeof(log_STAK), \
|
||||||
"STAK", "QBBHHN", "TimeUS,Id,Pri,Total,Free,Name", "s#----", "F-----", true }, \
|
"STAK", "QBBHHN", "TimeUS,Id,Pri,Total,Free,Name", "s#----", "F-----", true }, \
|
||||||
{ LOG_FILE_MSG, sizeof(log_File), \
|
{ LOG_FILE_MSG, sizeof(log_File), \
|
||||||
"FILE", "NhhZ", "FileName,Offset,Length,Data", "----", "----" }, \
|
"FILE", "NIBZ", "FileName,Offset,Length,Data", "----", "----" }, \
|
||||||
LOG_STRUCTURE_FROM_AIS, \
|
LOG_STRUCTURE_FROM_AIS, \
|
||||||
{ LOG_SCRIPTING_MSG, sizeof(log_Scripting), \
|
{ LOG_SCRIPTING_MSG, sizeof(log_Scripting), \
|
||||||
"SCR", "QNIii", "TimeUS,Name,Runtime,Total_mem,Run_mem", "s-sbb", "F-F--", true }
|
"SCR", "QNIii", "TimeUS,Name,Runtime,Total_mem,Run_mem", "s-sbb", "F-F--", true }
|
||||||
|
Loading…
Reference in New Issue
Block a user