Andrew Tridgell
1250f62c88
Replay: fix for WriteV usage and cleanup unused code
4 years ago
Andrew Tridgell
4edc784dc4
Replay: allow replay on ChibiOS
4 years ago
Andrew Tridgell
541d11ee05
Replay: cleanup unused code
4 years ago
Andrew Tridgell
e7fa722290
Replay: support overriding parameters
4 years ago
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>
4 years ago
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
4 years ago
Peter Barker
6c22faa585
Tools: Replay: correct compilation (missing override keywords)
6 years ago
Tom Pittenger
a8908e3c57
Tools/Replay: rename datalogger to logger
6 years ago
Peter Barker
9eea14054e
Tools: Replay: fix build
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
5452730fc9
Tools: Replay: make it work again
...
Tools: Replay: ignore setting of LOG_DISARMED
Otherwise log files that come in with LOG_DISARMED false don't get any
significant output
Tools: Replay: apply user parameters after any PARM message
Tools: Replay: emit timestamp when EKF is force-started
Tools: Replay: use stderr for what it's good for
Tools: Replay: force log disarmed
6 years ago
Peter Barker
3a718366e1
Tools: Replay: use baro singleton
7 years ago
Andrew Tridgell
736c162d21
Replay: added --param-file option
9 years ago
Andrew Tridgell
4116f80901
Replay: added --no-params option
9 years ago
Andrew Tridgell
f2106f39aa
Replay: save CHEK messages when not being generated
10 years ago
Andrew Tridgell
dd53f5a7a1
Replay: added --nottypes option
10 years ago
Andrew Tridgell
bdddfae57f
Replay: don't write out duplicate FMT messages
...
this makes replay output the same as input for when input is a replay
log
10 years ago
Andrew Tridgell
93800fb3a1
Replay: automatically find message types, and improve rate detection
10 years ago
Andrew Tridgell
b20318aaeb
Replay: remap msgids on pass-through to avoid conflicts
...
if msg IDs have changed since the log was produced they need to be
remapped
10 years ago
Andrew Tridgell
2291a8994e
Replay: fixed build
10 years ago
Andrew Tridgell
f2756ecb22
Replay: added checking of solution
10 years ago
Andrew Tridgell
31f7525a61
Replay: added --no-imt flag
10 years ago
Peter Barker
71bc48189e
Replay: remove dangling declarations from LogReader.h
...
These seem to have been left in after MsgHandler was factored out
10 years ago
Peter Barker
f996bf4307
Replay: move LR_MsgHandlers into their own files
10 years ago
Peter Barker
d41b21cd19
Replay: split off a base class for reading dataflash logs
10 years ago
Andrew Tridgell
dc1ff9a757
Replay: added in_list() method
...
neaten up code
10 years ago
Andrew Tridgell
64a55c908f
Replay: fixed trailing nul and don't wait for EKF to init
10 years ago
Peter Barker
32beaea48c
Replay: use column labels rather than IDs in Replay.pde
10 years ago
Peter Barker
56a8bf5460
Replay: use the message's name rather than number to determine which message handler to use for a message
10 years ago
Peter Barker
42351edfa6
Replay: use dataflash log format messages to extract message data instead of using structs
...
dataflash logs have been self-describing since 2013. Replay now uses the descriptions supplied in the dataflash log to understand the format of any particular message.
This change should allow fields to be added to messages with no impact on Replay.
10 years ago
Andrew Tridgell
8f09ee077c
Replay: try to cope better with millisecond timestamps in 400Hz copter logs
10 years ago
Andrew Tridgell
95a1ab0cab
Replay: fixed build with new AP_Compass API
10 years ago
Andrew Tridgell
488714ccba
Replay: updates for new AP_Baro API
10 years ago
Andrew Tridgell
fa95ea91fd
Replay: generate dataflash logs in Replay
...
this allows the calculated EKF flight path to be compared with
different parameters by using replay
10 years ago
Andrew Tridgell
6e0e56a6ef
Replay: fixed loading of users parameters and parameter override
...
use compass.set_offsets() to avoid trying to write to storage
10 years ago
Andrew Tridgell
250deaa32f
Replay: added vehicle class detection
11 years ago
Andrew Tridgell
623cbc3316
Replay: cope with too many log format msgs
11 years ago
Andrew Tridgell
60ad429d13
Replay: convert to new GPS API
11 years ago
Andrew Tridgell
5dfd9b074e
Replay: fixed for rover logs
11 years ago
Andrew Tridgell
ecdcf70ef5
Replay: added accel and gyro mask options
11 years ago
Andrew Tridgell
3218ac8e7a
Replay: added parameter handling
...
use parameters from log, and allow override
11 years ago
Andrew Tridgell
853271dd37
Replay: moved replay tool into Tools/Replay
11 years ago
Andrew Tridgell
09cce5d24e
AP_NavEKF: fixed replay with current copter logs
11 years ago
Andrew Tridgell
ffbd655ba0
AP_NavEKF: support dual sensors in log replay, and fix flight altitude
11 years ago
Andrew Tridgell
5bf170c440
AP_NavEKF: fixed log replay code
...
also added BARO and ARSP messages
11 years ago
Andrew Tridgell
0816642436
AP_NavEKF: handle intertial nav
11 years ago
Andrew Tridgell
c33da7b3a2
AP_NavEKF: fixed log playback for copter
11 years ago
Andrew Tridgell
093481786e
AP_NavEKF: added SIM state to playback tool
11 years ago
Andrew Tridgell
050b0fb9f1
AP_NavEKF: fixed compass declination, baro cal and time shift
...
now runs much faster
11 years ago
Andrew Tridgell
977ad4bbf6
AP_NavEKF: added dataflash log reader
...
this gives log playback into HIL
11 years ago