muramura
8f5861283b
Replay: The number of elements in a char array can be obtained using SIZEOF
2024-09-25 08:46:36 +10:00
muramura
cb1a156987
Replay: Declare the type of the loop variable and consolidate the processing
2024-09-21 18:10:12 +10:00
muramura
0e72fc7bd2
Replay: Change NULL to nullptr
2024-09-20 10:38:56 +10:00
muramura
36dcadf652
Replay: Change to a Boolean value
2024-09-20 09:20:12 +10:00
Peter Barker
69f2d0d0c6
Tools: Replay: fix use-after-free in Replay error path
2024-09-19 11:42:50 +10:00
Andrew Tridgell
32bead6013
Replay: use common events and structures
...
allows for --force-ekf2 and --force-ekf3 to run the other EKFs events
when needed
2020-11-17 13:45:07 +11:00
Andrew Tridgell
4edc784dc4
Replay: allow replay on ChibiOS
2020-11-10 16:15:45 +11:00
Andrew Tridgell
81f96aedd2
Replay: new replay implemention
...
this uses log msgs from AP_DAL to replay more accurately
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Patrick José Pereira
27720f2235
Tools: Replay: Move from uint to uint32_t in MsgHandler
...
uint is not a fundamental type and does not exist under cstdint
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-09-26 20:28:18 +10:00
Peter Barker
1cefd2943b
Replay: correct various atrophications in Replay tool
...
Replay: tear down threads before exitting
NKQ is a generated name - don't copy it across to output
Stop whinging about presence of NKF6 and friends; we know these generated names are not going to be present in modern logs
memcpy rather than strncpy within log_FMT
Correct strings vs optionally-terminated structure entries in sanity checks
Call AP_Param::load_all() to start the parameter saving thread. AP_Compass' init() method now saves parameters (compass reordering), and because we're disarmed we will block until the parameter is pushed onto the to-save queue; if there's no thread popping off that list we block indefinitely.
Remove duplicate definitions of various singleton objects.
Replay: write out GPS message to output log
Useful for diagnosis, but also because we struggle to find a time base
without this and the pymavlink tools take forever to work
Replay: set COMPASS_DEV_ID and COMPASS_PRIO1_ID so EKF gets mag data
Replay: avoid use of system clock; use stopped-clock only
Replay: constraint to emitting output for single core only
2020-09-15 10:02:36 +10:00
Michael du Breuil
7ca6fd928e
Replay: Included needed headers directly
2019-08-28 13:13:03 +10:00
Peter Barker
b346e82b3e
Replay: use enum class for AltFrame enumeration
2019-03-19 10:31:18 +11:00
Peter Barker
3a53c5f99c
Tools: Replay: update Replay for Location/Location_Class merge
2019-01-16 11:45:29 +11:00
Andrew Tridgell
468f020b51
Replay: cope with GPS ground couse in degrees
2016-05-07 18:27:21 +10:00
Andrew Tridgell
0571f86c17
Replay: handle float ground speed in GPS
2016-05-07 18:27:21 +10:00
Peter Barker
c869516a0b
Replay: abort if field type not known; understand double
2016-04-26 14:20:11 +10:00
Peter Barker
dbbc5ed816
Replay: fix double-free in MsgHandler
2015-07-10 18:56:20 +10:00
Andrew Tridgell
2291a8994e
Replay: fixed build
2015-06-29 15:59:53 +10:00
Peter Barker
f996bf4307
Replay: move LR_MsgHandlers into their own files
2015-06-14 17:17:42 +10:00
Peter Barker
d41b21cd19
Replay: split off a base class for reading dataflash logs
2015-06-14 16:47:52 +10:00
Peter Barker
5fb46b0e11
Replay: fix dataflash overflow on timestamp-poor (older) logfiles
2015-06-09 21:52:45 +10:00
Andrew Tridgell
b27d0a6525
Replay: handle replay on older logs
...
we now pass-thru all messages except those that are being generated by
replay. We also pass-thru the FMT headers for those messages
2015-05-28 13:30:38 +10:00
Andrew Tridgell
2007d2b6eb
Replay: cope with FRAM messages
...
use them to trigger ahrs updates
2015-05-28 13:30:37 +10:00
Peter Barker
8eafc209a9
Replay: understand and use 64-bit timestamps in Replay
2015-05-27 11:54:17 +10:00
Andrew Tridgell
34fe39f17d
Replay: force COMPASS_ORIENT to 0
...
we use compass.setHIL() in body frame, or must use an orientation of 0
to give the right value
2015-05-19 20:22:46 +10:00
Peter Barker
91b761cfb0
Replay: merge MessageHandler_* into MsgHandler.h/MsgHandler.cpp
...
These were trivial classes; having lots of these files around made
it painful to work with.
2015-05-19 20:22:45 +10:00
Andrew Tridgell
ba930f8cf1
Replay: removed the timestamp rounding code
...
this makes things worse for plane replay
2015-05-19 13:18:02 +10:00
Peter Barker
56a8bf5460
Replay: use the message's name rather than number to determine which message handler to use for a message
2015-04-28 21:10:16 +10:00