Pierre Kancir
01f94e9aa5
AP_Logger: don't virtual out_of_time_for_writing_messages for DF
...
This save use some flash against the solution with override
2023-09-27 08:15:42 +10:00
Pierre Kancir
06836b947f
AP_Logger: make some functions final
2023-09-27 08:15:42 +10:00
Pierre Kancir
247a72b823
AP_Logger: fix warning for implicit overrided function
2023-09-27 08:15:42 +10:00
Iampete1
93ccec3203
AP_Logger: Write_PID: add PD sum limit flag
2023-09-26 10:41:05 +10:00
Iampete1
5def9e7038
AP_Logger: PID move limit to flag bit
2023-09-26 10:41:05 +10:00
Peter Barker
86aad6f6bf
AP_Logger: log valid-input and in-rc-failsafe
...
Can now sensibly log these now the RC_Channels library has the methods
2023-09-12 19:14:18 +10:00
Peter Barker
eb344ee35c
AP_Logger: remove AP_Logger.h include in AP_Logger_Backend
...
Don't need the storage size in the header
2023-09-09 17:35:15 +10:00
Peter Barker
198268e03c
AP_Logger: use HAL_LOGGING_ENABLED defines
2023-09-06 20:26:25 +10:00
Peter Barker
34524d3475
AP_Logger: correct logging when rally disabled
2023-09-05 22:23:51 +10:00
muramura
337ba27370
AP_Logger: Align indentation with others
2023-09-04 13:55:43 +10:00
Anthony Luo
43eacbee33
AP_Logger: fix typo in AP_Logger.h
2023-09-01 17:49:00 +10:00
Peter Barker
771f8855b7
AP_Logger: correct use of nullptr in SITL structure sanity checks
...
A developer might be able to craft a fault such that s could be nullptr here. They would need to work at it, but we can do better.
2023-08-14 22:25:50 +10:00
Peter Barker
10ef10da45
AP_Logger: trim LogStructure base off included code
2023-08-01 10:07:28 +10:00
Asif Khan
b5d1363c28
AP_Logger: add MNT log msg for mount's actual and target angles logging
2023-07-26 17:33:18 +10:00
Peter Barker
8ff9fc0f70
AP_Logger: add Write_NamedValueFloat
...
for getting diagnostics into the code during ddebug fast
2023-07-18 11:34:31 +10:00
Andy Piper
d9869290ee
AP_Logger: remove unused counter
2023-07-13 11:02:40 +10:00
Henry Wurzburg
f71826a992
AP_Logger:correct blk rate param metadata
2023-06-30 15:13:52 +01:00
Peter Barker
e5dda42056
AP_Logger: remove requirement to know storage type of fence item in headers
2023-06-24 14:21:01 +10:00
Peter Barker
023316b269
AP_Logger: use AP_AHRS_ENABLED define
2023-06-24 14:21:01 +10:00
Peter Barker
edb0a9b7fe
AP_Logger: simplify setting of HAL_LOGGER_FENCE_ENABLED
...
This is automatically unset in chibios_hwdef.py
2023-06-24 14:21:01 +10:00
Tatsuya Yamaguchi
3fc8f27899
AP_Logger: make SCR name field instance
2023-05-23 10:27:21 +10:00
Peter Barker
6dbf1f2d66
AP_Logger: replace HAVE_FILESYSTEM_SUPPORT with backend defines
2023-05-17 09:40:39 +10:00
Andrew Tridgell
db60b2586e
AP_Logger: expand servo status logging
2023-05-09 09:40:53 +10:00
Peter Barker
395961883f
AP_Logger: avoid many method calls logging RCOU
2023-04-17 21:28:49 +10:00
Andrew Tridgell
48acb1a2f7
AP_Logger: added LOG_DARM_RATEMAX
...
this sets the logging rate max when disarmed. In combination with
LOG_DISARMED=3 it gives a very nice setup to get always on logging
with very little addition to the log sizes. It is particularly useful
in combination with LOG_REPLAY=1
2023-04-14 07:48:24 +10:00
Andrew Tridgell
63e45a3910
AP_Logger: added LOG_DISARMED=3
...
when LOG_DISARMED is set to 3 then we log while disarmed but if we
reboot without ever arming the log is discarded. This allows for using
LOG_DISARMED without filling the microSD.
2023-04-14 07:48:24 +10:00
Andrew Tridgell
3b4f5d77af
AP_Logger: use AP_Enum for log_disarmed
2023-04-14 07:48:24 +10:00
Peter Barker
6eda22e7de
AP_Logger: do not rotate logs when disarming if we are replay-logging
2023-04-14 07:47:33 +10:00
Peter Barker
3ba349fdb6
AP_Logger: add and use RC_Channel_config.h
2023-03-22 14:25:09 +11:00
Peter Barker
e715e1e14e
AP_Logger: factor Write_PSC[NED] methods to save bytes
2023-03-10 14:47:33 -08:00
Peter Barker
e25d6bb8e4
AP_Logger: rename HAL_SCHEDULER_ENABLED to AP_SCHEDULER_ENABLED
...
there's AP_HAL::Scheduler which confuses this
2023-02-28 11:26:04 +11:00
Iampete1
a4f1951780
AP_Logger: add outout throttle to MOTB message
2023-02-28 11:06:32 +11:00
Peter Barker
a471d5a9b7
AP_Logger: add @FieldValueEnum for rangefinder status
...
will add meaning to Wiki and log analysis tools
--- LogMessages.rst-master 2023-02-11 14:03:51.204650105 +1100
+++ LogMessages.rst 2023-02-11 14:04:32.297022568 +1100
@@ -4764,6 +4764,20 @@
| Dist | Reported distance from sensor |
+----------+-----------------------------------------------+
| Stat | Sensor state |
+| | Values: |
+| | |
+| | +----------------+---+--+ |
+| | | NotConnected | 0 | | |
+| | +----------------+---+--+ |
+| | | NoData | 1 | | |
+| | +----------------+---+--+ |
+| | | OutOfRangeLow | 2 | | |
+| | +----------------+---+--+ |
+| | | OutOfRangeHigh | 3 | | |
+| | +----------------+---+--+ |
+| | | Good | 4 | | |
+| | +----------------+---+--+ |
+| | |
+----------+-----------------------------------------------+
| Orient | Sensor orientation |
+----------+-----------------------------------------------+
2023-02-13 08:34:58 +11:00
Peter Barker
42b784b581
AP_Logger: add unit 'y' for litres/second
2023-02-02 11:42:04 +11:00
Peter Barker
0320f18ef9
AP_Logger: include litres in unit list
2023-02-02 11:42:04 +11:00
Iampete1
b238ed8dd9
AP_Logger: Split MCU montering into new log message, nan if VCC and servo voltge not avalalbe
2023-01-31 15:43:50 +11:00
Peter Barker
c25720a47e
AP_Logger: use FieldBitmaskEnum and FieldValueEnum
2023-01-25 19:50:34 +11:00
Peter Barker
96f359b4e3
AP_Logger: avoid logging duplicate FMT/UNIT/FMTU/MULT messages
...
Failing due to being out of time meant we wouldn't incremement the counter, even though we'd emitted the item.
it is important we try to send something, so move this check to be after we increment whichever counter we are using.
2023-01-18 10:09:43 +11:00
Peter Barker
6524bf3729
AP_Logger: create and use AP_Logger_config.h
2023-01-03 11:24:14 +11:00
Paul Riseborough
fd7c4bc841
AP_Logger: Add option to disable disarmed logging on USB connection
...
AP_Logger: Update LOG_DISARMED parameter description
2022-12-15 10:38:15 +11:00
Peter Barker
ee908e8df2
AP_Logger: include PIDInfo header in place of PID header
...
AC_PID.h includes a remarkable amount of stuff
2022-12-14 22:21:27 +11:00
Randy Mackay
c258d1b32c
AP_Logger: PM msg gets LR field
2022-12-06 11:00:51 +11:00
Andrew Tridgell
ae84adf632
AP_Logger: prevent long loops due to parameter logging
...
ensure that the logging process() doesn't take more than 1ms
2022-12-04 18:08:40 +11:00
Andy Piper
38bc9bfab1
AP_Logger: on example sketches there is always time to write out FMT messages
2022-11-09 19:01:14 +11:00
Andy Piper
f9451e36f5
AP_Logger: control PrepForArming in UNKNOWN builds
2022-11-09 19:01:14 +11:00
Andy Piper
209dd15346
AP_Logger: need to be able to finish format messages even when there is no fence
2022-11-08 17:56:00 +11:00
Iampete1
1547c65ff3
AP_Scripting: bindings: logging: add flag to copy format strings
2022-11-08 10:49:43 +11:00
Iampete1
1df00d879a
AP_Logger: add option allocate scripting format strings in msg_fmt_for_name
2022-11-08 10:49:43 +11:00
Iampete1
6578c020d8
AP_Logger: log structure: SCR: update description
2022-11-03 09:50:59 +11:00
Peter Barker
8e06d5cd36
AP_Logger: include required AP_Vehicle_Type header
2022-11-02 18:35:48 +11:00