Simulate GPS IMU With Quadcopter Swarm?

조회 수: 11 (최근 30일)
Kal Rus
Kal Rus 2022년 10월 16일
답변: Altaïr 2024년 11월 20일
I have multiple drones work in swarm formation, i made the quadcopter model and the swarm one. Until now i have the swarm moving in a formation leader-follower and track a predefined trajectory based on PID Controller. What i need help is how to add GPS, IMU sensors model to my model?

답변 (1개)

Altaïr
Altaïr 2024년 11월 20일
The process of incorporating sensors depends on whether the model is developed in MATLAB or Simulink. For models in MATLAB, here are the steps to add sensors:
  1. Create and initialize gpsSensor and imuSensor objects.
  2. Set up an insfilterMARG filter to perform sensor fusion with GPS and IMU readings.
  3. Use these sensors within the simulation loop to obtain position and orientation data from actual acceleration, angular velocity, and orientation.
A detailed example can be found here:
For models in Simulink, the IMU and AHRS blocks can simulate the presence of an IMU sensor.
However, there is no built-in block to fuse GPS measurements with IMU measurements, as seen here:
The INS block can simulate an INS sensor, but sensor fusion will need to be designed manually. Here are the relevant documentation links for the R2021a version:

카테고리

Help CenterFile Exchange에서 Quadcopters and Drones에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by