Peter Barker
aeb45bf146
AP_Logger: fix extremely unlikely nullptr dereference in SITL sanity checks
5 years ago
Peter Barker
031c97db30
AP_Logger: correct Write() containing 'a' entries
5 years ago
Peter Barker
b2d9d7b6a0
AP_Logger: const-struct many structures, use temp for navekf object
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
Peter Barker
9108eeb8f5
AP_Logger: log rally points into dataflash on upload
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
590eb86a45
DataFlash: use AP_Mission singleton
6 years ago
Peter Barker
156ac83123
DataFlash: allow replay to work again
6 years ago
Peter Barker
4c794ebba3
DataFlash: account for snprintf now null-terminating strings
6 years ago
Peter Barker
6daa241235
DataFlash: add sanity check for WritePrioritisedBlock size
7 years ago
murata
396517fe58
DataFlash: Delete unused arguments.
7 years ago
Peter Barker
611dcb694b
DataFlash: write CHIBIOS_GIT_VERSION to opened log file
...
DataFlash: use AP_FWVersion singleton
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
a5442fb293
DataFlash: support for units on fields
7 years ago
Andrew Tridgell
fd86b2bbb9
DataFlash: log critical messages while disarmed
...
this logs critical messages while disarmed if we have logged any
messages while armed. This fixes issue #7010 where log files show the
incorrect mode if the log includes any portions where the user
disarmed. It makes analysing users logs very difficult. It also
affects parameters, so we don't always know the true parameter values
in logs from users.
7 years ago
Peter Barker
d1b47e863d
DataFlash: resolve race conditions with IMU logging thread
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
6a03af8f3e
DataFlash: make EnableWrites a frontend thing
8 years ago
Peter Barker
bd747006aa
DataFlash: eliminate calls to manipulate _writes_enabled
8 years ago
Peter Barker
0be2e7962f
DataFlash: create a WritesOK method for WritePrioritisedBlock
8 years ago
Peter Barker
ac1484f60e
DataFlash: clear format sent mask when backend starts new log
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
8 years ago
Peter Barker
95d4475d45
DataFlash: avoid time going backwards in logs
...
WriteBlockCheckStartupMessages returned true if finished writing out
all startup messages. However, that may have allowed the caller to
then write out their message - but the timestamp on that message would
almost certainly be lower than the messages we've just written out.
9 years ago
Andrew Tridgell
46f257fd9b
DataFlash: convert Log_Write() to use a linked list
...
this saves some memory and means we don't need to know how many we
will need in advance
9 years ago
Peter Barker
11dd254498
DataFlash: Log_Write optimisations
9 years ago
Peter Barker
77dd170e03
DataFlash: Log_Write support
...
A generic logging method to avoid the need to set up a format and structures etc
9 years ago
Peter Barker
334af1ecd7
DataFlash: base class method for resetting state on log open
9 years ago
Peter Barker
faabe0b83d
DataFlash: support multiple simultaneous backends
9 years ago
Caio Marcelo de Oliveira Filho
753956bd77
AP_Dataflash: use millis/micros/panic functions
9 years ago
Peter Barker
63a45000b4
DataFlash: take log messages after putting FMTs out
10 years ago
Peter Barker
8f8493225c
DataFlash: DFMessageWriter; ability to trickle messages out to DF
10 years ago