Commit Graph

34 Commits

Author SHA1 Message Date
Andy Piper 7e6fda6650 AP_Logger: mavlink backend needs to be the last backend
be really careful to catch aborted erases
take care to protect shared structures in io thread
if flash corruption is detected try and recover whole files
overwrite format in erase to make sure erase happens
output useful messages at critical times
a block is 64k a sector is 4k, rename internal variables appropriately
cope with log wrapping when sending log listings over mavlink
2020-02-04 12:10:17 +09:00
Randy Mackay dce1710901 AP_Logger: remove non-error init messages 2020-01-19 10:41:16 +09:00
Andrew Tridgell 43c99664b0 AP_Logger: add a semaphore to protect creation of new log formats 2020-01-18 16:04:46 +11:00
Michael du Breuil c369139be0 AP_Logger: Support new ModeReason 2019-10-25 08:48:22 +08:00
Andrew Tridgell 889b18022b AP_Logger: use HAL_MEM_CLASS for logging buffer size 2019-10-01 09:29:55 +10:00
Andrew Tridgell df4cb00970 AP_Logger: added LOG_FILE_TIMEOUT parameter
this allows for cards to be removed and re-inserted while continuing
logging
2019-08-27 15:40:43 +10:00
Andrew Tridgell 667b4e045a AP_Logger: convert to use AP_Filesystem 2019-08-27 15:40:43 +10:00
Peter Barker b2d9d7b6a0 AP_Logger: const-struct many structures, use temp for navekf object 2019-08-06 11:45:04 +10:00
Pierre Kancir 781e9ae9c1 AP_Logger: pass mavlink_message_t by const reference 2019-07-16 20:51:42 +10:00
Peter Barker 502f74f0d9 AP_Logger: switch to using stderr for log structure debug
The console output doesn't seem to appear anywhere now.
2019-07-05 12:05:27 +10:00
Andrew Tridgell dd3eec2a38 AP_Logger: persist logging for 15s after disarm or arming failure
this will provide useful information in logs on disarms in flight or
reasons for arming failure
2019-06-21 11:40:53 +10:00
Peter Barker 5f877294c9 AP_Logger: re-add lost validate_structure loop
Lost with bad rebase
2019-06-12 10:05:59 +10:00
Peter Barker cd0265644d AP_Logger: disable float-mult-zero sanity check for the time being 2019-06-12 10:05:59 +10:00
Peter Barker a5f5b4349c AP_Logger: add a Write_Rally method 2019-05-22 08:53:45 +10:00
Peter Barker 54eff7eafc AP_Logger: add WriteCritical method to AP::logger()
For callers who emphatically want their custom messages to be written out.
2019-05-16 17:21:24 +10:00
Andrew Tridgell 24c5bf42ae AP_Logger: force logging on an armed watchdog reset
and don't clear sdcard space
2019-04-22 16:53:35 +10:00
Tom Pittenger 027f9afcf8 AP_logger: rename dataflash to logger and refactor the filename logger.bin 2019-03-28 16:40:58 +11:00
Peter Barker d2a683a758 AP_Logger: move Log_Write_Error into library 2019-03-27 12:36:40 +11:00
Peter Barker bd8a27476e AP_Logger: make structure validation failure at runtime fatal 2019-03-26 10:18:05 +11:00
Peter Barker ee690e7ab9 AP_Logger: use AP_InternalError for tracking internal errors 2019-03-21 21:34:33 +11:00
Randy Mackay cf8a7fd423 AP_Logger: add values to backend-type param description 2019-03-09 14:22:28 +09:00
Peter Barker 539000df40 AP_Logger: remove more DataFlash references
Also strongly type the backend type
2019-03-02 22:28:13 +11:00
Peter Barker dfa5a423ec AP_Logger: add sanity check that trigger for bad float multipliers 2019-03-01 15:43:46 +11:00
Peter Barker 9108eeb8f5 AP_Logger: log rally points into dataflash on upload 2019-02-12 11:48:55 +11:00
Tom Pittenger 21db5e1a5c AP_Logger: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Peter Barker 78e76b84b2 AP_Logger: move handling Write_Event into AP_Logger 2019-02-04 09:30:07 +09:00
Peter Barker 7525c593cb AP_Logger: stop taking mission as argument to Write_EntireMission 2019-01-29 19:07:05 -08:00
vierfuffzig 81f77f5311 AP_Logger: fix _BACKEND_TYPE parameter description 2019-01-22 07:29:01 +11:00
Andrew Tridgell 1d57385184 AP_Logger: removed f4light logging backend 2019-01-21 21:57:21 +11:00
Andrew Tridgell e3c9f10e91 AP_Logger: revived block based logging 2019-01-21 21:57:21 +11:00
Peter Barker 6fc76a32af GLOBAL: use AP::logger() and strip redundant Log_ from methods 2019-01-18 18:08:20 +11:00
Peter Barker 8e2a229e5d AP_Logger: add AP::logger() method 2019-01-18 18:08:20 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Peter Barker 6a59dd04a7 DataFlash: rename to AP_Logger 2019-01-18 18:08:20 +11:00