murata
264a90bb45
AP_Logger: Change to coding style (NFC)
...
AP_Logger: Change to coding style (NFC)
5 years ago
Peter Barker
8679e95fca
AP_Logger: add comments about message_writer being leaked
...
These are really "shouldn't happen", and only happen at startup, so
impact of the memory leak is quite limited.
Fixing this requires putting in a virtual destructor on the
MessageWriter class - this and the calls add up to several hundred bytes
of flash.
5 years ago
Andrew Tridgell
56035fa5a1
AP_Logger: add a semaphore to protect creation of new log formats
5 years ago
Randy Mackay
6aff18d22d
AP_Logger: remove non-error init messages
5 years ago
Andy Piper
54b6e7b264
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
5 years ago
Peter Barker
f337d011e7
AP_Logger: make LogEvent an enum class, split off LogDataID
...
We were mixing the enumeration values across different messages, which
isn't great
5 years ago
Michael du Breuil
c369139be0
AP_Logger: Support new ModeReason
5 years ago
Andrew Tridgell
889b18022b
AP_Logger: use HAL_MEM_CLASS for logging buffer size
5 years ago
Andrew Tridgell
df4cb00970
AP_Logger: added LOG_FILE_TIMEOUT parameter
...
this allows for cards to be removed and re-inserted while continuing
logging
6 years ago
Andrew Tridgell
667b4e045a
AP_Logger: convert to use AP_Filesystem
6 years ago
Peter Barker
b2d9d7b6a0
AP_Logger: const-struct many structures, use temp for navekf object
6 years ago
Pierre Kancir
781e9ae9c1
AP_Logger: pass mavlink_message_t by const reference
6 years ago
Peter Barker
502f74f0d9
AP_Logger: switch to using stderr for log structure debug
...
The console output doesn't seem to appear anywhere now.
6 years ago
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
6 years ago
Peter Barker
5f877294c9
AP_Logger: re-add lost validate_structure loop
...
Lost with bad rebase
6 years ago
Peter Barker
cd0265644d
AP_Logger: disable float-mult-zero sanity check for the time being
6 years ago
Peter Barker
a5f5b4349c
AP_Logger: add a Write_Rally method
6 years ago
Peter Barker
54eff7eafc
AP_Logger: add WriteCritical method to AP::logger()
...
For callers who emphatically want their custom messages to be written out.
6 years ago
Andrew Tridgell
24c5bf42ae
AP_Logger: force logging on an armed watchdog reset
...
and don't clear sdcard space
6 years ago
Tom Pittenger
027f9afcf8
AP_logger: rename dataflash to logger and refactor the filename logger.bin
6 years ago
Peter Barker
d2a683a758
AP_Logger: move Log_Write_Error into library
6 years ago
Peter Barker
bd8a27476e
AP_Logger: make structure validation failure at runtime fatal
6 years ago
Peter Barker
ee690e7ab9
AP_Logger: use AP_InternalError for tracking internal errors
6 years ago
Randy Mackay
cf8a7fd423
AP_Logger: add values to backend-type param description
6 years ago
Peter Barker
539000df40
AP_Logger: remove more DataFlash references
...
Also strongly type the backend type
6 years ago
Peter Barker
dfa5a423ec
AP_Logger: add sanity check that trigger for bad float multipliers
6 years ago
Peter Barker
9108eeb8f5
AP_Logger: log rally points into dataflash on upload
6 years ago
Tom Pittenger
21db5e1a5c
AP_Logger: unify singleton naming to _singleton and get_singleton()
6 years ago
Peter Barker
78e76b84b2
AP_Logger: move handling Write_Event into AP_Logger
6 years ago
Peter Barker
7525c593cb
AP_Logger: stop taking mission as argument to Write_EntireMission
6 years ago
vierfuffzig
81f77f5311
AP_Logger: fix _BACKEND_TYPE parameter description
6 years ago
Andrew Tridgell
1d57385184
AP_Logger: removed f4light logging backend
6 years ago
Andrew Tridgell
e3c9f10e91
AP_Logger: revived block based logging
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
8e2a229e5d
AP_Logger: add AP::logger() method
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
6a59dd04a7
DataFlash: rename to AP_Logger
6 years ago
Andrew Tridgell
57f7af504d
DataFlash: fixed build warning on cygwin
6 years ago
Peter Barker
590eb86a45
DataFlash: use AP_Mission singleton
6 years ago
Peter Barker
4c794ebba3
DataFlash: account for snprintf now null-terminating strings
6 years ago
Peter Barker
b177554f61
DataFlash: add sanity check for duplicate units/multipliers
6 years ago
Peter Barker
6daa241235
DataFlash: add sanity check for WritePrioritisedBlock size
7 years ago
Alexander Malishev
932cc4bb69
DataFlash: allow HAL to specify dataflash buffer sizes
7 years ago
Peter Barker
611dcb694b
DataFlash: write CHIBIOS_GIT_VERSION to opened log file
...
DataFlash: use AP_FWVersion singleton
7 years ago
Dr.-Ing. Amilcar do Carmo Lucas
594911f0b4
DataFlash: replace /* fall through */ with FALLTHROUGH;
7 years ago
Peter Barker
63b0883b38
DataFlash: correct structures debug method
7 years ago
Peter Barker
b36f1c558d
DataFlash: use const char * rather than fixed array lengths in LogStructure
...
Previously tridge found that using const char * here meant that the
data segment (and thus RAM usage) would increase.
This doesn't seem to be a problem now.
7 years ago
Peter Barker
5bf2fb186c
DataFlash: parameterise dataflash-over-mavlink cachesize
7 years ago
Peter Barker
63792edc5f
DataFlash: increase debug in SITL
7 years ago
Andrew Tridgell
2b49a3ab7b
DataFlash: fix up logging on ChibiOS after change for F4Light
7 years ago