Commit Graph

545 Commits

Author SHA1 Message Date
Peter Barker 074798fb88 AP_Logger: remove superfluous linefeed from panic strings
panic adds this within the HAL layer.
2024-12-14 10:06:13 +11:00
Andrew Tridgell 07a5e40aa1 AP_Logger: logging structures from AP_CANManager 2024-12-11 08:43:56 +11:00
Iampete1 d0bbc02995 AP_Logger: remove `Write_ServoStatus` and `CSRV` definition 2024-12-03 07:38:17 +11:00
Iampete1 2863dcfb94 AP_Logger: add new unit `t` for torque in N.m 2024-12-03 07:38:17 +11:00
Peter Barker 48acec80a4 AP_Logger: correct typo in MAV documentation 2024-11-26 09:18:08 +11:00
Peter Barker 1a92e356ee AP_Logger: correct PM message metadata 2024-11-22 10:18:31 +11:00
Peter Barker bd0d4f9ef0 AP_Logger: log RTC into PM message 2024-11-21 09:19:38 +11:00
Simon Hancock 67412c9997 AP_Logger: Add enums to VER message 2024-11-12 11:11:45 +11:00
Peter Barker 70c277b759 AP_Logger: make logging_started const 2024-11-06 16:31:38 +09:00
Andrew Tridgell 8053c40993 AP_Logger: mark CSRV non-streaming
the rate of CAN servo messages is controlled by the servo. Having this
streaming means we can miss logging when there is more than one CAN
servo.

In the future we will move to holding the CAN servo data in a data
structure like we do for ESCs, and then log at a regular rate, but for
now this fixes the issue
2024-10-15 11:31:36 +11:00
muramura 6c1a5bf3d0 AP_Logger: Align the order of definitions 2024-10-08 20:57:01 +11:00
Peter Barker 4237a33ce6 AP_Logger: split logging of mission-upload vs mission-execution 2024-10-01 10:19:29 +10:00
Peter Barker b98e682ec6 AP_Logger: move Mission log structures into Mission library 2024-10-01 10:19:29 +10:00
Peter Barker 54247833c0 AP_Logger: add and use global NaNf float value 2024-09-26 19:26:59 +10:00
Peter Barker 8856100e39 AP_Logger: restart logging after log transfer 2024-09-03 11:01:24 +10:00
Peter Barker c79ba79ed1 AP_Logger: AllTypes example: freshen output file 2024-08-27 10:19:26 +10:00
Peter Barker b4e3b6cdd5 AP_Logger: add support for logging float16 2024-08-27 10:19:26 +10:00
Andy Piper edbe339f48 AP_Logger: correctly read file header for block logger 2024-08-13 10:44:35 +10:00
Peter Barker 78afaebe55 AP_Logger: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Andy Piper 370b0d7b9c AP_Logger: add events for all fence types 2024-07-24 08:24:06 +10:00
George Zogopoulos fb40a7f19d AP_Logger: Fix logged units 2024-07-14 17:07:11 +10:00
Peter Barker aff3af67e6 AP_Logger: remove short-filename compatability code
We used to produce files hwih looked like log1.BIN.  We moved to 00000001.BIN instead so things collate.

This code allowed the autopilot to return data from SD cards which had old logs on them.
2024-07-09 11:34:40 +10:00
Peter Barker 3208491983 AP_Logger: remove twin paths for writing FMT messages
This stops us tracking formats-written in two places.

The Write() method will now emit formats as required and set the relevant bit in the backend-owned bitmask of formats sent.
2024-07-09 10:40:08 +10:00
Peter Barker c1c3580f8b AP_Logger: remove unused _log_file_size_bytes variable
AP_Logger: comment corection
2024-07-05 21:42:21 +10:00
Peter Barker 0056ef2d90 AP_Logger: write formats out as required rather than at start of log 2024-07-02 10:59:55 +10:00
Peter Barker 780352cd75 AP_Logger: correct enumeration name -> AP_SmartRTL::Action 2024-06-28 10:11:57 +10:00
Peter Barker 580199dfba AP_Logger: disable HAL_LOGGING_BLOCK_ENABLED if not HAL_LOGGING_ENABLED
HAL_LOGGING_DATAFLASH_ENABLED is set unconditionally in some hwdefs, but we still need to honour HAL_LOGGING_ENABLED
2024-06-25 18:32:41 +10:00
Peter Barker b5b42f9446 AP_Logger: tidy running of LoggerMessageWriter sub-writers
... use the fact these all have a common base class to reduce effectively duplicate code.

