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
Peter Barker
1f0a14ab33
DataFlash: add PrepForArming method
8 years ago
Francisco Ferreira
a1115ba5d0
DataFlash: move some code from WritesOK into a new ShouldLog method
8 years ago
Peter Barker
b572c13ca9
DataFlash: move starting of new logs into DataFlash
8 years ago
Peter Barker
4234f4ef7a
DataFlash: move _initialised into DataFlash_Backend
8 years ago
Peter Barker
f6a09d0657
DataFlash: eliminate GCS_MAVLINK::send_statustext_all
8 years ago
Peter Barker
001d3a7118
DataFlash: correct consts on CardInserted
8 years ago
Peter Barker
91b62abfe5
DataFlash: simplify dataflash initialisation
8 years ago
Peter Barker
0be2e7962f
DataFlash: create a WritesOK method for WritePrioritisedBlock
8 years ago
Peter Barker
9324d8e251
Dataflash: emit io thread warnings much less frequently
8 years ago
Peter Barker
057819ccef
DataFlash: zero-pad the number in the log filename
...
This helps with collating when reviewing log files
Closes #2212
8 years ago
Peter Barker
58d74230d5
DataFlash: correct error detection for asprintf
8 years ago
murata
1b2ea27a68
DataFlash: Unify from print or println to printf.
8 years ago
Peter Barker
bc45ab5409
DataFlash: add a heartbeat for the io thread in DataFlash_File
8 years ago
Peter Barker
e11c276b35
DataFlash_File: stop trying to stuff a uint64_t into a uint32_t
8 years ago