在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ericzzj1989/matlab_px4_msf开源软件地址(OpenSource Url):https://github.com/ericzzj1989/matlab_px4_msf开源编程语言(OpenSource Language):MATLAB 91.6%开源软件介绍(OpenSource Introduction):MATLAB Derivationsmatlab_px4_msf beginThis folder contains the derivations and test suites in Matlab for ECL components with MSF. Instructions for running the EKF replay
A sample dataset can be downloaded here: https://drive.google.com/file/d/0By4v2BuLAaCfSW9fWl9aSWNGbGs/view?usp=sharing 3a) If replaying APM data: Collect data with LOG_REPLAY = 1 and LOG_DISARMED = 1. Convert data to a .mat file using the MissionPlanner ‘Create Matlab File’ option under the DataFlash Logs tab. Convert .mat file to the required data format using the convert_apm_data.m script file. This will generate the following data files: imu_data.mat baro_data.mat gps_data.mat mag_data.mat and optionally rng_data.mat flow_data.mat viso_data.mat Note: If the rangefinder, optical flow or ZED camera odometer data are not present in the log, then the corresponding sections in the convert_apm_data.m script file will need to be commented out. Copy the generated .mat files into the /EKF_replay/TestData/APM directory. 3b) If replaying PX4 data: Use the following data files: baro_data.mat gps_data.mat vicon_imu_data.mat vicon_pose_data.mat mag_data.mat Import the .csv file containing the vehicle_gps_position_0 data into the matlab workspace and process it using …/EKF_replay/Common/convert_px4_vehicle_gps_position_csv. This will generate the gps_data.mat file. If you have an optical flow and range finder sensor fitted: Import the .csv file containing the optical_flow_0 data into the matlab workspace and process it using …/EKF_replay/Common/convert_px4_optical_flow_csv_data.m. Import the .csv file containing the distance_sensor_0 data into the matlab workspace and process it using …/EKF_replay/Common/convert_px4_distance_sensor_csv_data.m. This will generate the following data files: flow_data.mat rng_data.mat Copy the generated .mat files into the /EKF_replay/TestData/PX4 directory.
Output plots are saved as .png files in the ‘…/EKF_replay/OutputPlots/‘ directory. Output data is written to the Matlab workspace in the ‘output’ struct. matlab_px4_msf end |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论