Also un-virtualise and const a function which wasn't overridden and can be const
2024-06-19 08:51:28 +10:00
Andy Piper 608d396fd6 AP_Logger: take a blocking semaphore when writing messages using the block logger 2024-06-18 09:54:09 +10:00
Peter Barker a737a34cd0 AP_Logger: correct comment about reserved range for vehicle IDs 2024-06-17 08:24:52 +10:00
Andrew Tridgell 20070b7e37 AP_Logger: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
tanghongkai b66ecd8884 AP_Logger: rename class and hwdef related to w25nxx 2024-05-06 12:26:38 +10:00
tanghongkai 0dac7d5cfe AP_Logger: add support to w25n02kv 2024-04-30 10:58:12 +10:00
Iampete1 264bd91f4e AP_Logger: add log structures from AP_HAL 2024-04-09 10:00:50 +10:00
Iampete1 c5ecddad92 AP_Logger: add bytes per second unit `B` 2024-04-09 10:00:50 +10:00
Philipp Borgers 1e2600c2e3 AP_Logger_MAVLink: Remove code that changes behavior when in SITL
The removed code changed behavior of the send_log_block function when
simulating with SITL. While I can understand the intention I do not
think that it is the right way to do it and has the potential to confuse
people debugging stuff with SITL and comparing to the real world.
2024-04-05 10:54:26 +11:00
Iampete1 b08034373f AP_Logger: `Write_VER` keep g++ 7.5 happy by removeing non-trivial designated initializers 2024-04-02 11:13:55 +11:00
Andrew Tridgell b430d63a22 AP_Logger: avoid logging dma.txt for normal builds
logging of dma.txt currently does no good as the first time you read
it you get no content. It then enables statistics in the shared_dma
code which makes all DMA operations slower, so all we are doing is
making DMA slower
2024-03-19 10:28:55 +11:00
Andrew Tridgell 89ec6ac645 AP_Logger: added VER.FV for filter version 2024-03-16 06:54:27 +11:00
Peter Barker f4df89b85b AP_Logger: move logging of PSC messages into AC_AttitudeControl 2024-02-29 19:27:47 +11:00
Peter Barker 6f4ab028ca AP_Logger: cope with rename of AP_Logger_JEDEC driver 2024-02-28 22:32:23 +11:00
Peter Barker 8555a5ddbe AP_Logger: rename AP_Logger_DataFlash to AP_Logger_Flash_JEDEC 2024-02-28 22:32:23 +11:00
Simon Hancock 2a67cbe681 AP_Logger: Add metadata for VER and FILE messages 2024-02-25 17:53:08 +11:00
Andy Piper 4d419bb918 AP_Logger: remove unused variables 2024-02-22 14:40:55 +11:00
Peter Barker 9c97dc99b1 AP_Logger: correct compilation when GCS not available
... can't expect to do mavlink logging without GCS available...
2024-02-20 09:16:59 +11:00
Peter Barker e39fad1411 AP_Logger: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Peter Barker 89b2e62b0f AP_Logger: add power status bits to logger metadata 2024-02-06 11:13:14 +11:00
olliw42 381aba9c62 AP_Logger: RXLQ in RSSI is in percent 2024-02-01 09:18:08 +11:00
Simon Hancock 1bfd9f3763 AP_Logger: Correct for loop condition 2024-01-24 19:09:55 +11:00
Peter Barker 86039b8488 AP_Logger: make it clear that bodyX and bodyY are rotational rates 2024-01-22 19:14:42 +11:00