Commit Graph

634 Commits

Author SHA1 Message Date
Peter Barker
30d813a83e DataFlash: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
night-ghost
0d8c71de71 DataFlash: added F4Light HAL support 2018-02-10 09:14:41 +11:00
Holger Steinhaus
d1a37a60b7 DataFlash: log consumed energy (Wh) 2018-02-06 20:00:16 -07:00
Michael du Breuil
725f1a2f2b DataFlash: Use battery singleton 2018-02-06 00:11:32 +00:00
LukeMike
3dcaf83eaa VRBRAIN / DataFlash: some update for new VR Brain 5.2E (EEPROM version) 2018-02-05 08:26:49 +11:00
LukeMike
bf6e57e7a4 VRBRAIN / DataFlash: added writebuf_chunk for VR Brain 5.4 2018-02-05 08:26:49 +11:00
Peter Barker
8e8b0dcc06 DataFlash: add ? and - to multiplier table
This allows a consumer to expect referential integrity for the
multipliers
2018-02-02 09:15:59 +09:00
Andrew Tridgell
38a36a070f DataFlash: removed some special cases for ChibiOS 2018-01-20 17:40:07 +11:00
Andrew Tridgell
c9deabc283 DataFlash: use calloc in MAVLink backend 2018-01-17 11:22:05 +11:00
Andrew Tridgell
b6f3db44d8 DataFlash: log health and primary for airspeed 2018-01-16 07:14:20 +11:00
Andrew Tridgell
bbcda11afe DataFlash: log both airspeed sensors 2018-01-16 07:14:20 +11:00
Andrew Tridgell
43a6ed4099 DataFlash: support ChibiOS FATFS implementation 2018-01-15 11:46:02 +11:00
Peter Barker
18d7d3f038 DataFlash: add missing FALLTHROUGH declarations 2018-01-11 13:23:06 +09:00
Peter Barker
404e395880 DataFlash: avoid declarations of SITL-only functions 2018-01-09 23:21:58 +00:00
Peter Barker
fd0aa3c659 DataFlash: add validation for Log_Write parameters 2018-01-09 23:21:58 +00:00
Peter Barker
5070628230 DataFlash: factor out validate_structure 2018-01-09 23:21:58 +00:00
Andrew Tridgell
fd14dedcff DataFlash: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Peter Barker
d68ba874d0 DataFlash: correct examples with units 2017-11-23 10:40:30 +11:00
Peter Barker
b19f981c07 DataFlash: validate units and multipliers 2017-11-23 10:40:30 +11:00
Peter Barker
9896e23c36 DataFlash: Log_Write() fills unknown units with '?' 2017-11-23 10:40:30 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
2e94673e4f DataFlash: keep the unit names consistent with Tools/autotest/param_metadata/param.py:33 2017-11-23 10:40:30 +11:00
Peter Barker
a5442fb293 DataFlash: support for units on fields 2017-11-23 10:40:30 +11:00
Peter Barker
b97ee33438 DataFlash: AP_Camera functions use GPS singleton 2017-11-16 15:28:37 +00:00
Andrew Tridgell
274e441292 DataFlash: fixed build for aerofc-v1 2017-11-04 16:53:29 +11:00
Lucas De Marchi
3272ae2c04 DataFlash: make log directory macro mandatory
Everybody defines the macro (or should be defining). Let smaller users
that don't have a filesystem to rather protect it with HAL_OS_POSIX_IO,
which also allow them to save more flash space.
2017-10-30 16:57:37 -07:00
Andrew Tridgell
fd86b2bbb9 DataFlash: log critical messages while disarmed
this logs critical messages while disarmed if we have logged any
messages while armed. This fixes issue #7010 where log files show the
incorrect mode if the log includes any portions where the user
disarmed. It makes analysing users logs very difficult. It also
affects parameters, so we don't always know the true parameter values
in logs from users.
2017-10-29 19:20:57 +11:00
Peter Barker
191e457230 DataFlash: include sample count in ISBH 2017-10-27 16:33:45 +11:00
Peter Barker
d950e78079 DataFlash: Log_ISBH and Log_ISBD, to log batches of IMU data 2017-10-27 16:33:45 +11:00
Peter Barker
2f9a8ded55 DataFlash: add new int16_t[32] type, designator 'a' 2017-10-27 16:33:45 +11:00
Michael du Breuil
2909f77235 DataFlash: Remove PIDL and a DSTL for a deepstall specific message 2017-10-17 14:37:11 -07:00
Peter Barker
6536bf39b3 DataFlash: add DataFlash_AllTypes sample output 2017-10-10 16:51:19 +11:00
Peter Barker
466d6e619e DataFlash: correct nanf log output 2017-10-10 16:51:19 +11:00
Michael du Breuil
8719c2903a DataFlash: Log U-Blox config progress 2017-10-06 12:53:32 +01:00
Peter Barker
fa95edc260 DataFlash: factor out a Log_Write_IMUDT_instance 2017-10-06 01:42:01 +01:00
Peter Barker
06a2e05be5 DataFlash: log cell voltages with correct packet type 2017-10-06 01:42:01 +01:00
Peter Barker
79ba2b357f DataFlash: factor out a Log_Write_Current_instance 2017-10-06 01:42:01 +01:00
Peter Barker
8d3267a731 DataFlash: factor out a Log_Write_Compass_instance 2017-10-06 01:42:01 +01:00
Peter Barker
a7063393b4 DataFlash: factor out a Log_Write_IMU_instance 2017-10-06 01:42:01 +01:00
Peter Barker
d7638389ce DataFlash: factor out a Log_Write_Baro_instance 2017-09-29 11:16:44 +01:00
Lucas De Marchi
53c82b4aaf global: use static method to construct DataFlash_Class 2017-09-26 03:01:21 +01:00
Lucas De Marchi
a25320d522 DataFlash: add static create method 2017-09-26 03:01:21 +01:00
Lucas De Marchi
9e7bda83bf DataFlash: add temporary workaround for macro usage
Make DataFlash correctly save the git version. We should think about a
better solution, like it was done on GCSMavlink, but this is the minimal
change to make it possible to move includes of version.h to their
respective users.
2017-09-23 21:37:45 -07:00
Peter Barker
3af5be76aa 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
2017-09-20 11:33:07 +01:00
Peter Barker
d1b47e863d DataFlash: resolve race conditions with IMU logging thread 2017-09-19 09:40:11 +10:00
Michael du Breuil
cf02204e6c Dataflash: Log GPS delta times
This is particularly useful for assessing if a GPS actually is dropping out in a users log, or if the log is just dropping messages
2017-09-13 13:36:40 +01:00
Peter Barker
4263c1a90c DataFlash: file not being initialised means logging is failed 2017-09-11 17:42:38 +01:00
squilter
f37d742160 DataFlash: support SafeRTL log messages 2017-09-09 14:05:41 +09:00
Peter Barker
6ad3541a24 DataFlash: clean up public interface 2017-09-01 10:58:07 +01:00
Peter Barker
f32651a38c DataFlash: include version for AP_FWVersion 2017-08-30 15:54:46 +01:00
Peter Barker
9783c0c3ba DataFlash: log dataflash-file statistics periodically 2017-08-28 22:05:44 +01:00