Peter Barker
4237a33ce6
AP_Logger: split logging of mission-upload vs mission-execution
2024-10-01 10:19:29 +10:00
Peter Barker
b4e3b6cdd5
AP_Logger: add support for logging float16
2024-08-27 10:19:26 +10:00
Peter Barker
3208491983
AP_Logger: remove twin paths for writing FMT messages
...
This stops us tracking formats-written in two places.
The Write() method will now emit formats as required and set the relevant bit in the backend-owned bitmask of formats sent.
2024-07-09 10:40:08 +10:00
Andrew Tridgell
20070b7e37
AP_Logger: use NEW_NOTHROW for new(std::nothrow)
2024-06-04 09:20:21 +10:00
tanghongkai
b66ecd8884
AP_Logger: rename class and hwdef related to w25nxx
2024-05-06 12:26:38 +10:00
Andrew Tridgell
b430d63a22
AP_Logger: avoid logging dma.txt for normal builds
...
logging of dma.txt currently does no good as the first time you read
it you get no content. It then enables statistics in the shared_dma
code which makes all DMA operations slower, so all we are doing is
making DMA slower
2024-03-19 10:28:55 +11:00
Peter Barker
6f4ab028ca
AP_Logger: cope with rename of AP_Logger_JEDEC driver
2024-02-28 22:32:23 +11:00
Peter Barker
e39fad1411
AP_Logger: move logger object up to AP_Vehicle
2024-02-13 10:54:29 +11:00
Simon Hancock
1bfd9f3763
AP_Logger: Correct for loop condition
2024-01-24 19:09:55 +11:00
Peter Barker
58408cd0b5
AP_Logger: use @ROMFS/defaults.parm rather than apj_tool for defaul parms
2024-01-17 18:28:48 +11:00
Pierre Kancir
d98a400d9e
AP_Logger: Prepare the maximum number of log files in the config parameter
2023-11-22 18:35:21 +11:00
Peter Barker
8ff9fc0f70
AP_Logger: add Write_NamedValueFloat
...
for getting diagnostics into the code during ddebug fast
2023-07-18 11:34:31 +10:00
Henry Wurzburg
f71826a992
AP_Logger:correct blk rate param metadata
2023-06-30 15:13:52 +01:00
Peter Barker
e5dda42056
AP_Logger: remove requirement to know storage type of fence item in headers
2023-06-24 14:21:01 +10:00
Andrew Tridgell
48acb1a2f7
AP_Logger: added LOG_DARM_RATEMAX
...
this sets the logging rate max when disarmed. In combination with
LOG_DISARMED=3 it gives a very nice setup to get always on logging
with very little addition to the log sizes. It is particularly useful
in combination with LOG_REPLAY=1
2023-04-14 07:48:24 +10:00
Andrew Tridgell
63e45a3910
AP_Logger: added LOG_DISARMED=3
...
when LOG_DISARMED is set to 3 then we log while disarmed but if we
reboot without ever arming the log is discarded. This allows for using
LOG_DISARMED without filling the microSD.
2023-04-14 07:48:24 +10:00
Andrew Tridgell
3b4f5d77af
AP_Logger: use AP_Enum for log_disarmed
2023-04-14 07:48:24 +10:00
Paul Riseborough
fd7c4bc841
AP_Logger: Add option to disable disarmed logging on USB connection
...
AP_Logger: Update LOG_DISARMED parameter description
2022-12-15 10:38:15 +11:00
Iampete1
1547c65ff3
AP_Scripting: bindings: logging: add flag to copy format strings
2022-11-08 10:49:43 +11:00
Iampete1
1df00d879a
AP_Logger: add option allocate scripting format strings in msg_fmt_for_name
2022-11-08 10:49:43 +11:00
Peter Barker
8e06d5cd36
AP_Logger: include required AP_Vehicle_Type header
2022-11-02 18:35:48 +11:00
Iampete1
47853383b1
AP_Logger: add fence message writer
2022-08-30 09:07:27 +10:00
Henry Wurzburg
530d59017a
AP_Logger: add increment on file rate limiting to allow <1Hz
2022-08-02 10:22:48 +10:00
Iampete1
63e03622d4
AP_Logger: log default param values
2022-07-20 17:59:59 +10:00
Peter Barker
659f801650
AP_Logger: remove unused includes
2022-07-20 17:32:24 +10:00
Andy Piper
f666ed8ec7
AP_Logger: support W25N01GV flash chips
...
add separate driver for W25N01GV triggered via HAL_LOGGING_DATAFLASH_DRIVER
move flash_test() into AP_Logger_Block.
cleanup use of 4k sector commands to account for chips that only have block commands
2022-06-08 21:44:21 +10:00
Andrew Tridgell
2c962e46c1
AP_Logger: don't compiler AP_Logger.cpp if logging not enabled
...
for some reason this fixes f103-GPS build, even though the code wasn't
referenced
2022-06-06 14:50:40 +10:00
Andrew Tridgell
a15cf3192d
AP_Logger: save crash_dump.bin to sdcard on boot
...
on each boot write crash_dump.bin to the microSD if it is available
this makes it easier for users to send in their crash dumps, and less
likely they will overwrite it with a fw update
2022-06-06 14:50:40 +10:00
Andrew Tridgell
c02aef8a50
AP_Logger: allow for new log msgs in Replay
...
this makes replay tuning and code testing much easier as up to 10 new
log messages can be added in the replay code
2022-06-01 17:07:41 +10:00
Andrew Tridgell
06b6632f30
AP_Logger: fixed @SYS file logging
...
the key fix is the reset of the fd to -1. Without that fix we only
ever log @SYS/uarts.txt
The timing change is needed to get the files out in a reasonable
time. The function is actually getting called at 100Hz or less, not
1kHz (measured on MatekH743 copter at 400Hz). So we need to run it
faster to get the files logged in a reasonable time
2022-04-06 07:46:29 +10:00
Andrew Tridgell
a01ca35939
AP_Logger: increase stack of log_io thread by 256
...
This was seem on omnibusf4pro, it is a bit too close:
log_io PRI= 59 sp=0x20015CC0 STACK=144/1656
2022-04-01 19:56:30 +11:00
Andrew Tridgell
e715972264
AP_Logger: reduce the stack log frequency
...
10Hz is plenty
2022-02-22 12:17:17 +11:00
Andy Piper
4f785b4aaa
AP_Logger: add @SYS/timers.txt to logged files
2022-02-16 15:28:04 +11:00
Mark Whitehorn
5f7f1cff2b
AP_Logger: fix _RATEMAX parameter descriptions
2022-01-12 10:15:45 +11:00
Peter Barker
fc46fe71f0
AP_Logger: fix memory leak logging files at startup
2022-01-11 14:18:14 +11:00
Pierre Kancir
4add35355e
AP_Logger: use nullptr
2022-01-06 09:13:54 +11:00
Pierre Kancir
f50f8c7a2a
AP_Logger: fix memory leak
2022-01-05 18:07:30 +11:00
Shiv Tyagi
3533e1e0ed
AP_Logger: remove AP_Logger_SITL
...
We now use jedec dataflash simulator for this purpose. Hence, we should remove these files and all references to HAL_LOGGING_SITL_ENABLED
Co-Authored-By: Divyateja Pasupuleti <divyateja2004@gmail.com>
2021-12-25 09:14:31 +11:00
Andrew Tridgell
045daaf191
AP_Logger: speed up logging of crash_dump.bin
...
dump 450k crash log in about 1 minute
2021-12-15 08:01:38 +11:00
Iampete1
7b0f059968
AP_Logger: file content: log only file name if directory won't fit
2021-11-17 19:16:46 +11:00
Iampete1
f32f14b19c
AP_Logger: log_file_content: copy filename
2021-11-17 19:16:46 +11:00
Peter Barker
e95aedd748
AP_Logger: tidy construction of backends
2021-11-09 10:18:10 +11:00
Andrew Tridgell
0be1017843
AP_Logger: support logging of files contents
...
this allows us to see key internal data in log files
2021-10-30 16:44:00 +11:00
Andrew Tridgell
1559f7aa2d
AP_Logger: added stack logging
2021-10-12 16:04:06 +11:00
Peter Barker
143f23db89
AP_Logger: move SBP logging structures into AP_GPS
2021-09-28 10:45:51 +10:00
Iampete1
f80fedff9c
AP_Logger: add function to set longer log persist
2021-09-08 18:26:40 +10:00
Andrew Tridgell
d0969a4476
AP_Logger: added RATEMAX for mavlink and block backends
2021-08-03 10:23:36 +10:00
Andrew Tridgell
662f7a0191
AP_Logger: added LOG_FILE_RATEMAX parameter
...
this allows for a global "maximum rate in Hz for streaming messages"
setting
2021-08-03 10:23:36 +10:00
Siddharth Purohit
503a676e44
AP_Logger: omit code that breaks build for herepro
2021-07-02 08:50:16 +10:00
Peter Barker
dd8af14e57
AP_Logger: remove @Values from param metadata where @Bitmask exists
2021-06-23 18:37:34 +10:00