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
Peter Barker
334af1ecd7
DataFlash: base class method for resetting state on log open
9 years ago
Peter Barker
eea2d5dcb5
DataFlash_File: avoid integer wrap when checking minimum time
9 years ago
Lucas De Marchi
fea084a596
Global: use ap_version.h
...
This header is used by waf to contain the generated version macros,
particularly using the git hash. For waf it's better to be in a separate
header since it then can keep track of changes on it a trigger
recompilation.
For the make build system, a dummy ap_version.h file has been added in
the missing/ folder so both implementations can co-exist.
9 years ago
Andrew Tridgell
bcefb45e0a
DataFlash: added DelaT to delta-angle logs
9 years ago
Randy Mackay
39560f9af8
DataFlash: remove unused num_format_types and _structures
...
resolves compiler warning
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
Andrew Tridgell
075dd49afe
DataFlash: added Log_Write_Rate()
...
needed for quadplane as well as copter so should be in common code
9 years ago
Lucas De Marchi
ec36e06c63
DataFlash: replace header guard with pragma once
9 years ago
Will Sackfield
6f43b7121c
DataFlash: Cast msg to uint8
...
* Clang requires this explicit cast
9 years ago
Peter Barker
4548466701
DataFlash: correct use of #defines
...
HIL_BOARD_AVR_SITL was renamed
Move use of define to after include where it is defined
9 years ago
Andrew Tridgell
6f59c4ae53
DataFlash: added GPSAlt to CAM and TRIG log messages
...
useful for people with RTK GPS
9 years ago
Jaime Machuca
1001e53140
DataFlash: added TRIGGER message to Logs
...
DataFlash.h: added support for Trigger MSG, supressed TAB separations
and file reorganized LogFile.cpp: included Trigger packet
9 years ago
Jonathan Challinger
02d8b28fa3
DataFlash: add GMB1, GMB2, GMB3
9 years ago
Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
9 years ago
Gustavo Jose de Sousa
3d22490397
waf: examples: use methods from bld instead of ardupilotwaf
9 years ago
Gustavo Jose de Sousa
d281067bcc
waf: make example binaries be placed in 'examples' dir
...
This commit makes examples' wscripts use ardupilotwaf.example() instead of
ardupilot.program().
9 years ago
Peter Barker
ff8008d81a
DataFlash: remove unused callbacks, unimplemented functions
...
Closes #3269
9 years ago
Jonathan Challinger
b85631bec3
DataFlash: fix example build
9 years ago
Andrew Tridgell
fe8070bd51
DataFlash: move lock to protect just buffer IO
9 years ago
Lucas De Marchi
a096703b06
Global: don't link with AP_Progmem
...
AP_Progmem is not used anymore.
9 years ago
Lucas De Marchi
5d07e5bdbf
DataFlash: stop using Progmem.h
9 years ago
Andrew Tridgell
b967140572
DataFlash: enable minimal file mode
...
This adds a "minimal" dataflash mode with a board specific macro. The
QURT port uses this to avoid problematic system calls that are buggy
in the QURT RTOS
With some pending updates to QURT we may be able to remove some (or
all) of this
9 years ago
Peter Barker
2f1297f30c
DataFlash_File: Check return values of lseek
9 years ago
Peter Barker
ce84ba049f
DataFlash_File: protect against fopen failing
9 years ago
Peter Barker
15265a45ed
DataFlash_File: check fname before using it
9 years ago
Andrew Tridgell
025e4edd17
DataFlash: fixed warning
9 years ago
Andrew Tridgell
02d7867d79
DataFlash: added locking for multi-thread logging support
9 years ago
Peter Barker
326e68544c
DataFlash: remove unused functions
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
Tom Pittenger
4e3864049a
DataFlash: compile warning - float to double promotion
9 years ago
Gustavo Jose de Sousa
3035fb282d
DataFlash: fix example
9 years ago
Lucas De Marchi
f584543ea1
DataFlash: remove unused AP_ADC_AnalogSource
9 years ago
Peter Barker
4f1a7c6427
DataFlash: remove use of AddLogFormats
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
Peter Barker
121967d1b1
DataFlash: factor log structures into LogStructures.h (no functional change
9 years ago
Caio Marcelo de Oliveira Filho
6e7b73610d
waf: add waf support
9 years ago
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
9 years ago
Caio Marcelo de Oliveira Filho
578b31e7f8
AP_DataFlash: example uses millis/micros/panic functions
9 years ago
Caio Marcelo de Oliveira Filho
753956bd77
AP_Dataflash: use millis/micros/panic functions
9 years ago
Andrew Tridgell
8f4ce7f20b
build: removed all nocore.inoflag files
...
these were APM2 specific
9 years ago
Peter Barker
fc05ad81eb
DataFlash_File: cache oldest log to avoid directory scans when downloading
9 years ago
Paul Riseborough
42b47acdfc
DataFlash: Fix logging error for EKF second instance
9 years ago
Paul Riseborough
88cc1e2ffe
DataFlash: Publish the EKF2 magnetometer selection index
9 years ago
Paul Riseborough
138315af21
DataFlash: Add logging for second NKF instance
9 years ago
Paul Riseborough
5b1d6f2aa2
DataFlash: accomodate change in EKF2 interface
9 years ago