PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.17k stars 13.36k forks source link

Unable to generate non-ekf replay logs #16307

Open asimopunov opened 3 years ago

asimopunov commented 3 years ago

To Reproduce use a real flight test log

cd Firmware export replay=[path_to_real_flight_test_log] make px4_sitl_default

create orb_publisher.rules file in build/px4_sitl_default_replay/tmp/rootfs

For example:

restrict_topics: battery_status
module: replay
ignore_others: true

make px4_sitl none

Example log: https://logs.px4.io/plot_app?log=a7586dcb-6a71-4829-b797-793475b8887c

_replayed log should be generated in Firmware/build/px4_sitl_default_replay/logs/

V.1.11.0 Log is generated if in ekf2 replay mode

mengchaoheng commented 3 years ago

now, in master branch, this problem still, here is my outout in terminaltor: mch@mch-virtual-machine:~/DF/PX4-Autopilot$ make px4_sitl none [1/2] cd /home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay/tmp && /home/mch/DF/PX4-Autopilot/Too...none none none none /home/mch/DF/PX4-Autopilot /home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay SITL ARGS sitl_bin: /home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay/bin/px4 debugger: none program: none model: none world: none src_path: /home/mch/DF/PX4-Autopilot build_path: /home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay empty model, setting iris as default SITL COMMAND: "/home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay/bin/px4" "/home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay"/etc -s etc/init.d-posix/rcS -t "/home/mch/DF/PX4-Autopilot"/test_data INFO [px4] Creating symlink /home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay/etc -> /home/mch/DF/PX4-Autopilot/build/px4_sitl_default_replay/tmp/rootfs/etc INFO [uORB] Using orb rules from ./orb_publisher.rules


| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/

px4 starting.

INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0 Info: found model autostart file as SYS_AUTOSTART=10016 INFO [param] selected parameter default file eeprom/parameters_10016 [param] parameter file not found, creating eeprom/parameters_10016 SYS_AUTOCONFIG: curr: 0 -> new: 1 SYS_AUTOSTART: curr: 0 -> new: 10016 CAL_ACC0_ID: curr: 0 -> new: 1310988 CAL_GYRO0_ID: curr: 0 -> new: 1310988 CAL_ACC1_ID: curr: 0 -> new: 1310996 CAL_GYRO1_ID: curr: 0 -> new: 1310996 CAL_ACC2_ID: curr: 0 -> new: 1311004 CAL_GYRO2_ID: curr: 0 -> new: 1311004 CAL_MAG0_ID: curr: 0 -> new: 197388 CAL_MAG1_ID: curr: 0 -> new: 197644 SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000 SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010 parameter default: BAT_N_CELLS 0 -> 4 parameter default: CBRK_SUPPLY_CHK 0 -> 894281 parameter default: COM_CPU_MAX 90.00 -> -1.00 parameter default: COM_RC_IN_MODE 0 -> 1 parameter default: EKF2_REQ_GPS_H 10.00 -> 0.50 parameter default: EKF2_MULTI_IMU 0 -> 3 parameter default: SENS_IMU_MODE 1 -> 0 parameter default: EKF2_MULTI_MAG 0 -> 2 parameter default: SENS_MAG_MODE 1 -> 0 parameter default: SDLOG_MODE 0 -> 1 parameter default: SDLOG_PROFILE 1 -> 131 parameter default: SDLOG_DIRS_MAX 0 -> 7 parameter default: TRIG_INTERFACE 4 -> 3 parameter default: IMU_GYRO_RATEMAX 400 -> 800 parameter default: NAV_ACC_RAD 10.00 -> 2.00 parameter default: RTL_RETURN_ALT 60.00 -> 30.00 parameter default: RTL_DESCEND_ALT 30.00 -> 10.00 parameter default: PWM_MAIN_MAX 2000 -> 1950 parameter default: PWM_MAIN_MIN 1000 -> 1075 parameter default: GPS_UBX_DYNMODEL 7 -> 6