Commit Graph

137 Commits

Author SHA1 Message Date
Andrew Tridgell
354a40651d Replay: use AP_Filesystem to load parameter file
fixes replay build with posix compat changes
2024-07-12 15:56:48 +10:00
Andrew Tridgell
94841dd608 Tools: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker
bdb84181bc Tools: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Peter Barker
fb87369c7e Tools: Replay: correct compilation when AdvancedFailsafe not available 2023-10-17 18:21:04 +11:00
bugobliterator
4808b5bfa1 Replay: change INS_ to INS 2023-03-21 10:04:16 +11:00
Iampete1
d82f79b492 Tools: Replay: use shared Param info defines 2023-01-11 18:41:34 +11:00
Peter Barker
65915441b6 Tools: make check_var_info void
Given all the callers die anyway, make it void
2023-01-10 10:48:15 +11:00
Peter Barker
67aa9ecdd4 Tools: adjust for when LTM telemetry is disabled 2022-06-28 20:19:41 +10:00
Peter Barker
1321a66d97 Replay: include cleanups 2022-03-01 11:21:33 +11:00
Josh Henderson
2f7e07069f Replay: move AP_Airspeed to AP_Vehicle 2022-01-19 18:21:32 +11:00
Andrew Tridgell
9ee140cbbf Tools: revert compass parameter changes 2021-12-04 16:51:53 +11:00
Shiv Tyagi
339a07b8d3 AP_Devo_Telem: compile out devo telemetry
Devo telemetry is one of the most rarely used features (almost never used since added) we should compile it out from our code
2021-12-01 19:16:44 +11:00
Iampete1
11db1aaa40 Replay: remove compass params underscore 2021-11-30 08:14:43 +09:00
Siddharth Purohit
5657dad3e6 Replay: move underscore one layer down for GPS 2021-03-12 16:32:36 +09:00
Andrew Tridgell
3f6fd49507 Replay: rename baro params to BARO* 2020-12-08 13:22:17 +11: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
85aa64780c Replay: allow replay to run on SITL instead of linux HAL 2020-11-10 16:15:45 +11:00
Andrew Tridgell
0d8a36d0c0 Replay: fixed linux build warning 2020-11-10 16:15:45 +11:00
Andrew Tridgell
e7fa722290 Replay: support overriding parameters 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
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
Peter Barker
b8087c3e84 Replay: let AP_Vehicle handle loop() 2020-02-06 14:41:06 +11:00
Peter Barker
bde97596eb Tools: adjust Replay for new AP_Vehicle requirements 2020-01-28 11:34:51 +11:00
Peter Barker
d95956a587 Replay: EKF objects have moved into AP_AHRS_NavEKF 2020-01-21 11:53:18 +11:00
Andy Piper
30878553d6 Tools: add AP_Camera to list of libraries
remove dummy Camera methods from Replay
add rcmapper to replay
make replay a vehicle
2019-12-30 13:02:04 +11:00
Marian Soban
018d6bd35b Tools: Replay: add stubs to avoid linking LTM telemetry 2019-11-26 12:14:13 +11:00
Peter Barker
cd1c9309e6 Tools: add method to avoid linking AP_Avoidance 2019-11-12 13:48:09 +11:00
Peter Barker
f431c0b256 Replay: use ahrs singleton to log ATT, POS and AHRS2 2019-10-24 13:15:46 +11:00
Peter Barker
192b275837 Tools: Replay: add dummy AP::advancedfailsafe method 2019-09-17 09:13:43 +10:00
Peter Barker
6c22faa585 Tools: Replay: correct compilation (missing override keywords) 2019-09-04 08:55:27 +10:00
Peter Barker
6c5b03dbb7 Tools: Replay: var_info is now in GCS_MAVLINK_Parameters 2019-08-14 18:25:43 +10:00
Peter Barker
92dde5b111 Tools: Replay: move automatic declination setting into AP_Compass itself 2019-08-13 10:02:13 +10:00
Peter Barker
bb677756a0 Tools: Replay: EKF logging moved to AHRS from logger 2019-07-06 19:05:51 +10:00
Peter Barker
5ab000376b Tools: Replay: correct format strings 2019-06-13 13:41:27 +10:00
Michael du Breuil
f92ee78890 Replay: Fix include 2019-04-05 20:12:53 +11:00
Tom Pittenger
a8908e3c57 Tools/Replay: rename datalogger to logger 2019-03-28 16:40:58 +11:00
Peter Barker
d4fe65b43c Tools: Replay: remove definition of Devo constructor 2019-03-23 11:25:21 +11:00
Peter Barker
eb16c30bdb Tools: Replay: add stubs to avoid linking devo 2019-03-19 14:39:14 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
edac5e1a80 Tools: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Peter Barker
bf9b8f41bf Tools: Replay: cope with WARN_IF_UNUSED on AP_AHRS::set_home 2019-02-15 08:28:45 +11:00
Peter Barker
9eea14054e Tools: Replay: fix build 2019-01-18 18:08:20 +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
b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
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
2018-10-31 16:05:33 +11:00
Peter Barker
af66d72510 Tools: Replay: correct -n command-line argument 2018-10-31 16:05:33 +11:00
Peter Barker
961aac454b Tools: Replay: use Log_Write for CHEK message 2018-10-31 16:05:33 +11:00
Peter Barker
95f7b1aeb7 Tools: add dummy AP::camera method to avoid linking camera 2018-08-31 15:48:56 +10:00
Peter Barker
357a57f68a Tools: Replay: implement more dummy camera methods to avoid linking camera 2018-07-06 09:43:09 +10:00
Andrew Tridgell
2aceab2b66 Replay: fixed build 2018-04-24 21:33:10 +10:00