Peter Barker
110d48e6fa
AP_Logger: add events for changing EKF data source set changes
2021-08-11 19:28:28 +09:00
Peter Hall
2a58e7097f
AP_Logger: LogStructure: add AIS
2021-08-10 08:11:18 +09:00
bugobliterator
7832f81a84
AP_Logger: change class name from SITL::SITL to SITL::SIM
2021-08-05 07:25:31 +10:00
Andrew Tridgell
d0969a4476
AP_Logger: added RATEMAX for mavlink and block backends
2021-08-03 10:23:36 +10:00
Andrew Tridgell
4dfe750d71
AP_Logger: handle instance types in rate limiting
2021-08-03 10:23:36 +10:00
Andrew Tridgell
575c76bdd0
AP_Logger: pack LogStructure to save some flash space
...
prevent padding between records
2021-08-03 10:23:36 +10:00
Andrew Tridgell
662f7a0191
AP_Logger: added LOG_FILE_RATEMAX parameter
...
this allows for a global "maximum rate in Hz for streaming messages"
setting
2021-08-03 10:23:36 +10:00
Peter Barker
b1bd699a73
AP_Logger: rename for AHRS restructuring
2021-07-21 21:01:39 +10:00
Hwurzburg
df0c9a42cb
AP_Logger: Add Link Quality reporting to RC protocols
2021-07-16 13:27:38 +10:00
Siddharth Purohit
503a676e44
AP_Logger: omit code that breaks build for herepro
2021-07-02 08:50:16 +10:00
Andrew Tridgell
421faa0ada
AP_Logger: fixed log creation on forced arm
...
when we force arm we need to ask the IO thread to create the log, not
create it ourselves
2021-07-01 15:30:11 +10:00
Peter Barker
dd8af14e57
AP_Logger: remove @Values from param metadata where @Bitmask exists
2021-06-23 18:37:34 +10:00
Iampete1
188cf71ee2
AP_Logger: add Wh units
2021-06-22 09:19:40 +10:00
Andrew Tridgell
ece3cf5241
AP_Logging: update EKF while waiting for log open
...
this prevents the EKF getting unhappy when we arm
2021-06-21 20:15:17 +10:00
Peter Barker
151fe6facf
AP_Logger: rearrange PrepForArming stuff
2021-06-15 16:42:02 +10:00
Andrew Tridgell
806fdd9389
AP_Logger: moved log file open to logger thread
...
this prevents a watchdog if the filesystem takes a long time to
respond to a file open
2021-06-15 16:42:02 +10:00
Andrew Tridgell
1279772d92
AP_Logger: disallow log creation in main thread when armed
...
this fixes an issue where the sd card fails in flight and then
re-mounts. When that happens the logging backend can trigger a new log
open. That causes filesystem operations in the main thread while
flying. That can cause long delays or even a watchdog.
Thanks to Giacomo for noticing this on his flying wing
2021-06-09 15:08:28 +10:00
Peter Barker
b681dc940a
AP_Logger: add support for AP_Logger into AP_Periph
2021-06-08 09:57:55 +10:00
Andrew Tridgell
50e7c81f46
AP_Logger: removed perf counters
2021-06-07 14:29:27 +10:00
Peter Barker
00041737d2
AP_Logger: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED
2021-05-19 17:38:47 +10:00
Peter Barker
f30ad1d2dc
AP_Logger: log which RC channels are being overridden
2021-05-15 14:49:20 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
c323ee4f56
AP_Logger: improve unit names in comments.
...
added Ampere hours unit in LOG_ESC_MSG
log ESC volts, amps and consumption as floats
update ESC log file structures
consumption in mAh
Correct the current_tot unit,
motor_temp unit and error_rate unit in comments (<amilcar.lucas@iav.de>)
move ESC_Telem logging to the AP_ESC_Telem class (<amilcar.lucas@iav.de>)
correct log structure (<amilcar.lucas@iav.de>)
2021-05-12 17:01:11 +10:00
Andrew Tridgell
8fcb03350b
AP_Logger: minimal fix for allowing log listing while logging
...
this prevents loss of log data when listing logs on file backend
2021-05-01 19:21:48 +10:00
Josh Henderson
c8b8ff3380
AP_Logger: Privatize AC_Avoidance Logging
2021-05-01 19:21:17 +10:00
Josh Henderson
ac57950575
AP_Logger: move GYR & ACC log structs to AP_InertialSensor
2021-05-01 14:15:58 +10:00
Josh Henderson
859fc73ba3
AP_Logger: Privatize AP_InertialSensor Logging
2021-04-29 19:19:12 +10:00
Peter Barker
4362b16f50
AP_Logger: remove un-needed forward declarations
...
We moved the logging into the relevant library. Yay!
2021-04-23 11:44:16 +10:00
Peter Barker
13dc5bee25
AP_Logger: fix memory leak when finding last log
2021-04-15 19:33:15 +10:00
Andrew Tridgell
7a7ac0cd73
AP_Logger: raise log_io stack size
...
See
https://github.com/ArduPilot/ardupilot/issues/15916#issuecomment-819489618
2021-04-15 13:33:42 +10:00
Andrew Tridgell
f34e4be991
AP_Logger: re-enable ATRP logging msg
2021-04-15 06:57:16 +10:00
Andrew Tridgell
05d5fc2ecc
AP_Logger: added SRate logging to PIDs
2021-04-15 06:57:16 +10:00
Andrew Tridgell
99fe194980
AP_Logger: removed old ATRP log msg
2021-04-15 06:57:16 +10:00
Peter Barker
6fe58a807d
AP_Logger: move precision landing logging up into AC_PrecLand
2021-04-13 10:28:39 +10:00
Andrew Tridgell
c886fd7025
AP_Logger: make log file erase async
...
this prevents clagging up the main loop on a big erase. With an erase
of large enough files we could trigger a disarmed watchdog.
2021-04-06 10:40:40 +10:00
Leonard Hall
83b7c496b5
AP_Logger: support for position controller logging
2021-04-03 12:07:59 +09:00
Randy Mackay
d4f1eacbed
AP_Logger: use of AP_Proximity checks HAL_PROXIMITY_ENABLED
2021-03-26 16:22:46 +09:00
Josh Henderson
070ad226ce
AP_Logger: OABR correct altitude logging frame and specifier
2021-03-24 20:30:54 +09:00
Peter Barker
f261045a2d
AP_Logger: multiply IO thread timeout according to SITL speedup
...
Intended to solve issues we're now getting on CI where the IO thread is
blocking-on-write and the main thread is calling it dead.
2021-03-24 12:54:20 +11:00
Peter Barker
82a28e2a58
AP_Logger: do not log soon after file transfer unless we're armed
...
mavlink log reads fail randomly, and you end up with a very large number
of log files as we keep closing logs off and then discovering we should
be logging
2021-03-24 08:57:03 +11:00
Peter Barker
5e63ed908e
AP_Logger: loosen constraint on failing to log replay block
...
// things will almost certainly go sour. However, if we are not
// logging while disarmed then the EKF can be started and trying
// to log things even 'though the backends might be saying "no".
2021-03-18 19:38:43 +11:00
Rishabh
e09e9b1e6a
AP_Logger: Log raw and filtered distances from proximity lib
2021-03-08 16:33:20 +09:00
James O'Shannessy
8ca69c2e89
AP_Logger: Add support for fence floor events
2021-03-05 14:52:46 +11:00
Peter Barker
a17a8faf42
AP_Logger: move GSF logging from EKF files into GSF files
2021-02-23 12:36:33 +11:00
Peter Barker
1c4e1aab05
AP_Logger: move gps logging structures into AP_GPS
2021-02-17 11:30:01 +11:00
Randy Mackay
3ae8af6b21
AP_Logger: add PSCZ logging
...
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
includes const log_PSCZ declaration
also changed PSZ ThO to percentage
2021-02-09 19:33:52 +09:00
Josh Henderson
00e3bda2f5
AP_Logger: Privatize AP_VisualOdom Logging
2021-02-09 19:33:14 +09:00
Patrick José Pereira
18d8f19801
AP_Logger: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
11bf02c2c4
AP_Logger: correct spelling in metadata
2021-02-03 17:47:28 +11:00
Josh Henderson
c32dd4bb5d
AP_Logger: Privatize AP_Baro Logging
2021-02-02 17:55:27 +11:00
Josh Henderson
d142b3ba16
AP_Logger: Privatize AP_Camera Logging
2021-02-02 10:10:17 +11:00
Peter Barker
dbae56eb3a
AP_Logger: panic in SITL if we fail to log a Replay block
...
// failing to log a block means that when we go to replay the log
// things will almost certainly go sour.
2021-01-31 10:46:26 +11:00
Peter Barker
ade1c487d8
AP_Logger: remove default reason argument for Write_Mode
...
All callers now supply this
2021-01-22 17:27:26 +11:00
Josh Henderson
8e705a5eed
AP_Logger: move BAT & BCL logging functions to AP_BattMonitor
2021-01-12 17:43:55 +11:00
Josh Henderson
0ebbf0f74e
AP_Logger: move AP_AHRS functions out
2021-01-12 10:13:22 +11:00
Andrew Tridgell
dc57454ac5
AP_Logger: adjust stack sizes
2021-01-10 08:28:55 +11:00
Peter Barker
416dd98140
AP_Logger: check HAL_LOGGING_DATAFLASH only for definition
...
As the hwdefs only define the symbol, don't set it to a value...
2021-01-08 12:48:55 +11:00
Peter Barker
7d42f473fc
AP_Logger: allow each backend to be compiled out
2021-01-08 12:48:55 +11:00
Peter Barker
e8d24a1f68
AP_Logger: initialise logger instance variables in header
2021-01-07 10:42:13 +11:00
Peter Barker
80e8688888
AP_Logger: remove perf counters
2021-01-07 09:20:00 +11:00
Andy Piper
b3946a667c
AP_Logger: omnibusF4pro needs more stack for logging and logging needs to take precedence over ftp
2021-01-07 07:43:52 +11:00
chobits
b0fa5fadcd
AP_Logger: fix BCN multiplier
2021-01-06 21:48:32 +11:00
Peter Barker
ef0b860a48
AP_Logger: remove Prep and NeedPrep functions
...
These were only being called directly after Init(), so just tacked them
onto the end of those functions.
The checks in NeedPrep turned out to be mostly redundant.
2021-01-06 18:25:21 +11:00
Josh Henderson
1c49a0b44d
AP_Logger: only log Battery Status for active monitors
2021-01-06 18:23:15 +11:00
Andrew Tridgell
ce561ab249
AP_Logger: log active EKF type as ATT.AEKF
2021-01-05 21:13:12 +11:00
Peter Hall
b2e1d88da8
AP_Logger: add limit flag to PID logs
2021-01-05 10:27:28 +11:00
Josh Henderson
4a7f663cad
AP_Logger: README add multiplier descriptions
...
Add clarity to the multipliers and descriptions
2021-01-04 20:45:38 +11:00
Andy Piper
779c2a9e5f
AP_Logger: move logger IO to a separate thread
2021-01-02 22:30:08 +11:00
Andrew Tridgell
0ae9b28198
AP_Logger: added get_log_start_count()
...
used by UAVCAN to know if it should log CAN devices on log rotation
2021-01-01 17:30:14 +11:00
Andrew Tridgell
4fdf315760
AP_Logger: use null terminated strings
...
this prevents logging garbage for strings that are shorter than the
length specifier (eg. 'Z'). This assumes we will not want to log
binary data as strings
2021-01-01 17:30:14 +11:00
Andy Piper
5436784d38
AP_Logger: add ESC error rate
2020-12-30 19:14:16 +11:00
Andy Piper
048deeb43e
AP_Logger: check is_system_initialized() when determining liveness
2020-12-30 18:16:59 +11:00
Peter Barker
f84cb66bc6
AP_Logger: move log ids from EKF2 and EKF3 to the 'below 128' section'
2020-12-08 11:30:10 +11:00
Peter Barker
7ba03fe32d
AP_Logger: move EKF2 message ids into AP_NavEKF2
2020-12-08 11:30:10 +11:00
Peter Barker
346572c390
AP_Logger: move EKF2 logging structures into EKF2 LogStructure.h
2020-12-08 11:30:10 +11:00
Peter Barker
ea36a84b53
AP_Logger: move EK3 log message IDs into AP_NavEKF3 log structure
2020-12-03 19:22:26 +11:00
Peter Barker
f2b2998f29
AP_Logger: move EKF3 logging structures into EKF3 LogStructure.h
2020-12-03 19:22:26 +11:00
Peter Barker
64f4b078a6
AP_Logger: remove unused log_EKF* structures
2020-12-03 19:22:26 +11:00
Andy Piper
a6436851b4
AP_Logger: account for expected delays and boot time delays in block logger.
2020-11-25 18:17:34 +11:00
Peter Barker
42d9727f49
AP_Logger: correct documentation on ARSP message
2020-11-24 15:33:37 +11:00
Gone4Dirt
a2d2e85ba1
AP_Logger: Reinstate Watt unit
2020-11-24 12:54:52 +11:00
Peter Barker
786fd8a2f8
AP_Logger: add and use instance number to ARSP message
2020-11-24 12:19:45 +11:00
Peter Barker
d50e4d03f4
AP_Logger: remove time_us parameter to several sensor logging methods
...
These were used by the old Replay code to try to provide a frame of
sensor data by correlating the timestamps. That Replay code has been
removed.
2020-11-20 16:59:09 +11:00
Peter Barker
a12c2a6b87
AP_Logger: use instance numbers for logging GPS data
2020-11-20 09:45:57 +11:00
Peter Barker
58c23e618e
AP_Logger: remove unused IMUDT code
...
Unused since we've moved to new Replay code
2020-11-19 08:31:49 +11:00
Andrew Tridgell
6bf7f9e864
AP_Logger: use load_file()
...
save a bit of flash
2020-11-18 09:11:36 +11:00
Andrew Tridgell
019544ceb1
AP_Logger: allow for replay with both EKF enabled
...
even when one is disabled in the original log
2020-11-17 13:45:07 +11:00
Andrew Tridgell
04f60001ff
AP_Logger: allow WriteV() to work within Replay
...
save formats for lookup by WriteV
2020-11-16 10:28:43 +11:00
Peter Barker
48385b82dc
AP_Logger: use instance number for Mag logging
2020-11-11 19:31:53 +11:00
Peter Barker
12f0e9dd43
AP_Logger: use instance number for Baro logging
2020-11-11 19:31:53 +11:00
Peter Barker
2437cf8a24
AP_Logger: use instance number for IMU logging
2020-11-11 19:31:53 +11:00
Andrew Tridgell
3152da98e1
AP_Logger: skip structure validation in replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
a08a1a4247
AP_Logger: allow for larger LOG_FILE_BUFSIZE
...
larger sizes on F7 and H7 allow for much more rapid loggging
2020-11-10 16:15:45 +11:00
Andrew Tridgell
71e4d72fe3
AP_Logger: removed 64k limitation on log buffer
...
the reason for the limit is gone with AP_FileSystem
2020-11-10 16:15:45 +11:00
Andrew Tridgell
2945de4796
AP_Logger: use WITH_SEMAPHORE in _WritePrioritisedBlock
...
this prevents a 1ms delay when waiting for the semaphore
2020-11-10 16:15:45 +11:00
Andrew Tridgell
851cb30e0d
AP_Logger: speed up startup with replay if LOG_DISARMED=0
2020-11-10 16:15:45 +11:00
Andrew Tridgell
b7d60b1d97
AP_Logger: added C field to EKF msgs
2020-11-10 16:15:45 +11:00
Andrew Tridgell
09aff03edc
AP_Logger: support new replay system
...
added allow_start_ekf and block write method for replay
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
daa0abeb13
AP_Logger: make structure check errors clearer
...
add message name to more error messages
2020-11-10 16:15:45 +11:00
Andrew Tridgell
bd7ed003c2
AP_Logger: split out EKF messages and prepare for new replay
...
adds core to more EKF message structures
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Michael du Breuil
25ca2a0828
AP_Logger: Reserve space in PM for last internal error line
2020-11-03 11:04:13 +11:00