Andrew Tridgell
274e441292
DataFlash: fixed build for aerofc-v1
2017-11-04 16:53:29 +11:00
Lucas De Marchi
3272ae2c04
DataFlash: make log directory macro mandatory
...
Everybody defines the macro (or should be defining). Let smaller users
that don't have a filesystem to rather protect it with HAL_OS_POSIX_IO,
which also allow them to save more flash space.
2017-10-30 16:57:37 -07:00
Peter Barker
191e457230
DataFlash: include sample count in ISBH
2017-10-27 16:33:45 +11:00
Peter Barker
d950e78079
DataFlash: Log_ISBH and Log_ISBD, to log batches of IMU data
2017-10-27 16:33:45 +11:00
Peter Barker
2f9a8ded55
DataFlash: add new int16_t[32] type, designator 'a'
2017-10-27 16:33:45 +11:00
Lucas De Marchi
a25320d522
DataFlash: add static create method
2017-09-26 03:01:21 +01:00
Peter Barker
776d88bb6b
DataFlash: remove duplicate variables
2017-08-28 22:05:44 +01:00
Peter Barker
1f0a14ab33
DataFlash: add PrepForArming method
2017-07-19 16:37:28 +01:00
Peter Barker
b572c13ca9
DataFlash: move starting of new logs into DataFlash
2017-07-19 16:37:16 +01:00
Peter Barker
f6a09d0657
DataFlash: eliminate GCS_MAVLINK::send_statustext_all
2017-07-11 23:53:53 +01:00
Peter Barker
4dfdffde43
DataFlash: move should_log check of log bitmask into DataFlash
2017-06-29 15:26:27 +01:00
Peter Barker
ad17709390
DataFlash: handle knowledge of in_log_download in DataFlash
2017-06-27 03:10:43 +01:00
Peter Barker
305531952f
DataFlash: move send-logs-via-mavlink code into DataFlash
2017-06-27 03:10:43 +01:00
Peter Barker
5c19f09cd7
DataFlash: handle mavlink messages, not just remote-log-block-statuses
2017-06-17 15:07:48 +01:00
Peter Barker
6a03af8f3e
DataFlash: make EnableWrites a frontend thing
2017-06-16 17:07:48 +01:00
Peter Barker
07e37281ef
DataFlash: add a should_log method
2017-06-16 17:07:48 +01:00
Pierre Kancir
914bc53100
Dataflash: fix shadowing of logstructure in SITL
2017-06-14 12:40:47 +01:00
Peter Barker
af6eb4e41d
DataFlash: remove unused NeedPrep function
2017-06-14 12:20:29 +01:00
Peter Barker
91b62abfe5
DataFlash: simplify dataflash initialisation
2017-06-14 12:20:29 +01:00
Peter Barker
cdd0397bbf
DataFlash: check all backends for sensor health
2017-06-11 20:34:12 +01:00
Peter Barker
7221b0def2
DataFlash: StartUnstartedLogging replaces logging_started/start_logging
2017-06-11 20:34:12 +01:00
Peter Barker
ac1484f60e
DataFlash: clear format sent mask when backend starts new log
2017-05-01 19:16:47 +10:00
Peter Barker
608d6d0a5f
DataFlash: implement a printf-like Log_Write_MessageF method
2017-04-23 09:08:30 +10:00
Peter Barker
510aa587ef
DataFlash: add validation for logging structures
2017-04-04 20:03:33 +01:00
Peter Barker
2746edfd32
DataFlash: move Init from LogFile.cpp to Dataflash.cpp (NFC)
2017-04-04 20:03:33 +01:00
Peter Barker
2c8a0a9123
DataFlash: rotate files when vehicle is disarmed
2016-11-28 09:42:09 -08:00
Peter Barker
fc79fb4ab4
DataFlash: know about armed state of vehicle
2016-11-28 09:42:09 -08:00
Peter Barker
8d253dec8e
DataFlash: support for mavlink SENSOR message
2016-08-11 17:48:44 -03:00
Murilo Belluzzo
e17fdb2aa9
DataFlash: Avoid null pointer dereference
...
Confirms that the loop successfully found a log structure before using it.
Should fix CID 126742
2016-08-03 00:02:19 -03:00
Rustom Jehangir
39fc17f384
DataFlash: Fix parameter description for param_parse.py
2016-05-16 11:09:31 +10:00
Ricardo de Almeida Gonzaga
dc7acdf03f
DataFlash: Fix typos
2016-05-13 19:20:05 -03:00
Andrew Tridgell
202eb3af35
DataFlash: added imu_mask to Log_Write_IMUDT
2016-05-09 12:26:30 +10:00
Andrew Tridgell
8ca6ed54c5
DataFlash: added LOG_REPLAY and LOG_DISARMED parameters
2016-05-09 12:00:55 +10:00
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
2016-05-07 07:21:16 +10:00
Andrew Tridgell
9a1cbff850
DataFlash: allow access to DataFlash instance as a static singleton
2016-05-07 07:21:16 +10:00
Peter Barker
518fabe035
DataFlash: StopLogging method, virtual stop_logging on backends
2016-05-07 07:21:16 +10:00
Peter Barker
77dd170e03
DataFlash: Log_Write support
...
A generic logging method to avoid the need to set up a format and structures etc
2016-05-07 07:21:16 +10:00
Andrew Tridgell
c765979f9a
DataFlash: expose the number of lost log messages
...
will be logged in PM message
2016-04-21 16:45:02 +10:00
Jonathan Challinger
a0e291bf89
DataFlash: add reason to MODE
2016-04-14 12:24:04 +09:00
Peter Barker
ff8008d81a
DataFlash: remove unused callbacks, unimplemented functions
...
Closes #3269
2016-01-05 17:08:07 -02:00
Peter Barker
7900359fac
DataFlash: LOG_FILE_BUFSIZE sets buffer size for DataFlash_File
2015-12-08 10:59:57 +11:00
Tom Pittenger
c118130dda
DataFlash: fixed mispelling
...
@param label was different than everywhere else that did not use plurl
2015-12-08 08:23:07 +09:00
Peter Barker
0ca07e5245
DataFlash: DataFlash-over-MAVLink support
2015-12-03 13:21:51 +11:00
Peter Barker
faabe0b83d
DataFlash: support multiple simultaneous backends
2015-12-03 13:21:51 +11:00
Lucas De Marchi
c74b1a660d
DataFlash: remove DATAFLASH_NO_CLI
...
This is not used anymore since the removal of AVR CPUs.
2015-11-04 12:14:15 +11:00
Peter Barker
e481497574
DataFlash: delete oldest file rather than the lowest-numbered file
...
Also reference log numbers by their list index to accomodate log number
wrapping in DataFlash_File
2015-10-21 10:50:32 +11:00
Peter Barker
60010e794e
DataFlash: ensure 10% free space when initialising logging
2015-09-09 12:22:35 +10:00
Peter Barker
8f8493225c
DataFlash: DFMessageWriter; ability to trickle messages out to DF
2015-09-03 09:54:55 +10:00
Gustavo Jose de Sousa
709204c01d
DataFlash: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:38:24 +10:00
Peter Barker
c5c39a77a3
DataFlash: method to flush ringbuffer to fd
2015-06-30 16:19:22 +10:00