yaozb
13ff67c6c0
消息汉化
5 years ago
Andrew Tridgell
3ebc69320c
AP_Logger: fixed LOG_FILE_DSRMROT with delayed log stop
...
now that we persist logging for 15s after disarm we need to also delay
the log rotation if LOG_FILE_DSRMROT=1. Otherwise we will put the log
data into the next log, which defeats the purpose of the 15s
persistance
5 years ago
Andrew Tridgell
3bf3ebb703
AP_Logger: try harder to use close to user buffer size
...
this stops us drastically reducing buffer size when low on memory
5 years ago
Andrew Tridgell
d40835c666
AP_Logger: use AP::FS().set_mtime()
6 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
Andrew Tridgell
66dc36ef88
AP_Logger: ifdef out _need_rtc_update
6 years ago
Andrew Tridgell
4418495c99
AP_Logger: use UNUSED_RESULT
...
Co-Authored-By: Francisco Ferreira <OXINARF@users.noreply.github.com>
6 years ago
Andrew Tridgell
8e58cb993d
AP_Logger: fix timestamp on log files opened before GPS lock
6 years ago
Peter Barker
3d91547039
AP_Logger: add missing include for AP_RTC
6 years ago
Andrew Tridgell
91f80613dd
AP_Logger: removed internal error for logging without sem
6 years ago
Andrew Tridgell
6fa69c2297
AP_Logger: rename to EXPECT_DELAY_MS()
6 years ago
Andrew Tridgell
4cdfe6bac3
AP_Logger: use EXPECT_DELAY() macro
6 years ago
Andrew Tridgell
0b20d972cd
AP_Logger: prevent log erase from triggering watchdog
6 years ago
Andrew Tridgell
24c5bf42ae
AP_Logger: force logging on an armed watchdog reset
...
and don't clear sdcard space
6 years ago
Andrew Tridgell
215c41dbb1
AP_Logger: handle long delays in opening log files
6 years ago
Tom Pittenger
027f9afcf8
AP_logger: rename dataflash to logger and refactor the filename logger.bin
6 years ago
Peter Barker
ee690e7ab9
AP_Logger: use AP_InternalError for tracking internal errors
6 years ago
Andrew Tridgell
5b762711fd
AP_Logger: handle EEXIST for log dir create
6 years ago
Andrew Tridgell
e3c9f10e91
AP_Logger: revived block based logging
6 years ago
Peter Barker
78be3880ee
AP_Logger: remove VRBRAIN-HAL-specific code
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
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
Peter Barker
6c14924de3
DataFlash: remove NuttX/VRBrain hack for mixed-case filenames
6 years ago
Andrew Tridgell
fa4f497dab
DataFlash: allow logging startup after boot
...
allows microSD to be inserted after boot
6 years ago
Peter Barker
3803684c4e
DataFlash: add sanity checks around EraseAll
6 years ago
Andrew Tridgell
1d6b58f9ca
DataFlash: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
6 years ago
Peter Barker
fa7ba7ddbc
DataFlash: force messagewriters to completion
...
Setting a dataflash-file buffer size of less than or equal to 2kiB would
cause the startup-messagewriter to never push any messages other than
FMT out to the logs.
This is a combination of the return values of
critical_message_reserved_space and
non_messagewriter_message_reserved_space
This patch forces the startup messages out to the logs by ignoring the
space constraints every 100ms
7 years ago
Andrew Tridgell
8b4b38bcb2
DataFlash: removed "no io thread heartbeat" msg
7 years ago
murata
396517fe58
DataFlash: Delete unused arguments.
7 years ago
Peter Barker
493f958eb2
DataFlash: remove unused ReadBlock method
7 years ago
Andrew Tridgell
1283b92cb7
DataFlash: fix for new AP_RTC API
7 years ago
Andrew Tridgell
777b4c8cfe
DataFlash: avoid stat of current log file
...
this avoids getting invalid data base for stat() for the current log
file.
It also only gives up writing to a log file if writes fail for 2
seconds. This avoids a temporary write failure causing the log to be
closed (that can happen on ChibiOS with directory listing while writing)
7 years ago
Michael du Breuil
c4a66349ef
DataFlash: Remove suspend timer calls, restirct flush() to replay
7 years ago
Francisco Ferreira
221ba177c5
DataFlash: remove Qualcomm board support
7 years ago
Michael du Breuil
7e4972a061
DataFlash: Fix a false reporting of dead IO thread when millis() wraps
7 years ago
Michael du Breuil
703c7fb4b7
DataFlash: Remove unneeded inits and newlines
7 years ago
Lucas De Marchi
904888fba7
DataFlash: Linux boards never use /fs
7 years ago
Peter Barker
8027883734
DataFlash: remove vestiges of CLI functions
7 years ago
LukeMike
3dcaf83eaa
VRBRAIN / DataFlash: some update for new VR Brain 5.2E (EEPROM version)
7 years ago
LukeMike
bf6e57e7a4
VRBRAIN / DataFlash: added writebuf_chunk for VR Brain 5.4
7 years ago
Andrew Tridgell
38a36a070f
DataFlash: removed some special cases for ChibiOS
7 years ago
Andrew Tridgell
43a6ed4099
DataFlash: support ChibiOS FATFS implementation
7 years ago
Peter Barker
3af5be76aa
DataFlash: protect write fd with semaphore
...
If the sensor threads are using WriteBlock they may pass the _write_fd
== -1 check but then have that set to -1 by the main thread
7 years ago
Peter Barker
4263c1a90c
DataFlash: file not being initialised means logging is failed
8 years ago
Peter Barker
9783c0c3ba
DataFlash: log dataflash-file statistics periodically
8 years ago
Peter Barker
776d88bb6b
DataFlash: remove duplicate variables
8 years ago
Peter Barker
975d2fd0d1
DataFlash: add debug for io thread failure
8 years ago
Peter Barker
0769432e63
DataFlash: move log-write-started logic to be backend-specific
8 years ago