Peter Barker
8717f1f27e
DataFlash: protect write fd with semaphore
...
If the sensor threads are using WriteBlock they may pass the _write_fd
== -1 check but then have that set to -1 by the main thread
This is a backport of 3af5be76aa
2017-11-07 16:16:22 +09:00
Peter Barker
7ea991c724
DataFlash: file not being initialised means logging is failed
2017-09-12 14:26:27 +09:00
Randy Mackay
179ebc5162
DataFlash: removed unused optFlowEnabled from Log_Write_EKF
2017-09-11 08:42:29 +09:00
Randy Mackay
f8b5714ced
DataFlash: protect against large testRatio from EKF
...
This should be resolved in the EKF but for now this stops the floating point exception
2017-06-15 10:33:45 +09:00
Peter Barker
bf6e7ba6ec
DataFlash: correct dataflash examples
2017-06-15 10:29:15 +09:00
Peter Barker
268d6523e9
DataFlash: check all backends for sensor health
2017-06-15 10:29:05 +09:00
Peter Barker
cc7d75ea5d
DataFlash: StartUnstartedLogging replaces logging_started/start_logging
2017-06-15 10:28:49 +09:00
Peter Barker
c9a4a6d772
DataFlash: eliminate calls to manipulate _writes_enabled
2017-06-15 10:28:23 +09:00
Peter Barker
9464bc6173
DataFlash: create a WritesOK method for WritePrioritisedBlock
2017-06-15 10:28:11 +09:00
Peter Barker
ac1484f60e
DataFlash: clear format sent mask when backend starts new log
2017-05-01 19:16:47 +10:00
Andrew Tridgell
0a83281a29
DataFlash: added logging of actual sensor rates
2017-05-01 15:06:46 +10:00
priseborough
8ead9d6b19
DataFlash: Add logging of average EKF time step min/max
2017-04-29 11:03:44 +10:00
Andrew Tridgell
0ccb3a7688
DataFlash: added logging of timing statistics
2017-04-28 17:19:39 +10:00
Peter Barker
608d6d0a5f
DataFlash: implement a printf-like Log_Write_MessageF method
2017-04-23 09:08:30 +10:00
karthik.desai
28a6ca7d75
Dataflash: add AP_Beacon logging
2017-04-22 10:54:59 +09:00
Michael du Breuil
3b6d348241
DataFlash: Log battery temperature and cell voltages
2017-04-19 14:17:24 +01:00
Eugene Shamaev
a144e79a50
DataFlash: logging of AOA and SSA
2017-04-19 20:48:42 +10:00
Peter Barker
9324d8e251
Dataflash: emit io thread warnings much less frequently
2017-04-19 12:33:18 +09:00
Randy Mackay
0644314499
DataFlash: add visual odometry sensor logging
2017-04-19 11:04:40 +09:00
priseborough
d2c89443df
DataFlash: add logging for EKF body frame odometry fusion
2017-04-19 11:04:40 +09:00
Michael du Breuil
994790be0b
Dataflash: Clamp GPS accuracy values
2017-04-17 11:37:22 +01:00
Andrew Tridgell
e440d22003
DataFlash: log DCM and SITL quaternion too
2017-04-16 14:01:36 +10:00
Andrew Tridgell
732915d417
DataFlash: log quaternions for EKF
...
useful for tailsitters
2017-04-16 14:01:36 +10:00
Pierre Kancir
49c9e3c768
Dataflash: example fix travis warning
...
missing function declaration
implicit cast
some style fix
2017-04-13 19:56:16 +01:00
Peter Barker
8bb051af44
DataFlash: DataFlash_MAVLink: add comment concerning locking
2017-04-12 13:42:46 +09:00
Peter Barker
ac34405272
DataFlash: DataFlash_MAVLink: avoid races by taking semaphore
2017-04-12 13:42:46 +09:00
Peter Barker
9e436ec35c
DataFlash: correct visibility
2017-04-12 13:42:46 +09:00
Peter Barker
25930e5bf3
DataFlash: remove unused DataFlash_MAVLink method
2017-04-12 13:42:46 +09:00
Peter Barker
feb30b3b9b
DataFlash: add mutex for WritePrioritisedBlock
...
Multiple threads attempt to write blocks; don't let
them interfere
2017-04-06 22:09:18 +10:00
Peter Barker
2fa97c9906
DataFlash: improve privacy aspects of instance variables
2017-04-06 22:09:18 +10:00
Peter Barker
3defe584e7
DataFlash: extract common labels and formats into defines
2017-04-05 19:16:21 +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
d3b442d8b6
DataFlash_MAVLink: remove dead comments
2017-03-31 15:02:14 +01:00
Peter Barker
d8c475ad04
DataFlash: use override keyword on many methods
2017-03-31 15:02:14 +01:00
Andrew Tridgell
6c31a6982b
DataFlash: added Log_Write_AttitudeView
2017-03-31 11:30:44 +11:00
Peter Barker
4cb43b1c27
DataFlash: correct repeated FMT logging bug
2017-03-30 20:19:15 +11:00
Francisco Ferreira
ec5bbbd2d0
DataFlash: fix BAR2 and BAR3 message format after baro log struct changed
2017-03-30 00:42:10 +01:00
Michael du Breuil
16433cbf7a
DataFlash: Log the ground temperature used for baro calculations
2017-03-28 11:25:46 +11:00
Randy Mackay
2f21e3b40c
DataFlash: rename GPS3/GPA3 to GPSB/GPAB
2017-03-13 11:31:51 +11:00
priseborough
a82b6929f1
DataFlash: Allow logging of blended GPS instance
...
Add GPS and GPA reporting for blended solution
Allow GPS library to manage reporting for the blended solution
2017-03-13 11:31:51 +11:00
Michael du Breuil
ed359a5833
Dataflash: Add landing PID logging
2017-03-02 12:38:59 +11:00
Randy Mackay
2b43c6aeed
DataFlash: log range finder orientation
2017-02-27 15:18:40 +09:00
Peter Barker
057819ccef
DataFlash: zero-pad the number in the log filename
...
This helps with collating when reviewing log files
Closes #2212
2017-02-15 07:23:49 +11:00
Peter Barker
58d74230d5
DataFlash: correct error detection for asprintf
2017-02-15 07:23:49 +11:00
Michael du Breuil
31f1545223
DataFlash: Update for AHRS NED changes
...
Report both origin and home NED altitudes to the log file
2017-02-13 09:23:14 +11:00
Lucas De Marchi
dd1646aefc
DataFlash: remove dangling semicolon
2017-02-12 01:22:35 +00:00
priseborough
a02a84560f
DataFlash: log 3-state range beacon estimator states for EKF3
2017-01-27 16:57:42 +09:00
murata
1b2ea27a68
DataFlash: Unify from print or println to printf.
2017-01-27 18:20:22 +11:00
Andrew Tridgell
0e14992b34
DataFlash: hide direct EK2/EK3 logging
...
should call Log_Write_EKF and let it choose the types
2016-12-19 08:07:14 +11:00