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
Peter Barker
723c37bcf7
DataFlash: backend/frontend split
2015-06-26 16:02:50 +10:00
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
2013-03-01 07:18:25 +11:00
Andrew Tridgell
0ffcffa81c
DataFlash: fixed signed/unsigned errors in API
2013-03-01 07:18:25 +11:00
Andrew Tridgell
9b551f162c
DataFlash: make the public interface much narrower
...
make many variables private, to simplify interface ready for PX4
2013-03-01 07:18:25 +11:00
Andrew Tridgell
20825cc903
DataFlash: removed the byte and word based interfaces
...
simplifing ready for PX4 flash logging
2013-03-01 07:18:25 +11:00
Andrew Tridgell
c6b006cf5f
DataFlash: move log reading logic into common library
2013-01-15 14:03:51 +11:00
Andrew Tridgell
28a0ba6c4a
DataFlash: added block based dataflash writes
...
these are about 10x faster than the old writes
2013-01-12 17:21:04 +11:00
Pat Hickey
7b9b088261
DataFlash: AP_HAL port fixups
2012-12-20 14:51:37 +11:00
Pat Hickey
8ffec83b73
DataFlash: fixes to lib include and make the test smaller
2012-12-20 14:51:22 +11:00
uncrustify
2e97fd3e9f
uncrustify libraries/DataFlash/DataFlash.cpp
2012-08-21 19:19:52 -07:00
rmackay9
2b24e422de
DataFlash: revert delay callbacks to use "unsigned long"
2012-08-18 20:28:31 +09:00
rmackay9
20cb2e56a0
DataFlash: change "unsigned long" to "uint32_t" in callback functions
2012-08-18 19:22:14 +09:00
rmackay9
94552b57a7
DataFlash: replaced "int" with "int16_t"
2012-08-18 18:31:20 +09:00
Andrew Tridgell
e171720608
DataFlash: fixed SITL build
2012-08-17 16:27:19 +10:00
Jason Short
3ca57ac105
DataFlash : Removed Chip Erase - relying on Block erase only
2012-08-15 21:04:24 -07:00
Craig Elder
6d3fdfc03a
DataFlash: The current method for checking if chip erase worked is producing false positives. We are forcing the block erase until we have a deterministic test method.
2012-07-09 15:23:35 -07:00
Andrew Tridgell
dd24330645
DataFlash: fallback to BlockErase if ChipErase fails
...
The errata on the APM2 dataflash chip says that ChipErase may not work
on some chips
2012-07-04 12:42:46 +10:00
Andrew Tridgell
fc73fd6531
DataFlash: use ChipErase() instead of PageErase() on all pages
...
This makes the DataFlash erase much faster (about 6 seconds instead of
about 60 seconds).
We need to test and ensure the behaviour is equivalent apart from the
speed
2012-05-22 19:29:02 -07:00
Andrew Tridgell
5e4f66e525
DataFlash: moved high level logging logic to library
...
this moves out all the high level logic from ArduPlane/ArduCopter to
the library. It also adds a "config page", as the last page in the
flash. This is used to check if the flash needs erasing. We only erase
now if the DF_LOGGING_FORMAT has changed.
This patch also adds a public CardInserted() method, which is used to
disable logging on APM2 if a dataflash card is not inserted
2011-12-28 16:00:48 +11:00
Andrew Tridgell
637d4675e1
added in DataFlash.cpp
...
forgot this ....
2011-12-26 19:34:06 +11:00
Pat Hickey
82e7551c90
purple: rework DataFlash to separate purple and APM1 hardware support
...
the purple support is still a work in progress, but the APM1 support
should be fine
2011-11-25 20:00:16 -08:00