Andrew Tridgell
4ce2555a65
DataFlash: don't try to create a directory that exists
...
this is an attempt to avoid microSD card corruption. The most common
corruption is two 'logs' directories, which may indicate an issue with
trying to create it a 2nd time.
11 years ago
Andrew Tridgell
513f4074ce
DataFlash: fixed dual sensor dataflash logging
11 years ago
Andrew Tridgell
08658909ad
DataFlash: log both IMU packets at once
11 years ago
Andrew Tridgell
a6b3d4217c
DataFlash: fixes for INS API change
11 years ago
Andrew Tridgell
eb883fbb0c
DataFlash: added Log_Write_IMU2() for logging 2nd INS sensors
11 years ago
Randy Mackay
ef2597a626
DataFlash: rename Log_Write_SERVO to Log_Write_RCOU
11 years ago
Andrew Tridgell
825b360fb0
DataFlash: added RCIN and SRVO log methods
11 years ago
Andrew Tridgell
0a2f2619de
DataFlash: fixed SITL dataflash logging
...
block numbers are 1 based
11 years ago
Andrew Tridgell
3262022195
DataFlash: print FMT messages for wrapped logs
...
this ensures we have FMT messages in every log, even if the log was
wrapped and the FMT messages were overwritten
11 years ago
Andrew Tridgell
900ea5dde0
DataFlash: make the SITL dataflash log 4x larger
11 years ago
Andrew Tridgell
1fb636d57f
DataFlash: added APM time and GPS velz to logged GPS messages
11 years ago
Andrew Tridgell
5e915fbde3
DataFlash: added timestamp to IMU and VelZ to GPS logging
...
both are very useful for analysis
11 years ago
Andrew Tridgell
4e82a8e1d4
DataFlash: use const ins reference
...
save some pointer dereferences
11 years ago
Andrew Tridgell
6b2222c32e
DataFlash: show timestamps on flash logs
11 years ago
Andrew Tridgell
d7a9888e26
DataFlash: updates for new GPS API
11 years ago
Andrew Tridgell
2422b94292
DataFlash: prevent valgrind errors from Empty driver
12 years ago
Andrew Tridgell
99a8ba4634
DataFlash: fixed display of last page of flash logs
12 years ago
Andrew Tridgell
89f121ea77
DataFlash: wait for blocks to finish writing to flash on log read
12 years ago
Andrew Tridgell
a86bb15a05
DataFlash: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
19e9c95983
DataFlash: use new scheduler API
12 years ago
Andrew Tridgell
49d3d624d7
DataFlash: enabled DataFlash_File for Linux
12 years ago
Andrew Tridgell
7de47931a8
DataFlash: use %f not %.6f
12 years ago
Randy Mackay
4b18c670e3
DataFlash: explicitly print floats to 6 dec places
...
C++ default is to print 6 decimal places but nuttx displays none by
default
12 years ago
Andrew Tridgell
645eb711cb
DataFlash: changed to AP_Vehicle.h
12 years ago
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Andrew Tridgell
b57af23933
DataFlash: fixed example build
12 years ago
Andrew Tridgell
dd747505c5
DataFlash: report when DataFlash write fails
12 years ago
Andrew Tridgell
4662858077
DataFlash: we don't need AP_AHRS.h
12 years ago
Andrew Tridgell
2874ec67c7
DataFlash: slight efficiency improvement
...
fixes issue #314
thanks Dongfang!
12 years ago
Andrew Tridgell
032cc513ca
DataFlash: fixed example build
12 years ago
Andrew Tridgell
469736e6bc
DataFlash: changes for GPS field changes
12 years ago
Andrew Tridgell
411e940342
DataFlash: prevent the dataflash erase problem
...
only allow writes to dataflash block devices once StartNewLog() has
been called
12 years ago
Andrew Tridgell
095505129c
DataFlash: hopefully fixed cause of frequent dataflash erase
...
Wait for 0.1s after erase and before we start writing parameters to
the log
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
12 years ago
Andrew Tridgell
7fdf1b6f78
DataFlash: fixed example build
12 years ago
Andrew Tridgell
0242d50ad4
DataFlash: added Log_Write_Message()
...
useful for logging general messages
12 years ago
Andrew Tridgell
709a277c7f
DataFlash: chamged FMT message to include labels
...
this makes it easier for MP to parse and display
12 years ago
Andrew Tridgell
9ef34943af
DataFlash: change log extension to *.bin
12 years ago
Andrew Tridgell
844e1b9ef9
DataFlash: added support for printing flight mode as a string
...
makes analysing logs easier.
Pair-Programmed-With: Randy
12 years ago
Andrew Tridgell
b5ae588341
DataFlash_File: fixed creation of 0.log
12 years ago
Andrew Tridgell
735d60c493
DataFlash: convert example sketch to new API
12 years ago
Andrew Tridgell
62f190ed15
DataFlash: simplify code now that copter is converted
...
no longer need as many public functions
12 years ago
Andrew Tridgell
cf0c8331c2
DataFlash: use print_latlon()
12 years ago
Andrew Tridgell
c29d870497
DataFlash: dump the format of logs at the start of the log
12 years ago
Andrew Tridgell
916e8d0992
DataFlash: new dataflash logging system
...
this allows us to remove the display functions in the vehicle code,
and also allows us to store the format of a log file in the log. It
also stores the parameters used in a flight, rather than the
parameters set at the time the log is dumped
12 years ago
Andrew Tridgell
da5a5ea368
DataFlash: added file based 'dataflash' logging
12 years ago
Andrew Tridgell
310a5a6be1
DataFlash: don't try to write if no card inserted
12 years ago
Andrew Tridgell
c1c967f3bf
DataFlash: fixed test sketch build and run
12 years ago
Andrew Tridgell
a7541e9ad3
DataFlash: report log number when starting a new log
...
helps with test sketch
12 years ago
Andrew Tridgell
ba8d830754
DataFlash: start to fix example build
12 years ago
Andrew Tridgell
987cdaf3e1
DataFlash: make it safe to do DataFlash logging from timers
...
this uses a non-blocking semaphore take if we are in a timer
process. Useful for logging failsafe events
12 years ago