Andrew Tridgell
6252f97df4
AP_Logger: prevent log erase from triggering watchdog
...
# Conflicts:
# libraries/DataFlash/DataFlash_File.cpp
2019-04-20 14:16:22 +10:00
Andrew Tridgell
b6285547c3
AP_Logger: force logging on an armed watchdog reset
...
and don't clear sdcard space
2019-04-20 14:16:22 +10:00
Andrew Tridgell
4e66449b52
AP_Logger: handle long delays in opening log files
2019-04-20 13:55:37 +10:00
Andrew Tridgell
1240b79cc8
DataFlash: allow startup with no microSD
...
this allows logging to work with insert after boot
2018-12-31 08:15:14 +11:00
Randy Mackay
bd96fe6f33
DataFlash: log rangefinder status in RFND msg
2018-11-15 17:20:37 +11:00
Peter Barker
c16a810e89
DataFlash: add sanity checks around EraseAll
2018-11-10 14:04:01 +11:00
Peter Barker
50a53ae28a
DataFlash: force messagewriters to completion
...
Setting a dataflash-file buffer size of less than or equal to 2kiB would
cause the startup-messagewriter to never push any messages other than
FMT out to the logs.
This is a combination of the return values of
critical_message_reserved_space and
non_messagewriter_message_reserved_space
This patch forces the startup messages out to the logs by ignoring the
space constraints every 100ms
2018-08-16 17:41:47 +10:00
Andrew Tridgell
d183f19cad
DataFlash: removed "no io thread heartbeat" msg
2018-08-15 09:52:30 +10:00
Peter Barker
4e0c6b873f
DataFlash: use compass singleton for logging
2018-07-04 20:11:27 +01:00
Peter Barker
fc378eeae1
DataFlash: move log-transfer state variables into enumerated variable
2018-07-02 10:46:52 +10:00
Peter Barker
493f958eb2
DataFlash: remove unused ReadBlock method
2018-07-02 09:00:51 +10:00
Alexander Malishev
932cc4bb69
DataFlash: allow HAL to specify dataflash buffer sizes
2018-06-25 17:43:20 +10:00
Alexander Malishev
eb1ae22bb1
DataFlash: fixed inconsistent state after interrupted log download
2018-06-20 09:03:27 +10:00
Peter Barker
611dcb694b
DataFlash: write CHIBIOS_GIT_VERSION to opened log file
...
DataFlash: use AP_FWVersion singleton
2018-06-18 19:10:37 +01:00
Peter Barker
beb2147191
DataFlash: use #define instead of constant 90 for data length
2018-06-18 13:50:18 +01:00
Michael du Breuil
fba185cefb
DataFlash: Fix GPS units
2018-06-18 13:34:16 +01:00
Andrew Tridgell
1283b92cb7
DataFlash: fix for new AP_RTC API
2018-06-15 08:01:22 +10:00
Michael du Breuil
676f60333a
DataFlash: Fix power units
2018-06-14 17:50:27 +10:00
Andrew Tridgell
777b4c8cfe
DataFlash: avoid stat of current log file
...
this avoids getting invalid data base for stat() for the current log
file.
It also only gives up writing to a log file if writes fail for 2
seconds. This avoids a temporary write failure causing the log to be
closed (that can happen on ChibiOS with directory listing while writing)
2018-06-14 14:55:41 +10:00
Michael du Breuil
c4a66349ef
DataFlash: Remove suspend timer calls, restirct flush() to replay
2018-06-06 07:16:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
594911f0b4
DataFlash: replace /* fall through */ with FALLTHROUGH;
2018-05-25 08:41:07 +09:00
Peter Barker
63b0883b38
DataFlash: correct structures debug method
2018-05-23 19:12:15 +09:00
Peter Barker
1844ccdab8
DataFlash: correct labels for NKT1 and NKT2 messages
2018-05-23 19:12:15 +09:00
Peter Barker
b36f1c558d
DataFlash: use const char * rather than fixed array lengths in LogStructure
...
Previously tridge found that using const char * here meant that the
data segment (and thus RAM usage) would increase.
This doesn't seem to be a problem now.
2018-05-23 17:35:17 +10:00
Francisco Ferreira
221ba177c5
DataFlash: remove Qualcomm board support
2018-05-17 09:57:20 +10:00
night-ghost
ecafe263a6
HAL_F4Light: abort logging in case of filesystem errors
2018-05-16 18:55:29 +10:00
Michael du Breuil
7e4972a061
DataFlash: Fix a false reporting of dead IO thread when millis() wraps
2018-05-14 10:11:32 +09:00
Michael du Breuil
703c7fb4b7
DataFlash: Remove unneeded inits and newlines
2018-05-14 10:10:38 +09:00
Patrick José Pereira
04a4001e02
DataFlash: Remove unused variable
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:47:11 +10:00
Michael du Breuil
d819690426
DataFlash: Remove redundant state from MAVLink backend
2018-05-08 11:48:09 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
bce10f48af
Dataflash: Correct the DF_MAV_STATS time units
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
5de3382ab4
Dataflash: Replace ppm (pulses per minute) with PWM in the RC channels
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
4fd37d17f0
Dataflash: Fix AHR2.Alt multiplier
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
babef0def1
Dataflash: Fix some battery units and multipliers
2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas
a9ca471907
Dataflash: correct the multiplier factor of POS *Alt data
2018-05-08 10:38:40 +09:00
Peter Barker
5bf2fb186c
DataFlash: parameterise dataflash-over-mavlink cachesize
2018-05-08 09:36:01 +10:00
Lucas De Marchi
904888fba7
DataFlash: Linux boards never use /fs
2018-05-04 11:42:55 -07:00
night-ghost
1cfdfe55a1
DataFlash: fix HAL_F4light compilation errors
2018-04-30 08:32:58 +10:00
night-ghost
ccd90e19a1
fixed DataFlash_File_sd.cpp in case of SD error
2018-04-27 22:14:59 +10:00
Peter Barker
64a8de42da
DataFlash: use singleton for getting hold of gps object
2018-04-18 13:50:55 +09:00
Peter Barker
63792edc5f
DataFlash: increase debug in SITL
2018-04-17 17:16:52 +09:00
Andrew Tridgell
cf4ca29dbb
DataFlash: added logging of safety state in POWR message
2018-04-14 06:22:07 +10:00
Michael du Breuil
ae193f28ae
DataFlash: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Andrew Tridgell
2b49a3ab7b
DataFlash: fix up logging on ChibiOS after change for F4Light
2018-04-11 10:13:08 +10:00
night-ghost
2a0f624d5a
DataFlash: fixed F4Light DataFlash logging
2018-04-11 10:13:08 +10:00
Peter Barker
8027883734
DataFlash: remove vestiges of CLI functions
2018-04-10 10:27:08 +09:00
Andrew Tridgell
d777da970b
AP_Baro: fixed multi-baro logging
2018-04-09 11:39:20 -07:00
Andrew Tridgell
3b4d1d5d46
DataFlash: enabled POWR log msg on ChibiOS
2018-04-09 15:32:04 +10:00
Andrew Tridgell
061277040b
DataFlash: updated ESC logging format
...
support higher voltages and higher RPMs
added total current logging
2018-04-07 09:10:29 +10:00
Peter Barker
3d84dfcc2e
DataFlash: remove unused ins error count logging
2018-04-04 14:21:20 +01:00