Position Tracking for X-Configuration Quadcopter error in accel and gyro sensors
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to make a sitl simulation, using the “px4demo_PositionController_quadrotor” model of Matlab/Simulink, as the main controller and the px4 firmware as model, following the Matlab guide: Position Tracking for X-Configuration Quadcopter - MATLAB & Simulink Example - MathWorks Italia.
The connection works and QGroundController also is connected but after some seconds QGC give the Accel #0 fail: TIMEOUT! error and also the gyro error. I am using the JMavSimulator, the Matlab 2021b version, the python 3.8 version, Windows 10 os, and the latest versions of PX4 firmware and QGC. In addition to this, doing Monitor and Tune, the px4 terminal is open but is empty (there isn't the classic logo opened) and I can't write on it. Instead if I Run the Simulink model, the terminal works but I still have the accel and gyro errors.
0 个评论
回答(1 个)
Arun Mathamkode
2023-3-29
The error you are getting looks like an issue of connectivity between the plant (jMAVSim) and the PX4 Host Target. The plant should update the sensor values to PX4 SITL in regular intervals, if not you will see such errors. Since Simulink doesn't play any part in connectivity between jMAVSim and PX4 Host Target, this might be an issue from PX4 itself. I would recommend you use MATLAB version R2022b or the Recently released R2023a. In the above versions, we support PX4 v1.12.3 and you might not see these issues. The empty PX4 Host Target terminal window is also fixed in the above relese versions and you should be able to enter commands through the terminal.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!