Josh Henderson
0ebbf0f74e
AP_Logger: move AP_AHRS functions out
2021-01-12 10:13:22 +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
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
Peter Hall
b2e1d88da8
AP_Logger: add limit flag to PID logs
2021-01-05 10:27:28 +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
Andy Piper
5436784d38
AP_Logger: add ESC error rate
2020-12-30 19:14:16 +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
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
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
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
Randy Mackay
d9b90bf19f
AP_Logger: VISP and VISV get ignored field
2020-10-06 09:18:04 +09:00
Randy Mackay
36dee8791a
AP_Logger: revert adding PSCP log structure
2020-09-12 08:10:33 +09:00
Iampete1
9753a20404
AP_Logger: add PSCP log structure
2020-09-11 10:12:08 +10:00
Iampete1
02c225ee93
AP_Logger: add structure for PSC message
2020-09-11 10:12:08 +10:00
Peter Barker
716e7622be
AP_Logger: log RCIN channels 14 and 15 in RCI2
2020-08-25 10:27:00 +10:00
Rishabh
ad3a7e4d49
AP_Logger: Update logs based on new BendyRuler type
2020-08-24 08:53:20 +09:00
Randy Mackay
f7ec08ff18
AP_Logger: add Write_Winch
2020-08-07 21:55:07 +09:00
Randy Mackay
5d99ce9a84
AP_Logger: remove winch events
2020-08-07 21:55:07 +09:00
Rishabh
251ebf9286
AP_Logger: Log Simple Avoidance
2020-08-05 15:37:04 +09:00
Paul Riseborough
0cf70fe961
AP_Logger: Log D gain limit cycle gain scaler
...
Used by Plane roll and pitch loops in APM_Control
2020-07-13 13:47:50 +10:00
Rishabh
4fa2c3f5ba
AP_Logger: Log if BendyRuler has avoided changing directions
2020-06-24 11:42:20 +09:00
chobits
5e5a0d2111
AP_Logger: log ext nav pos err and ang err
2020-06-09 13:31:21 +09:00
Iampete1
fee5b998bf
AP_Logger: add min MB free param
2020-06-09 09:23:25 +10:00
Randy Mackay
714975662d
AP_Logger: VISP message gets velocity error field
2020-06-02 08:33:42 +09:00
chobits
9b480ca755
AP_Logger: support VISION_SPEED_ESTIMATE
2020-06-01 17:51:24 +09:00
Peter Hall
19ba9abc89
AP_Logger: add function and make public for scripting use
2020-05-19 09:09:48 +10:00
Peter Barker
acba2a78f6
AP_Logger: add message validation check against duplicate labels
2020-04-14 12:30:58 +10:00
Randy Mackay
4f639481c1
AP_Logger: VISP msg adds reset_counter
2020-04-14 10:28:03 +10:00
Randy Mackay
f18be824ea
AP_Logger: add VISP message
2020-04-09 19:41:08 +09:00
Andrew Tridgell
71a0645a59
AP_Logger: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
2020-01-19 20:19:30 +11:00
Andrew Tridgell
56035fa5a1
AP_Logger: add a semaphore to protect creation of new log formats
2020-01-17 00:54:00 +11:00
Peter Barker
2c5e07cb09
AP_Logger: log battery and cell information using instance numbers
2020-01-08 13:00:17 +11:00
Andrew Tridgell
58fcd4601a
AP_Logger: added CESC message for logging CAN ESC status
2020-01-05 15:25:56 +11:00
Andrew Tridgell
2666853100
AP_Logger: added CSRV logging for CAN servo status
2020-01-05 15:25:56 +11:00
Randy Mackay
2e09acc2ae
AP_Logger: add error code for rtl missing rangefinder
2019-12-17 20:02:01 +09:00
Peter Barker
9c17fdb851
AP_Logger: use enum class for transfer activity
...
These weren't great symbols to create...
2019-12-05 16:42:48 +11:00
Randy Mackay
94d641d3d5
AP_Logger: ESC logging includes motor temperature
2019-11-26 11:56:33 +11:00
Peter Barker
f337d011e7
AP_Logger: make LogEvent an enum class, split off LogDataID
...
We were mixing the enumeration values across different messages, which
isn't great
2019-11-05 08:19:26 +08:00
Michael du Breuil
c369139be0
AP_Logger: Support new ModeReason
2019-10-25 08:48:22 +08:00
Peter Barker
c30873097a
AP_Logger: use ahrs singleton to log ATT, POS and AHRS2
2019-10-24 13:15:46 +11:00
Peter Barker
e84082a099
AP_Logger: canonicalize on STANDBY rather than STANDY_BY
2019-10-21 21:22:17 +08:00
Randy Mackay
dee4e867e4
AP_Logger: add vibration failsafe error subsystem
2019-10-18 11:15:25 +09:00
Leonard Hall
e8e969af62
AP_Logger: Support for Standby functions
2019-10-17 14:57:18 +09:00
Peter Barker
083d4ac3ea
DataFlash: adjust for new vehicle base class
2019-10-08 11:26:04 +11:00
Randy Mackay
3431938bce
AP_Logger: add error code to Write_OADijkstra
2019-09-28 07:58:48 +09:00
Peter Barker
6d71ef5cf8
AP_Logger: move EKF timing logging out to EKF
2019-09-03 09:28:37 +10:00
Michael du Breuil
fa6e43be77
AP_Logger: Forward declare AHRS
...
This reduces the number of places this is implicitly included, and helps
to reduce the scope of files that get rebuilt
2019-08-28 13:13:03 +10:00
Andrew Tridgell
df4cb00970
AP_Logger: added LOG_FILE_TIMEOUT parameter
...
this allows for cards to be removed and re-inserted while continuing
logging
2019-08-27 15:40:43 +10:00
Peter Barker
631725f817
AP_Logger: add Write_Command for writing out received mavlink commands
2019-08-27 09:32:00 +10:00
Randy Mackay
b666b172c4
AP_Logger: replace Write_OA with Write_OABendyRuler and Write_OADijkstra
2019-08-06 08:15:45 +09:00
Leonard Hall
94ee2fb2fd
AP_Logger: add error to PID message
2019-07-25 17:38:15 +09:00
Leonard Hall
157f786adf
Global: rename desired to target in PID info
2019-07-25 17:38:15 +09:00
Pierre Kancir
781e9ae9c1
AP_Logger: pass mavlink_message_t by const reference
2019-07-16 20:51:42 +10:00
Peter Barker
7c102b90fa
AP_Logger: use singletons when logging camera information
2019-07-09 09:32:39 +10:00
Peter Barker
e009b7aee5
AP_Logger: move logging of EKF packets out to EKF
2019-07-06 19:05:51 +10:00
Andrew Tridgell
dd3eec2a38
AP_Logger: persist logging for 15s after disarm or arming failure
...
this will provide useful information in logs on disarms in flight or
reasons for arming failure
2019-06-21 11:40:53 +10:00
Michael du Breuil
23439de39a
AP_Logger: Don't include AP_BattMonitor which we don't need
2019-06-18 10:02:05 +10:00
Randy Mackay
c7b1ad3443
AP_Logger: add Write_OA
2019-06-11 13:13:22 +09:00
Peter Barker
a5f5b4349c
AP_Logger: add a Write_Rally method
2019-05-22 08:53:45 +10:00
Peter Barker
54eff7eafc
AP_Logger: add WriteCritical method to AP::logger()
...
For callers who emphatically want their custom messages to be written out.
2019-05-16 17:21:24 +10:00
Peter Barker
540d4ae796
AP_Logger: RangeFinder library now does its own logging
...
Since we were poking the backends directly it should probably be over
there
2019-04-09 22:17:58 +10:00
Peter Barker
57c4cbc771
AP_Logger: use RSSI singleton for logging
2019-04-09 09:33:13 +10:00
Peter Barker
d90e554608
AP_Logger: move logging of ARSP into Airspeed library
2019-04-09 09:29:35 +10:00
Peter Barker
26d8627d18
AP_Logger: use airspeed singleton for logging
...
This avoids the header dependency on airspeed
2019-04-09 09:29:35 +10:00
Michael du Breuil
2e2ef27670
AP_Logger: Remove unneeded includes
2019-04-05 20:12:53 +11:00
Tom Pittenger
027f9afcf8
AP_logger: rename dataflash to logger and refactor the filename logger.bin
2019-03-28 16:40:58 +11:00
Peter Barker
b6ee93aeef
AP_Logger: change BAD_DEPTH logerror code from 0 to 3
...
We use 0 to mean cleared for many other subsystems, so this is a bit of
a wart.
2019-03-27 12:02:53 -04:00
Peter Barker
0d0dfd49bd
AP_Logger: accomodation for Sub error subsystems and codes
2019-03-27 12:36:40 +11:00
Peter Barker
d2a683a758
AP_Logger: move Log_Write_Error into library
2019-03-27 12:36:40 +11:00
Peter Barker
ee690e7ab9
AP_Logger: use AP_InternalError for tracking internal errors
2019-03-21 21:34:33 +11:00
Peter Barker
539000df40
AP_Logger: remove more DataFlash references
...
Also strongly type the backend type
2019-03-02 22:28:13 +11:00
Andrew Tridgell
202e6d38c4
AP_Logger: fixed race condition with multi-thread AP_Logger
2019-02-26 16:18:26 +11:00
Randy Mackay
e28efeceac
AP_Logger: implement Write_ESC
2019-02-18 20:55:47 +09:00
Peter Barker
9108eeb8f5
AP_Logger: log rally points into dataflash on upload
2019-02-12 11:48:55 +11:00
Tom Pittenger
21db5e1a5c
AP_Logger: unify singleton naming to _singleton and get_singleton()
2019-02-10 19:09:58 -07:00
Peter Barker
3071372c8d
AP_Logger: add Sub-specific events
2019-02-04 09:30:07 +09:00
Peter Barker
78e76b84b2
AP_Logger: move handling Write_Event into AP_Logger
2019-02-04 09:30:07 +09:00
Peter Barker
5ecb730766
AP_Logger: remove rally argument from Write_Rally - use singleton
2019-01-31 09:51:25 +09:00
Peter Barker
7525c593cb
AP_Logger: stop taking mission as argument to Write_EntireMission
2019-01-29 19:07:05 -08:00
Andrew Tridgell
e3c9f10e91
AP_Logger: revived block based logging
2019-01-21 21:57:21 +11:00
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
2019-01-18 18:08:20 +11:00
Peter Barker
8e2a229e5d
AP_Logger: add AP::logger() method
2019-01-18 18:08:20 +11:00
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
2019-01-18 18:08:20 +11:00
Peter Barker
6a59dd04a7
DataFlash: rename to AP_Logger
2019-01-18 18:08:20 +11:00