Peter Barker
776d88bb6b
DataFlash: remove duplicate variables
8 years ago
Peter Barker
1f0a14ab33
DataFlash: add PrepForArming method
8 years ago
Peter Barker
b572c13ca9
DataFlash: move starting of new logs into DataFlash
8 years ago
Peter Barker
f6a09d0657
DataFlash: eliminate GCS_MAVLINK::send_statustext_all
8 years ago
Peter Barker
4dfdffde43
DataFlash: move should_log check of log bitmask into DataFlash
8 years ago
Peter Barker
ad17709390
DataFlash: handle knowledge of in_log_download in DataFlash
8 years ago
Peter Barker
305531952f
DataFlash: move send-logs-via-mavlink code into DataFlash
8 years ago
Peter Barker
5c19f09cd7
DataFlash: handle mavlink messages, not just remote-log-block-statuses
8 years ago
Peter Barker
6a03af8f3e
DataFlash: make EnableWrites a frontend thing
8 years ago
Peter Barker
07e37281ef
DataFlash: add a should_log method
8 years ago
Pierre Kancir
914bc53100
Dataflash: fix shadowing of logstructure in SITL
8 years ago
Peter Barker
af6eb4e41d
DataFlash: remove unused NeedPrep function
8 years ago
Peter Barker
91b62abfe5
DataFlash: simplify dataflash initialisation
8 years ago
Peter Barker
cdd0397bbf
DataFlash: check all backends for sensor health
8 years ago
Peter Barker
7221b0def2
DataFlash: StartUnstartedLogging replaces logging_started/start_logging
8 years ago
Peter Barker
ac1484f60e
DataFlash: clear format sent mask when backend starts new log
8 years ago
Peter Barker
608d6d0a5f
DataFlash: implement a printf-like Log_Write_MessageF method
8 years ago
Peter Barker
510aa587ef
DataFlash: add validation for logging structures
8 years ago
Peter Barker
2746edfd32
DataFlash: move Init from LogFile.cpp to Dataflash.cpp (NFC)
8 years ago
Peter Barker
2c8a0a9123
DataFlash: rotate files when vehicle is disarmed
8 years ago
Peter Barker
fc79fb4ab4
DataFlash: know about armed state of vehicle
8 years ago
Peter Barker
8d253dec8e
DataFlash: support for mavlink SENSOR message
9 years ago
Murilo Belluzzo
e17fdb2aa9
DataFlash: Avoid null pointer dereference
...
Confirms that the loop successfully found a log structure before using it.
Should fix CID 126742
9 years ago
Rustom Jehangir
39fc17f384
DataFlash: Fix parameter description for param_parse.py
9 years ago
Ricardo de Almeida Gonzaga
dc7acdf03f
DataFlash: Fix typos
9 years ago
Andrew Tridgell
202eb3af35
DataFlash: added imu_mask to Log_Write_IMUDT
9 years ago
Andrew Tridgell
8ca6ed54c5
DataFlash: added LOG_REPLAY and LOG_DISARMED parameters
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
Andrew Tridgell
9a1cbff850
DataFlash: allow access to DataFlash instance as a static singleton
9 years ago
Peter Barker
518fabe035
DataFlash: StopLogging method, virtual stop_logging on backends
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
Andrew Tridgell
c765979f9a
DataFlash: expose the number of lost log messages
...
will be logged in PM message
9 years ago
Jonathan Challinger
a0e291bf89
DataFlash: add reason to MODE
9 years ago
Peter Barker
ff8008d81a
DataFlash: remove unused callbacks, unimplemented functions
...
Closes #3269
9 years ago
Peter Barker
7900359fac
DataFlash: LOG_FILE_BUFSIZE sets buffer size for DataFlash_File
9 years ago
Tom Pittenger
c118130dda
DataFlash: fixed mispelling
...
@param label was different than everywhere else that did not use plurl
9 years ago
Peter Barker
0ca07e5245
DataFlash: DataFlash-over-MAVLink support
9 years ago
Peter Barker
faabe0b83d
DataFlash: support multiple simultaneous backends
9 years ago
Lucas De Marchi
c74b1a660d
DataFlash: remove DATAFLASH_NO_CLI
...
This is not used anymore since the removal of AVR CPUs.
9 years ago
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
9 years ago
Peter Barker
60010e794e
DataFlash: ensure 10% free space when initialising logging
10 years ago
Peter Barker
8f8493225c
DataFlash: DFMessageWriter; ability to trickle messages out to DF
10 years ago
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.
10 years ago
Peter Barker
c5c39a77a3
DataFlash: method to flush ringbuffer to fd
10 years ago
Peter Barker
723c37bcf7
DataFlash: backend/frontend split
10 years ago
Andrew Tridgell
c52ef80f06
DataFlash: added Block layer in classes
...
this will allow the addition of a DataFlash_File implementation of the
DataFlash API which will store logs in a traditional filesystem. That
will align better with the PX4 design, and be more useful for fast
transfer of logs to a host computer
12 years ago
Andrew Tridgell
0ffcffa81c
DataFlash: fixed signed/unsigned errors in API
12 years ago
Andrew Tridgell
9b551f162c
DataFlash: make the public interface much narrower
...
make many variables private, to simplify interface ready for PX4
12 years ago
Andrew Tridgell
20825cc903
DataFlash: removed the byte and word based interfaces
...
simplifing ready for PX4 flash logging
12 years ago
Andrew Tridgell
c6b006cf5f
DataFlash: move log reading logic into common library
12 years ago